-
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
Due to a Travis limitation, python doesn't work on travis windows #1568
Comments
This might also be a travis issue but at least officially the docs claim that Python 2 and 3 are installed: https://github.com/travis-ci/packer-templates/blob/master/packer-assets/windows-server-2016-ci-onion-packages.txt |
Can you try setting the |
I can try but it would likely mean wrapping the command somehow because this is a multi-os build and the path would change..? Or would it fall back to the normal searching on other systems if I set it to the Windows path? |
Can you see what is in the |
Having the same issue. I added Feel free to send PRs to test other stuff if you want
EDIT: I added @BanzaiMan is that expected? EDIT2: Adding |
Did anyone try to add Also if anyone can run this file https://github.com/nodejs/node/blob/master/tools/msvs/find_python.cmd
And paste the output, that will be great help |
@refack feel free to PR my repo, it should trigger CI builds. I pushed
EDIT2: https://travis-ci.org/SimenB/weak-travis-windows/jobs/443367344#L84 |
Thank you very much @SimenB, This result seems to indicate that python is not registered with the PEP 514 mechanism either.
I would close this issue, but I'm keeping it open for tracking. |
Travis does not have Python installed. Python 2 is on the list of installed packages, but apparently it is not actually installed on the machines. Possibly a bug, Windows is in early access after all. I don't see a problem with node-gyp here. This fixes it: before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cinst -y python2; fi Next issue is that the job runs successfully but Travis does not seem to notice that is has completed, and terminated the build after 10 minutes. https://travis-ci.community/t/python-support-on-windows/241 is not very clear out of context, but as I understand it is about using Travis to test projects written in Python, not about using Python as a script runner like we do here. |
Adding this to env:
global:
- YARN_GPG=no
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cinst -y python2; fi There are two issues:
|
Travis now has The Yarn issue still exists. I'll close this issue since it is about |
edit(refack): Currently python is not supported on Travis Windows
Refs: https://travis-ci.community/t/python-support-on-windows/241/2
OP:
Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: