-
Notifications
You must be signed in to change notification settings - Fork 298
Python2 regression with 1.15.3 #698
Comments
This also occurs when building Atom from source. How to reproduce this
This will cause an error like this one:
|
Arch user here as well. I was able to work around this by applying the following patch: diff --git a/bin/python-interceptor.sh b/bin/python-interceptor.sh
index 7ce1965..12cc72f 100755
--- a/bin/python-interceptor.sh
+++ b/bin/python-interceptor.sh
@@ -34,9 +34,9 @@ case $1 in
ARGS+=("--format=safemake.py")
fi
- exec python "${ARGS[@]}"
+ exec python2 "${ARGS[@]}"
;;
*)
- exec python "$@"
+ exec python2 "$@"
;;
esac and then also patching atom so it installs my locally patched apm (obviously replace diff --git a/apm/package.json b/apm/package.json
index 732ab20..0e75319 100644
--- a/apm/package.json
+++ b/apm/package.json
@@ -6,6 +6,6 @@
"url": "https://github.com/atom/atom.git"
},
"dependencies": {
- "atom-package-manager": "1.16.1"
+ "atom-package-manager": "file:///path/to/patched/apm"
}
} |
This is still happening - it looks like setting |
I believe this can be closed now. As of #887, apm has Node-gyp 5.1, which supports both Python 2 and Python 3. |
Prerequisites
Description
It seems like b364c3c introduced a regression for Arch-Linux users, as node-gyp tries to use python3 instead of python2 when beeing executed via apm.
This is the same issue as with #95, but due to the aforementioned commit the workarounds
export PYTHON=python2
ornpm config set python /usr/bin/python2 -g
do no work anymore.Steps to Reproduce
Method 1
Method 2
/usr/bin/python
to/usr/bin/python3
instead of/usr/bin/python2
.Expected behavior: git-blame installs
Actual behavior: git blame fails with
Reproduces how often: Always
Versions
OS: Manjaro (based on Arch-Linux)
Additional Information
Dirty workaround:
Uncomment
export PYTHON="${binDir}/python-interceptor.sh"
in/usr/bin/apm
, this yields a working build-chain with:Suggested fix
Make
python-interceptor.sh
use the python-executable set via environment variable instead of hard-coding it topython
.Or read the value from the
--python
switch, such that the fix matches the one given by node-gyp. 😊The text was updated successfully, but these errors were encountered: