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.

I created my first Debian package today by following the accepted answer at this AskUbuntu question. Everything went fine, and it installed properly afterwards. However, my script is written in python and depends on the BeautifulSoup library.

My plan is to send the package to a friend who I am nearly certain does not have pip or the like installed. What is the best way to attach such a dependency to my package or ensure that it is installed along with the package?

share|improve this question
1  
if you're rolling new packages, you really should depend on and import bs4 not beautifulsoup –  hbdgaf Dec 28 '12 at 4:39
    
For Python dependencies that are not already packaged in Debian/Ubuntu I recommend this approach: askubuntu.com/questions/327543 –  MestreLion Aug 11 at 22:38

1 Answer 1

up vote 4 down vote accepted

BeautifulSoup package is in Ubuntu repositories as python-beautifulsoup. You need to specify that your package depends on it.

In the answer you linked to, have a look at debian/control file - there is Depends: section where you can specify package dependencies.

share|improve this answer
    
Thank you! That worked just fine! –  dejay Dec 28 '12 at 4:36

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.