5

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?

2
  • 1
    if you're rolling new packages, you really should depend on and import bs4 not beautifulsoup Dec 28, 2012 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, 2014 at 22:38

1 Answer 1

5

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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