Skip to content Skip to sidebar Skip to footer

Python Distutils - Change Path Rpm Installs To

I have Python 2.7.5 and am using distutils (python setup.py bdist_rpm) to create the following RPM... me@hostname:/tmp/dist$ rpm -qpil myApp-2.0.146-1.noarch.rpm Name : myAp

Solution 1:

See this answer: https://stackoverflow.com/a/6220687/725021

You should try the install-lib paramater of the [install] section in setup.cfg.

Solution 2:

Answer: Rather than dynamically generating setup.py and using distutils (which seems to have some limitations) I now generate an rpmbuild .spec and can do what I need.

Cheers.

Post a Comment for "Python Distutils - Change Path Rpm Installs To"