https://github.com/mendhak/setuptools-stdeb-example
Example setup.py that creates a .deb package from an executable Python script
https://github.com/mendhak/setuptools-stdeb-example
debian packaging setuptools stdeb ubuntu
Last synced: about 1 month ago
JSON representation
Example setup.py that creates a .deb package from an executable Python script
- Host: GitHub
- URL: https://github.com/mendhak/setuptools-stdeb-example
- Owner: mendhak
- License: mit
- Created: 2020-05-23T11:24:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T16:07:40.000Z (about 6 years ago)
- Last Synced: 2025-04-06T00:27:35.875Z (about 1 year ago)
- Topics: debian, packaging, setuptools, stdeb, ubuntu
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Notes
Create a build using:
```
rm -rf deb_dist dist *.tar.gz *.egg* build tmp
python3 setup.py --command-packages=stdeb.command bdist_deb
```
A .deb is produced inside ./deb_dist
Examine it using
```
lintian example-pkg_0.0.2-1_all.deb
dpkg -I example-pkg_0.0.2-1_all.deb
```
Install it using
```
sudo apt install ./example-pkg_0.0.2-1_all.deb
```
Run the 'command' using
```
example_pkg
```
Uninstall it using
```
sudo apt purge example-pkg
```