how to encap python in one simple easy step.
(in fact, there’s more than one way to do it, though I recommend option #2)
- make the /usr/local/bin/python symlink a hardlink instead
- drop a file in /usr/local/encap/python-X.Y.Z/lib/pythonX.Y called
sitecustomize.py
that consists of
import sys
sys.path.append(‘/usr/local/lib/pythonX.Y/site-packages’)
then when installing python packages (either way), do
% python setup.py build
# python setup.py install –prefix=/usr/local/encap/package-x.y
# epkg package