-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Can not build binary packages on Debian Stretch #40
Comments
That was introduced when support for Python 3.5 was dropped. I would recommend the use of https://github.com/pyenv or https://github.com/deadsnakes to install a supported version of Python. |
Yes you are going to need to update to a supported version of python. This was not inadvertent, it was discussed when we were planning the upgrade to node-gyp@8 |
Thanks for pointing out the discussion in summer. Missed that. I think though that @DeeDeeG had (has) a point. There are a lot of users downstream from NPM and this update "breaks" the official image turning it from a "builder image" to one that can not build binaries. Anyway.. your call. Onwards. |
What / Why
Can not build binary packages on Debian 9 (Stretch) using NPM and Node 16..
Debian 9 (Stretch) comes with Python 3.5.
It is in LTS mode until the end of June 2022.
Node-Gyp version 8 requires Python 3.6 and above.
That was introduced when support for Python 2 was dropped.
With feat: update to node-gyp@8 support for Debian 9 was inadvertently dropped.
When
When using nodejs official docker image any
npm install
that requires building a binary package will fail.Problem extends to any out-of-the box Debian 9 (Stretch).
Where
Node 16 and Debian 9 (Stretch)
How
Current Behavior
node-gyp can not find suitable python.
Specifically:
Log (from GH Actions run specified below):
Steps to Reproduce
Pull image:
docker run -it -w /usr/src/work node:16-stretch bash
npm install @appoptics/apm-bindings --build-from-source
npm install canvas --build-from-source
etc.
Expected Behavior
As was before update to node-gyp@8 - node-gyp can find suitable python.
Who
References
The text was updated successfully, but these errors were encountered: