Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

Example setup.py that creates a .deb package from an executable Python script

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
```