mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
gh-92897: Ensure venv --copies
respects source build property of the creating interpreter (GH-92899)
This commit is contained in:
parent
e6ec6f5b50
commit
067597522a
5 changed files with 76 additions and 40 deletions
|
@ -60,7 +60,11 @@ class SysconfigTestCase(support.EnvironGuard, 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':
|
||||
self.assertEqual(
|
||||
os.path.dirname(sysconfig.get_makefile_filename()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue