Skip to content

Instantly share code, notes, and snippets.

@ethanhs
Created February 28, 2019 22:41
Show Gist options
  • Save ethanhs/f3483b44ba0d3b3fd420a272b8928d54 to your computer and use it in GitHub Desktop.
Save ethanhs/f3483b44ba0d3b3fd420a272b8928d54 to your computer and use it in GitHub Desktop.
Trying to build typed_ast with pypy
ethanhs▶~\Documents\typed_ast◇master❯ ..\..\Downloads\pypy3.6-v7.0.0-win32\pypy3 -m pip install .
Processing c:\users\ethanhs\documents\typed_ast
Installing collected packages: typed-ast
Running setup.py install for typed-ast ... error
Complete output from command C:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\pypy3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ethanhs\\AppData\\Local\\Temp\\pip-req-build-13ik00j7\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ethanhs\AppData\Local\Temp\pip-record-qn2gezr2\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build\lib.win32-3.6
creating build\lib.win32-3.6\typed_ast
copying typed_ast\ast27.py -> build\lib.win32-3.6\typed_ast
copying typed_ast\ast3.py -> build\lib.win32-3.6\typed_ast
copying typed_ast\conversions.py -> build\lib.win32-3.6\typed_ast
copying typed_ast\__init__.py -> build\lib.win32-3.6\typed_ast
package init file 'ast3\tests\__init__.py' not found (or not a regular file)
creating build\lib.win32-3.6\typed_ast\tests
copying ast3\tests\test_basics.py -> build\lib.win32-3.6\typed_ast\tests
running build_ext
building '_ast27' extension
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
creating build\temp.win32-3.6\Release\ast27
creating build\temp.win32-3.6\Release\ast27\Parser
creating build\temp.win32-3.6\Release\ast27\Python
creating build\temp.win32-3.6\Release\ast27\Custom
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/acceler.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/acceler.obj
acceler.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/bitset.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/bitset.obj
bitset.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/grammar.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/grammar.obj
grammar.c
ast27/Parser/grammar.c(46): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(536): note: see declaration of 'strdup'
ast27/Parser/grammar.c(108): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(536): note: see declaration of 'strdup'
ast27/Parser/grammar.c(206): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(344): note: see declaration of 'strncpy'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/grammar1.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/grammar1.obj
grammar1.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/node.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/node.obj
node.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/parser.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/parser.obj
parser.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/parsetok.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/parsetok.obj
parsetok.c
ast27/Parser/parsetok.c(352): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
ast27/Parser/parsetok.c(256): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(344): note: see declaration of 'strncpy'
ast27/Parser/parsetok.c(332): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(344): note: see declaration of 'strncpy'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\include /Tcast27/Parser/tokenizer.c /Fobuild\temp.win32-3.6\Release\ast27/Parser/tokenizer.obj
tokenizer.c
ast27/Parser/tokenizer.c(242): warning C4013: 'Py_ISALNUM' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(482): warning C4013: '_Py_IDENTIFIER' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(504): warning C4013: '_PyObject_CallMethodId' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(504): error C2065: 'PyId_open': undeclared identifier
ast27/Parser/tokenizer.c(505): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
ast27/Parser/tokenizer.c(510): warning C4013: '_PyObject_GetAttrId' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(510): error C2065: 'PyId_readline': undeclared identifier
ast27/Parser/tokenizer.c(510): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
ast27/Parser/tokenizer.c(482): warning C4996: 'open': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _open. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_io.h(516): note: see declaration of 'open'
ast27/Parser/tokenizer.c(491): warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(2459): note: see declaration of 'fileno'
ast27/Parser/tokenizer.c(499): warning C4996: 'lseek': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _lseek. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_io.h(503): note: see declaration of 'lseek'
ast27/Parser/tokenizer.c(553): warning C4013: 'Py_UniversalNewlineFgets' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(554): warning C4047: '=': 'char *' differs in levels of indirection from 'int'
ast27/Parser/tokenizer.c(585): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
ast27/Parser/tokenizer.c(900): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
ast27/Parser/tokenizer.c(929): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
ast27/Parser/tokenizer.c(1013): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
ast27/Parser/tokenizer.c(1436): warning C4013: 'Py_ISALPHA' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(1703): warning C4013: 'PyErr_WarnExplicit' undefined; assuming extern returning int
ast27/Parser/tokenizer.c(1795): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\string.h(344): note: see declaration of 'strncpy'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
Command "C:\Users\ethanhs\Downloads\pypy3.6-v7.0.0-win32\pypy3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ethanhs\\AppData\\Local\\Temp\\pip-req-build-13ik00j7\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ethanhs\AppData\Local\Temp\pip-record-qn2gezr2\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ethanhs\AppData\Local\Temp\pip-req-build-13ik00j7\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment