mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[3.11] gh-92897: Ensure venv --copies
respects source build property of the creating interpreter (GH-92899) (GH-94567)
(cherry picked from commit 067597522a
)
Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
This commit is contained in:
parent
7a3dae06eb
commit
49aeda989d
5 changed files with 76 additions and 40 deletions
|
@ -451,7 +451,11 @@ class TestSysConfig(unittest.TestCase):
|
|||
# should be a full source checkout.
|
||||
Python_h = os.path.join(srcdir, 'Include', 'Python.h')
|
||||
self.assertTrue(os.path.exists(Python_h), Python_h)
|
||||
self.assertTrue(sysconfig._is_python_source_dir(srcdir))
|
||||
# <srcdir>/PC/pyconfig.h always exists even if unused on POSIX.
|
||||
pyconfig_h = os.path.join(srcdir, 'PC', 'pyconfig.h')
|
||||
self.assertTrue(os.path.exists(pyconfig_h), pyconfig_h)
|
||||
pyconfig_h_in = os.path.join(srcdir, 'pyconfig.h.in')
|
||||
self.assertTrue(os.path.exists(pyconfig_h_in), pyconfig_h_in)
|
||||
elif os.name == 'posix':
|
||||
makefile_dir = os.path.dirname(sysconfig.get_makefile_filename())
|
||||
# Issue #19340: srcdir has been realpath'ed already
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue