[SciPy-Dev] numpydoc installation and path
Pauli Virtanen
pav@iki...
Mon Feb 6 15:37:05 CST 2012
06.02.2012 22:23, Denis Laxalde kirjoitti:
> While trying to build scipy's documentation, I had to install numpydoc
> (python setup.py --install --user). This apparently generates an
> 'easy-install.pth' file which contains:
>
> import sys; sys.__plen = len(sys.path)
> ./numpydoc-0.4-py2.6.egg
> /usr/lib/pymodules/python2.6
> import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
>
> This happens to break the python path prepending
> /usr/lib/pymodules/python2.6 and numpydoc-0.4-py2.6.egg.
>
> What is the purpose of this? Is that intended?
That's some setuptools stuff. Probably nothing specific to numpydoc, but
would happen for any setuptools-using package:
http://packages.python.org/distribute/
http://peak.telecommunity.com/DevCenter/EasyInstall
More information about the SciPy-Dev
mailing list