Install python package in directory relative to package sites

I have a Python package, which is one of the collection of company Python packages. When i started

python setup.py install 

I want the package to be installed in the general directory of the company along with other packages of companies. I want this directory to refer to the default Python installation directory, e.g.

 /usr/lib/python2.7/site-packages/<company_name>/<python_package_name> 

That is, I want to insert <company_name> into the installation path during installation.

I have seen ways to prefix this path, but cannot figure out how to do what I described.

+4
source share
1 answer

Unfortunately, Python packaging does not work. You could probably bend it so that it is, but it would be very difficult for a person who has no experience in Python packaging, and even for experienced people, a summary / output compromise would not make sense. You do not mention any motive to do this, in addition to your personal preferences.

Instead, in order to have a well-managed and human-accessible package installation folder, I recommend that you examine the following resources

+3
source

All Articles