Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
python3-base
python-3.2.3rc2-localpath.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-3.2.3rc2-localpath.patch of Package python3-base
Index: Lib/site.py =================================================================== --- Lib/site.py.orig 2012-03-29 16:34:50.000000000 +0200 +++ Lib/site.py 2012-03-29 16:34:50.000000000 +0200 @@ -58,7 +58,7 @@ import traceback # 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 2012-03-18 07:36:05.000000000 +0100 +++ Lib/test/test_site.py 2012-03-29 16:35:50.000000000 +0200 @@ -236,12 +236,27 @@ self.assertEqual(dirs[2], wanted) elif os.sep == '/': # OS X non-framwework builds, Linux, FreeBSD, etc - self.assertEqual(len(dirs), 2) - 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) - wanted = os.path.join('xoxo', 'lib', 'site-python') - self.assertEqual(dirs[1], 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 + + wanted = os.path.join('xoxo', sys.lib, 'site-python') + self.assertEqual(dirs[i], wanted) + i += 1 + if sys.lib != 'lib': + wanted = os.path.join('xoxo', 'lib', 'site-python') + self.assertEqual(dirs[i], wanted) + i += 1 + + self.assertTrue(i in [2,4]) + self.assertEqual(len(dirs), i) else: # other platforms self.assertEqual(len(dirs), 2)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor