I am using Python setuptools for building a package. I would like to name the rpm built from bdist_rpm
option to be different than the Python package name due to some naming restrictions.
Can it be done in the setup.cfg
in the [bdist_rpm]
section?
The fpm tool makes easy to generate the RPM package and change the name or another parameter. By default, fpm makes the RPM with "python- prefix name, but the package name can be set with -n parameter. An example:
fpm -s python -t rpm -n my_package_name <python-source-library>/setup.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With