[Distutils] stdeb and python dependencies

Barry Warsaw barry at python.org
Thu Oct 23 19:50:57 CEST 2014


On Oct 22, 2014, at 05:00 PM, Kelly Goedert wrote:

>I am new to python. I created a simple python cli application that depends
>on jsonpickle and plumbum.
>
>Using this command python setup.py --command-packages=stdeb.command
>bdist_deb I was able to create a .deb package. But when I try to install
>the package with dpkg -i package_name I get
>
> package_name depends on python-plumbum; however:
>  Package python-plumbum is not installed.
> package_name depends on python-jsonpickle; however:
> Package python-jsonpickle
>
>In my setup.py I have this:
>
>dependencies=['plumbum','jsonpickle']
>install_requires=dependencies
>
>Is it possible to make the debian package install this python dependencies?
>Or is this the wrong approach? If so, what would be the recommend way?

`dpkg -i` doesn't install dependencies.  After you get this, run
`sudo apt-get install -f` to get your missing dependencies.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20141023/b2c0d036/attachment.sig>


More information about the Distutils-SIG mailing list