File python-3.3.0b1-localpath.patch of Package python3

Index: Lib/site.py
===================================================================
--- Lib/site.py.orig
+++ Lib/site.py
@@ -74,7 +74,7 @@ import builtins
 import _sitebuiltins
 
 # Prefixes for site-packages; add additional prefixes like /usr/local here
-PREFIXES = [sys.prefix, sys.exec_prefix]
+PREFIXES = [sys.prefix, sys.exec_prefix, '/usr/local']
 # Enable per user site-packages directory
 # set it to False to disable the feature or True to force the feature
 ENABLE_USER_SITE = None
Index: Lib/test/test_site.py
===================================================================
--- Lib/test/test_site.py.orig
+++ Lib/test/test_site.py
@@ -243,10 +243,19 @@ class HelperFunctionsTests(unittest.Test
             self.assertEqual(dirs[1], wanted)
         elif os.sep == '/':
             # OS X non-framwework builds, Linux, FreeBSD, etc
-            self.assertEqual(len(dirs), 1)
-            wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
+            i = 0
+            wanted = os.path.join('xoxo', sys.lib, 'python' + sys.version[:3],
                                   'site-packages')
-            self.assertEqual(dirs[0], wanted)
+            self.assertEqual(dirs[i], wanted)
+            i += 1
+            if sys.lib != 'lib':
+                wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
+                                      'site-packages')
+                self.assertEqual(dirs[i], wanted)
+                i += 1
+
+            self.assertTrue(i in (1,2))
+            self.assertEqual(len(dirs), i)
         else:
             # other platforms
             self.assertEqual(len(dirs), 2)