mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
reverted distutils its 3.1 state. All new work is now happening in disutils2, and distutils is now feature-frozen.
This commit is contained in:
parent
5db0c94072
commit
3679727939
64 changed files with 1626 additions and 1678 deletions
|
|
@ -5,7 +5,7 @@ import unittest
|
|||
|
||||
from distutils.command.build_scripts import build_scripts
|
||||
from distutils.core import Distribution
|
||||
import sysconfig
|
||||
from distutils import sysconfig
|
||||
|
||||
from distutils.tests import support
|
||||
|
||||
|
|
@ -91,12 +91,12 @@ class BuildScriptsTestCase(support.TempdirManager,
|
|||
# --with-suffix=3`, python is compiled okay but the build scripts
|
||||
# failed when writing the name of the executable
|
||||
old = sysconfig.get_config_vars().get('VERSION')
|
||||
sysconfig._CONFIG_VARS['VERSION'] = 4
|
||||
sysconfig._config_vars['VERSION'] = 4
|
||||
try:
|
||||
cmd.run()
|
||||
finally:
|
||||
if old is not None:
|
||||
sysconfig._CONFIG_VARS['VERSION'] = old
|
||||
sysconfig._config_vars['VERSION'] = old
|
||||
|
||||
built = os.listdir(target)
|
||||
for name in expected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue