homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Test_distutils fails instead of skipping if no VS2015
Type: Stage: resolved
Components: Distutils, Tests, Windows Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2015年09月14日 04:42 by terry.reedy, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Messages (2)
msg250620 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2015年09月14日 04:42
Moved here from #12420 as a new and separate issue after diagnosis by Mark Lawrence and Zack Ware. The following failures on new 3.5.0 all end with the same message about vcvarsall.bat (slightly different from 3.4 failures).
======================================================================
ERROR: test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_optional_extension (distutils.tests.test_build_ext.BuildExtTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_get_outputs (distutils.tests.test_build_ext.ParallelBuildExtTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_optional_extension (distutils.tests.test_build_ext.ParallelBuildExtTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_compiler_options (distutils.tests.test_msvccompiler.msvccompilerTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_vcruntime_copy (distutils.tests.test_msvccompiler.msvccompilerTestCase)
----------------------------------------------------------------------
======================================================================
ERROR: test_vcruntime_skip_copy (distutils.tests.test_msvccompiler.msvccompilerTestCase)
----------------------------------------------------------------------
======================================================================
FAIL: test_customize_compiler_before_get_config_vars (distutils.tests.test_sysconfig.SysconfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "C:\Programs\Python 3.5\lib\distutils\tests\test_sysconfig.py", line 197, in test_customize_compiler_before_get_c
onfig_vars
 self.assertEqual(0, p.returncode, "Subprocess failed: " + outs)
AssertionError: 0 != 1 : Subprocess failed: Traceback (most recent call last):
 File "@test_5504_tmp", line 5, in <module>
 rc = config.try_compile('int x;')
 File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 227, in try_compile
 self._compile(body, headers, include_dirs, lang)
 File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 133, in _compile
 self.compiler.compile([src], include_dirs=include_dirs)
 File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 315, in compile
 self.initialize()
 File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 208, in initialize
 vc_env = _get_vc_env(plat_spec)
 File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 83, in _get_vc_env
 raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
----------------------------------------------------------------------
Ran 234 tests in 1.108s
FAILED (failures=1, errors=7, skipped=28)
Warning -- threading._dangling was modified by test_distutils
Warning -- files was modified by test_distutils
msg386380 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021年02月03日 18:26
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.
If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools 
History
Date User Action Args
2022年04月11日 14:58:20adminsetgithub: 69287
2021年02月03日 18:26:20steve.dowersetstatus: open -> closed
resolution: out of date
messages: + msg386380

stage: resolved
2015年09月14日 04:42:47terry.reedycreate

AltStyle によって変換されたページ (->オリジナル) /