-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
build: set Python semverRange: '>=2.7.0 <3.8.0' #1813
Conversation
lib/configure.js
Outdated
@@ -362,7 +362,7 @@ PythonFinder.prototype = { | |||
log: logWithPrefix(log, 'find Python'), | |||
argsExecutable: ['-c', 'import sys; print(sys.executable);'], | |||
argsVersion: ['-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);'], | |||
semverRange: '>=2.6.0 <3.0.0', | |||
semverRange: '>=2.7.0 <3.8.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need an upper bound on the semver check anymore? It was there before to exclude Python 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is semverRange: '>=2.7.0'
These tests would be more helpful if they printed argsVersion on failure but I am not sure how to add that functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the "purely stylistic" changes in #1794, should I also whack our whole codebase thru python/black? |
@@ -29,6 +29,7 @@ matrix: | |||
python: 3.7 | |||
before_install: nvm install 12 | |||
allow_failures: | |||
- os: osx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
lib/configure.js
Outdated
argsExecutable: [ '-c', 'import sys; print(sys.executable);' ], | ||
argsVersion: [ '-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);' ], | ||
semverRange: '>=2.6.0 <3.0.0', | ||
argsExecutable: [ '-c', 'import sys; print(sys.executable)' ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is dropping the ;
cosmetic, or necessary? If cosmetic, I'd prefer to leave as is to not mix cosmetic and functional changes.
other than small comments, LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would break node-gyp for users that don't have Python 2 installed, because node-gyp can't yet be run with Python 3. I opened #1815 as an alternative to this, enabling Python 3 to be run on Travis.
Closing in favor of #1815 |
Checklist
npm install && npm test
passesDescription of change
Based on the discussion #1811 let's try really running the tests on Python 3. This currently breaks that macOS builds.