Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to build a python-based Debian package and I see the ${python:Depends} variable under the Depends section in the control file.

While installing, I see that it refers to the python-alembic package as a dependency, but I cannot understand how or where this variable gets populated.

Basically, I wanted to change the name here from python-alembic to alembic under the depends section coz I don't have the package with name python-alembic.

share|improve this question

Most likely from dh_python2, which guesses dependencies based on the requires.txt file in egg_info. This file is created from install_requires in by distutils / setuptools.

You can disable reading requires.txt by putting:

    dh_python2 --no-guessing-deps

in your debian/rules. Or you can help it by putting

alembic alembic

in debian/pydist-overrides (I think).

share|improve this answer

Your Answer


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.