[SciPy-dev] issues with installing Numeric in a user directory
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Thu Dec 19 06:54:52 EST 2002
>>>>> "EJ" == eric jones <eric at enthought.com> writes:
EJ> (2) .pth files Numeric is a "package" that doesn't really
EJ> behave as a package. It dumps all of its files in
EJ> site-packages/Numeric, but it doesn't define a __init__.py
EJ> file. Instead, it also puts a Numeric.pth file in
EJ> site-packages that tells python to also search
EJ> site-packages/Numeric for modules. This works fine when
EJ> Numeric is installed as root, but it doesn't work when it is
EJ> installed in non-standard places. This is because .pth files
EJ> are only expaneded when they exist in the "system" locations.
EJ> They are ignored anywhere else in the search path. As a
EJ> result, after installing Numeric with "python setup.py install
EJ> --prefix=$OSDIR", importing Numeric fails even if
I guess you must have thought of this but perhaps Python's site.py can
be modified to look for .pth files inside any directory on the
PYTHONPATH. If I understand correctly, this should solve the problem?
prabhu
More information about the SciPy-Dev
mailing list