Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[wip] Improve Python 2 detection #775

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

smashwilson
Copy link
Contributor

Rather than strictly relying on Python 2 being available on your ${PATH} with a binary name of python, use @atom/dowsing-rod to locate the best Python binary and trick node-gyp into using it.

See atom/atom#16885 for more information.

@@ -34,9 +34,9 @@ case $1 in
ARGS+=("--format=safemake.py")
fi

exec python "${ARGS[@]}"
exec "${ATOM_APM_ORIGINAL_PYTHON:-python}" "${ARGS[@]}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could swear I've fixed this before...

@smashwilson smashwilson changed the title Improve Python 2 detection [wip] Improve Python 2 detection Mar 5, 2018
@Sighery
Copy link
Contributor

Sighery commented Oct 13, 2019

Seems like node-gyp accepts Python3 now. It says so on their README. And judging by the commit history it seems they started working on it somewhere around July of this year. Not sure what's the status of this branch, but seeing as it's open I figured it was a good idea to give a heads up.

@DeeDeeG
Copy link
Contributor

DeeDeeG commented May 18, 2020

This is maybe obsolete now that #887 is merged.

Though the apm --version does need some help finding python2 and python3, could be better at finding Python on Windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants