-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn missing python flag #3519
Comments
Python is not a feature of Yarn, it is used by node-gyp. |
Since it can be passed in npm it should work the same in yarn. Most users with issues ended up having to move back to npm just to get their deps installed and they really shouldn't have to rely on environment variables when there's a npm setting for this. |
This comment has been minimized.
This comment has been minimized.
Seems like the environment variable approach is working for me. On my macOS I have: Yarn install fails when I don't have the environment variable and works when I do. This seems consistent with https://github.com/nodejs/node-gyp/tree/05d2002258596a9693d6042d573c7fd20449ad23#configuration which says "node-gyp responds to environment variables or npm configuration". If it's set right, you should see python when typing |
this is what i ended up doing |
Creating a |
It looks like this is valid now:
|
On Windows 11, I specify the full path to the python executable.
|
Do you want to request a feature or report a bug?
Feature request
What is the current behavior?
yarn add x --python=2.7
ignores the flag.What is the expected behavior?
Yarn should use the specified version of python when building modules since npm does.
Yarn should also check the python flag set in the npm config for example running this command doesn't change the python version being used.
npm config set python python2.7
Ref: trentm/node-bunyan#216 (comment)
Please mention your node.js, yarn and operating system version.
N/A
The text was updated successfully, but these errors were encountered: