I'm having trouble with setuptools in a larger project where a python package has to be "constructed" from several debian packages (each containing a subpackage of the "main" package). Thus we decided to install the files manully instead of using "setup.py install", but we are unsure of the location to use. We first used a directory in /usr/share that we already use for other stuff we install. This works fine except for the fact that we have to mess around with PYTHONPATH before starting any application.
Is there any place that is in the default sys.path where we could install packages instead? I was thinking about /usr/lib/python2.6/dist-packages (which is where the files should end up when you use setuptools as well, shouldnt they?), but I'm kind of reluctant of writing to a place like this with custom install scripts... Also, what if Ubuntu switches to 2.7, do we have to move as well then? Any "best practice" how to do something like this? This whole site-packages/dist-packages concept is so under-documented :(