diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 13:18:37 (GMT) |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 13:59:05 (GMT) |
commit | 0addfdb0f6213329bed0aa8ce6374a92ea68a148 (patch) | |
tree | dffede38b733d9e2f05d4fc176babc9d5e1caf6c /Lib/test/test_site.py | |
parent | 1a334c0c655353d22d23dbf2bc9221fbe8350472 (diff) | |
download | cpython-0addfdb0f6213329bed0aa8ce6374a92ea68a148.zip cpython-0addfdb0f6213329bed0aa8ce6374a92ea68a148.tar.gz cpython-0addfdb0f6213329bed0aa8ce6374a92ea68a148.tar.bz2 |
00102-2.7.13-lib64.patch
Only used when "%%{_lib}" == "lib64"
Fixup various paths throughout the build and in distutils from "lib" to "lib64",
and add the /usr/lib64/pythonMAJOR.MINOR/site-packages to sitedirs, in front of
/usr/lib/pythonMAJOR.MINOR/site-packages
Not upstream
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index b4384ee..349f688 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -254,17 +254,20 @@ class HelperFunctionsTests(unittest.TestCase): self.assertEqual(dirs[0], wanted) elif os.sep == '/': # OS X, Linux, FreeBSD, etc - self.assertEqual(len(dirs), 2) - wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3], + self.assertEqual(len(dirs), 3) + wanted = os.path.join('xoxo', 'lib64', 'python' + sys.version[:3], 'site-packages') self.assertEqual(dirs[0], wanted) - wanted = os.path.join('xoxo', 'lib', 'site-python') + wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3], + 'site-packages') self.assertEqual(dirs[1], wanted) + wanted = os.path.join('xoxo', 'lib', 'site-python') + self.assertEqual(dirs[2], wanted) else: # other platforms self.assertEqual(len(dirs), 2) self.assertEqual(dirs[0], 'xoxo') - wanted = os.path.join('xoxo', 'lib', 'site-packages') + wanted = os.path.join('xoxo', 'lib64', 'site-packages') self.assertEqual(dirs[1], wanted) def test_no_home_directory(self): |