Reputation: 45
I would like to create an RPM package from a python project on CentOS with setuptools. But I'm not able to include some dependencies via a spec in a correct way.
I would like to Install OS dependencies (and integrate in RPM)
- gcc
- python-devel
- python-setuptools
and Install Python dependencies (and integrate in RPM)
- psutil
- rsa
- pyaes
- pyyaml
So anyone have an idea or some hints for the right way to include this dependencies?.
Upvotes: 1
Views: 3626
Reputation: 37712
in your spec file you just need to say your rpm needs other packages to be installed:
Requires: gcc, python-devel, python-setuptools
same for the python dependencies:
Requires: python-psutil, python-rsa, python-pyaes, python-PyYAML
Note that you need to know the exact rpm names (for example on opensuse I found rpm python-PyYAML but didn't find any rpm yet containing python pyaes)
For further reading: http://rpm5.org/docs/rpm-guide.html#id3037649
Upvotes: 3