Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question tries to complement this one . I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python dependencies which are not in debian/ubuntu repositories(packed as debian packages too)

Solution #1:
build the modules from PyPI right into my debian package.

Solution #2:
create debian packages for all PyPI modules I need using stdeb and add them to debian/ubuntu repositories.

I actually need a Solution #3 because I want to install PyPI dependencies when I install my debian package, preferably into a virtualenv!

What would be Solution #3? Do I need to tweak DEBIAN/preinst maintainer script?

share|improve this question
    
Can you describe why you need to create a Debian package? Does your Python app need non-Python resources? –  Jonathan Aug 1 '13 at 20:36
    
@Jonathan I want users to be able to install my app from Ubuntu Software Center. I think I need a *.deb for that. My Python app doesn't need non-Python resources, just third-party python modules. –  andri_ch Aug 2 '13 at 7:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.