diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-08-19 19:35:08 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-19 19:35:08 +0900 |
commit | f153198bebe97a3d7576aefcec4841bc04b45ddc (patch) | |
tree | fdc7119511266a613744d336ee58a2564f008d28 /Lib/site.py | |
parent | bed873b4f7b3c21d12bf296eb3a3dbea1bc1dda0 (diff) | |
download | python-f153198bebe97a3d7576aefcec4841bc04b45ddc.tar.gz python-f153198bebe97a3d7576aefcec4841bc04b45ddc.tar.bz2 python-f153198bebe97a3d7576aefcec4841bc04b45ddc.zip |
Imported Upstream version 2.7.8upstream/2.7.8
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/Lib/site.py b/Lib/site.py index 54e5154..d2e18f1 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -114,18 +114,6 @@ def removeduppaths(): sys.path[:] = L return known_paths -# XXX This should not be part of site.py, since it is needed even when -# using the -S option for Python. See http://www.python.org/sf/586680 -def addbuilddir(): - """Append ./build/lib.<platform> in case we're running in the build dir - (especially for Guido :-)""" - from sysconfig import get_platform - s = "build/lib.%s-%.3s" % (get_platform(), sys.version) - if hasattr(sys, 'gettotalrefcount'): - s += '-pydebug' - s = os.path.join(os.path.dirname(sys.path.pop()), s) - sys.path.append(s) - def _init_pathinfo(): """Return a set containing all existing directory entries from sys.path""" @@ -448,7 +436,7 @@ def setcopyright(): for supporting Python development. See www.python.org for more information.""") here = os.path.dirname(os.__file__) __builtin__.license = _Printer( - "license", "See http://www.python.org/%.3s/license.html" % sys.version, + "license", "See http://www.python.org/psf/license/", ["LICENSE.txt", "LICENSE"], [os.path.join(here, os.pardir), here, os.curdir]) @@ -537,9 +525,6 @@ def main(): abs__file__() known_paths = removeduppaths() - if (os.name == "posix" and sys.path and - os.path.basename(sys.path[-1]) == "Modules"): - addbuilddir() if ENABLE_USER_SITE is None: ENABLE_USER_SITE = check_enableusersite() known_paths = addusersitepackages(known_paths) |