encap python

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)

  1. make the /usr/local/bin/python symlink a hardlink instead
  2. drop a file in /usr/local/encap/python-X.Y.Z/lib/pythonX.Y called sitecustomize.py that consists of

    import sys

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

This entry was posted in tech. Bookmark the permalink.

Comments are closed.