File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,16 @@ def tox_get_python_executable(envconfig):
161
161
return actual
162
162
# Use py.exe to determine location - PEP-514 & PEP-397
163
163
if m :
164
- return locate_via_py (* groups )
164
+ archMatch = re .match (r"python(\d)(\.(\d))?(?P<arch>-(32|64))?" , envconfig .basepython )
165
+ arch = archMatch .group ('arch' )
166
+ return locate_via_py (* groups , arch = arch )
165
167
166
168
# Exceptions to the usual windows mapping
167
169
win32map = {"python" : sys .executable , "jython" : r"c:\jython2.5.1\jython.bat" }
168
170
169
- def locate_via_py (* parts ):
170
- ver = "-{}" .format ("." .join (parts ))
171
+ def locate_via_py (* parts , arch = None ):
172
+
173
+ ver = "-{}{}" .format ("." .join (parts ),(arch if arch is not None else "" ))
171
174
script = "import sys; print(sys.executable)"
172
175
py_exe = distutils .spawn .find_executable ("py" )
173
176
if py_exe :
You can’t perform that action at this time.
0 commit comments