A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-February/020006.html below:

[Python-Dev] Order that site-packages is added to sys.path

[Python-Dev] Order that site-packages is added to sys.path [Python-Dev] Order that site-packages is added to sys.pathJeremy Hylton jeremy@zope.com
Tue, 12 Feb 2002 12:08:51 -0500
>>>>> "BAW" == Barry A Warsaw <barry@zope.com> writes:

  BAW> distutils's --root option could be used to specific a different
  BAW> install directory than site-packages right?  So conceivably
  BAW> site.py could prepend some directory onto sys.path, and
  BAW> distutils could be coaxed into installing there rather than
  BAW> site-packages.  This might provide a principled way to override
  BAW> Python's standard library when you're really sure that's what
  BAW> you want to do.

Why don't you use "--root /usr/local/lib/python2.2" and *really*
override the standard library?  

It seems fragile to extend Python with yet more directories to search
in a special order so that the interpreter picks up the correct copy
of somemodule.py from among the four or five copies installed on the
system and on the path.

Jeremy




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4