PyNode
PyNode copied to clipboard
Fails to install with Python 3.9
Apparently Python deprecated some functions that PyNode is using:
Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
Full gyp error log is here: 2023-05-29T21_24_06_268Z-debug.log
Turns out the deprecated functions are a red herring. The actual problem is this:
ld: -stack_size option can only be used when linking a main executable
If I edit build/PyNode.target.mk and remove the flag -Wl,-stack_size,1000000 then node-gyp build completes successfully. Note that the build/PyNode.target.mk file is automatically generated. No idea what is adding that flag to the make file.