Setuptools is too much for me, since my use of the program is quite limited, so here is my home alternative.
I will link a "third-party" directory that includes all the prerequisites and uses site.addsitedir, so they do not need to be installed globally.
# program startup code import os import sys import site path = os.path.abspath(os.path.dirname(__file__)) ver = 'python%d.%d' % sys.version_info[:2] thirdparty = os.path.join(path, 'third-party', 'lib', ver, 'site-packages') site.addsitedir(thirdparty)
Most of my presets have setup.py installers. Each plug-in gets its own "installation" process, so any custom materials (such as. / Configure) can start automatically. My installation script runs this makefile as part of the installation process.
# sample third-party/Makefile PYTHON_VER = `python -c "import sys; \ print 'python%d.%d' % sys.version_info[:2]"` PYTHON_PATH = lib/$(PYTHON_VER)/site-packages MODS = egenix-mx-base-3.0.0
HUAGHAGUAH 12 Oct. '08 at 17:48 2008-10-12 17:48
source share