Danie de Jager
Danie de Jager

Reputation: 90

how to include requirements when using python bdist_rpm

I am building a project. CVE-bin-Tool and want to create an RPM using the command

python3 setup.py bdist_rpm

The problem is that the rpm is successfully created but without any of the requirements being added in the rpm. When I install the RPM on another host where I did not manually install the requirements the packaged cve-bin-tool does not function.

Upvotes: 1

Views: 278

Answers (1)

Sachin Shukla
Sachin Shukla

Reputation: 1279

setuptools.setup( 
name="test-package", 
install_requires=['numpy','pandas'] 

) in the setup.py file, when you mention the metadata about your package, you can create a key install_requires and mention those dependent packages.

Upvotes: 0

Related Questions