Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the RPM Package name in bdist_rpm

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?

like image 559
Cheezo Avatar asked Aug 19 '11 15:08

Cheezo


1 Answers

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
like image 102
Jaime M. Avatar answered Oct 07 '22 16:10

Jaime M.