Red Hat Bugzilla – Bug 1476364
Python packages cannot list "dnf" as a dependency in their setup.py files
Last modified: 2017-07-28 14:33:59 EDT
Description of problem:
Bodhi has a dependency on the dnf Python bindings. Today I wanted to declare that dependency by adding "dnf" to the bodhi-client install_requires. When I did this, setup.py would not allow the client to be installed because it could not find dnf.
I believe this happens because dnf does not seem to have a setup.py itself. pip freeze does not show "dnf" in its output, so setuptools does not know that it is installed (or what version it is).
Please use setuptools to install dnf's Python library so that third party tools can list it as a dependency in their setup.py files.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pip freeze | grep dnf
$ pip freeze | grep dnf
they shouldn't ;)
dnf will not be available on pypi in any near future.
Packages don't have to be on PyPI to be listed as dependencies in setup.py files - they just have to be built with setuptools. It is still useful to be able to declare dependencies in a consistent way (such as a requirements.txt) even when there are dependencies that are not found on PyPI.