DeeDeeG
c255ffbf6a
lib: drop "-2" flag for "py.exe" launcher
...
Now that node-gyp supports both Python 2 and Python 3,
We don't need to explicitly try to find only Python 2.
Fixes: https://github.com/nodejs/node-gyp/issues/2130
Refs: https://docs.python.org/3/using/windows.html#launcher
PR-URL: https://github.com/nodejs/node-gyp/pull/2131
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
2020-05-18 11:08:46 +10:00
Xavier Guimard
f242ce4d2c
lib: compatibility with semver ≥ 7 (new
for semver.Range)
...
Fixes : #2005
Reviewed-By: Rod Vagg <rod@vagg.org>
PR-URL: https://github.com/nodejs/node-gyp/pull/2006
2020-01-06 14:23:01 +11:00
Sam Roberts
dd0e97ef0b
lib: try to find python
after python3
...
Unadorned `python` can be either Python 2 or Python 3, but it is likely
to be Python 2 for quite a while.
To find Python3, it is recommended to use the explicit name `python3`.
See:
- https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors
- https://github.com/nodejs/node-gyp/pull/1892#issuecomment-537637433
PR-URL: https://github.com/nodejs/node-gyp/pull/1907
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: João Reis <reis@janeasystems.com>
2019-10-04 13:25:04 +10:00
Rod Vagg
ab2a4cc209
src: update to standard@14
...
PR-URL: https://github.com/nodejs/node-gyp/pull/1899
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2019-10-02 13:57:30 +10:00
João Reis
3d1c60ab81
lib: accept Python 3 by default
...
PR-URL: https://github.com/nodejs/node-gyp/pull/1844
Reviewed-By: Christian Clauss <cclauss@me.com>
2019-09-30 07:55:48 +01:00
cclauss
c6e3b65a23
lib: raise the minimum Python version from 2.6 to 2.7
...
As discussed in #1811
PR-URL: https://github.com/nodejs/node-gyp/pull/1818
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: João Reis <reis@janeasystems.com>
2019-07-17 14:31:23 +10:00
João Reis
66ad305775
python: accept Python 3 conditionally
...
This allows us to start testing Python 3 without breaking node-gyp
for users.
This also adds support for NODE_GYP_FORCE_PYTHON, which will be the
only Python binary acceptable when defined.
PR-URL: https://github.com/nodejs/node-gyp/pull/1815
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2019-07-11 05:13:59 +01:00
João Reis
7e7fce3fed
python: move Python detection to its own file
...
PR-URL: https://github.com/nodejs/node-gyp/pull/1815
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2019-07-11 05:13:59 +01:00