[pypy-issue] Issue #2892: Unable to build on windows with multiple versions of visual studio installed (pypy/pypy)

Andrew Lawrence issues-reply at bitbucket.org
Wed Sep 19 07:28:24 EDT 2018


New issue 2892: Unable to build on windows with multiple versions of visual studio installed
https://bitbucket.org/pypy/pypy/issues/2892/unable-to-build-on-windows-with-multiple

Andrew Lawrence:

I have Visual Studio 2010 and 2017 installed on my machine. pypy detects different versions during different stage of the builds. I am under the impression that Visual Studio 2010 is no longer supported and should not be used by the build environment

The get_externals script correctly detects the 2017 version.

When I perform the translation of pypy with the following command the 2010 version is detected.
C:\pypy\pypy\goal>C:\pypy2\pypy2-v6.0.0-win32\pypy2-v6.0.0-win32\pypy.exe ../../
rpython/bin/rpython --opt=jit

```
#!

C:\pypy\pypy\goal>C:\pypy2\pypy2-v6.0.0-win32\pypy2-v6.0.0-win32\pypy.exe ../..
rpython/bin/rpython --opt=jit
Initializing msvc platform
cc is none, finding msvc environment
getting mscvc env
getting mscvc env
getting mscvc env
getting mscvc env
[platform:msg] Updated environment with vsver 100, using x64 False
msvc environment found
[translation:info] 2.7.13 (ab0b9caf307d, Apr 24 2018, 17:52:36)
[PyPy 6.0.0 with MSC v.1500 32 bit]
Initializing msvc platform
cc is none, finding msvc environment
getting mscvc env
getting mscvc env
getting mscvc env
getting mscvc env
[platform:msg] Updated environment with vsver 100, using x64 False
msvc environment found
[platform:msg] Set platform with 'host' cc=None, using cc='cl.exe', version=100
[translation:info] Translating target as defined by targetpypystandalone

```

I have tried to set the version of Visual Studio using the CC environment variable but this does not work due to the pypy rejecting some of the spaces in the name.




More information about the pypy-issue mailing list