mvadkert / rpms / python2.7

Forked from rpms/python2.7 3 years ago
Clone

Blame 00104-lib64-fix-for-test_install.patch

f643203
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f643203
From: Fedora Python maintainers <python-devel@lists.fedoraproject.org>
f643203
Date: Wed, 15 Jul 2020 15:19:19 +0200
f643203
Subject: [PATCH] 00104-lib64-fix-for-test_install.patch
f643203
f643203
00104 #
f643203
Only used when "%%{_lib}" == "lib64"
f643203
Another lib64 fix, for distutils/tests/test_install.py; not upstream:
f643203
---
f643203
 Lib/distutils/tests/test_install.py | 3 ++-
f643203
 1 file changed, 2 insertions(+), 1 deletion(-)
f643203
f643203
diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py
f643203
index 397e2a7d4bb..c72ae0b6cdb 100644
f643203
--- a/Lib/distutils/tests/test_install.py
f643203
+++ b/Lib/distutils/tests/test_install.py
f643203
@@ -58,8 +58,9 @@ class InstallTestCase(support.TempdirManager,
866e929
             self.assertEqual(got, expected)
866e929
 
866e929
         libdir = os.path.join(destination, "lib", "python")
866e929
+        platlibdir = os.path.join(destination, "lib64", "python")
866e929
         check_path(cmd.install_lib, libdir)
866e929
-        check_path(cmd.install_platlib, libdir)
866e929
+        check_path(cmd.install_platlib, platlibdir)
866e929
         check_path(cmd.install_purelib, libdir)
866e929
         check_path(cmd.install_headers,
866e929
                    os.path.join(destination, "include", "python", "foopkg"))