Issue 25316: distutils: broken error reporting about vcvarsall.bat (original) (raw)
Issue25316
Created on 2015-10-05 07:19 by mgedmin, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (4) | ||
---|---|---|
msg252308 - (view) | Author: Marius Gedminas (mgedmin) * | Date: 2015-10-05 07:19 |
When you try to build a C extension on Windows without having a C compiler, distutils tries to raise DistutilsPlatformError("Unable to find vcvarsall.bat"). However, on Python 3.5, it doesn't do that -- instead it lets a WinError(2 "no such file or directory") from _find_vcvarsall escape. This breaks packages such as zope.interface that ship optional C modules for faster execution, but would like to work on people's computers even when there is no C compiler. See https://github.com/zopefoundation/zope.interface/issues/24 for details. | ||
msg252349 - (view) | Author: Steve Dower (steve.dower) * ![]() |
Date: 2015-10-05 17:29 |
Do you have a full stack trace for that exception? I don't see anywhere that should be able to raise WinError in _find_vcvarsall. | ||
msg252350 - (view) | Author: Steve Dower (steve.dower) * ![]() |
Date: 2015-10-05 17:30 |
Ah, found it in the linked thread. I'll fix for 3.5.1. | ||
msg252351 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2015-10-05 17:35 |
New changeset a2016b29762c by Steve Dower in branch '3.5': Issue #25316: distutils raises OSError instead of DistutilsPlatformError when MSVC is not installed. https://hg.python.org/cpython/rev/a2016b29762c New changeset 07161dd8a078 by Steve Dower in branch 'default': Issue #25316: distutils raises OSError instead of DistutilsPlatformError when MSVC is not installed. https://hg.python.org/cpython/rev/07161dd8a078 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:22 | admin | set | github: 69503 |
2015-10-05 17:35:59 | steve.dower | set | status: open -> closedresolution: fixedstage: resolved |
2015-10-05 17:35:48 | python-dev | set | nosy: + python-devmessages: + |
2015-10-05 17:30:46 | steve.dower | set | keywords: + 3.5regressionassignee: steve.dowercomponents: + Windowsnosy: + paul.moore, tim.golden, eric.araujo, zach.ware |
2015-10-05 17:30:35 | steve.dower | set | messages: + |
2015-10-05 17:29:52 | steve.dower | set | messages: + |
2015-10-05 16:23:44 | eric.araujo | set | nosy: + steve.dower, - eric.araujo |
2015-10-05 07:19:45 | mgedmin | create |