Python build rpm from virtualenv

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.


Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.