]> granicus.if.org Git - python/commitdiff
On the mac some library paths returned were outdated, some were outright funny.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Sep 2001 12:01:49 +0000 (12:01 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Sep 2001 12:01:49 +0000 (12:01 +0000)
Fixed.

Lib/distutils/sysconfig.py

index 558ff2938e5ad01d30396dc2061c8c706c3e3a5a..cc663a83419a0e5d3920fad7357ae97cce11ef3d 100644 (file)
@@ -102,16 +102,14 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
     elif os.name == "mac":
         if plat_specific:
             if standard_lib:
-                return os.path.join(prefix, "Mac", "Plugins")
+                return os.path.join(prefix, "Lib", "lib-dynload")
             else:
-                raise DistutilsPlatformError(
-                    "OK, where DO site-specific extensions go on the Mac?")
+                return os.path.join(prefix, "Lib", "site-packages")
         else:
             if standard_lib:
                 return os.path.join(prefix, "Lib")
             else:
-                raise DistutilsPlatformError(
-                    "OK, where DO site-specific modules go on the Mac?")
+                return os.path.join(prefix, "Lib", "site-packages")
     else:
         raise DistutilsPlatformError(
             "I don't know where Python installs its library "