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):
161161 return actual
162162 # Use py.exe to determine location - PEP-514 & PEP-397
163163 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 )
165167
166168 # Exceptions to the usual windows mapping
167169 win32map = {"python" : sys .executable , "jython" : r"c:\jython2.5.1\jython.bat" }
168170
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 "" ))
171174 script = "import sys; print(sys.executable)"
172175 py_exe = distutils .spawn .find_executable ("py" )
173176 if py_exe :
You can’t perform that action at this time.
0 commit comments