]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
A hack: Disable import of re, because sre doesn't compile right.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Dec 2003 06:47:37 +0000 (06:47 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Dec 2003 06:47:37 +0000 (06:47 +0000)
DON'T MERGE THIS CHANGE TO THE TRUNK.

Lib/site.py

index e7b9369471b494d5b78677ef2e52a9b5385fbc82..aad7357a46c4609aefee4c9d0b6918b25300281d 100644 (file)
@@ -91,7 +91,9 @@ del dir, dircase, L
 # using the -S option for Python.  See http://www.python.org/sf/586680
 if (os.name == "posix" and sys.path and
     os.path.basename(sys.path[-1]) == "Modules"):
-    from distutils.util import get_platform
+##    from distutils.util import get_platform
+    def get_platform():
+        return "linux-i686"
     s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
     s = os.path.join(os.path.dirname(sys.path[-1]), s)
     sys.path.append(s)