I created an rpm via python setup.py bdist_rpm
.
The above command was called inside a virtualenv.
The files in the rpm now contain the absolute path to the virtualenv:
/home/user/...path-to-virtualenv/lib/python2.7/site-packages/
How to alter the paths? I want to install into /usr/lib
.
Edit setup.cfg
file (create it if it doesn't exist) and add following section to it
[install]
install-lib=/usr/lib/python2.7/site-packages
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.