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?

  • 1
    if you're rolling new packages, you really should depend on and import bs4 not beautifulsoup – RobotHumans 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 '14 at 22:38
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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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