mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
I should have created stub script in $BUILD_PATH
explicltly since pwd
isn't changed before install_jar
This commit is contained in:
parent
9833be730a
commit
322aa82ae7
1 changed files with 4 additions and 4 deletions
|
@ -1278,11 +1278,11 @@ require_java() {
|
||||||
# Let Jython installer to generate shell script instead of python script even if there's `python2.7` available in `$PATH` (#800)
|
# Let Jython installer to generate shell script instead of python script even if there's `python2.7` available in `$PATH` (#800)
|
||||||
# FIXME: better function naming
|
# FIXME: better function naming
|
||||||
unrequire_python27() {
|
unrequire_python27() {
|
||||||
export PATH="${PWD}/bin:${PATH}"
|
export PATH="${BUILD_PATH}/bin:${PATH}"
|
||||||
mkdir -p "${PWD}/bin"
|
mkdir -p "${BUILD_PATH}/bin"
|
||||||
if command -v python2.7 1>/dev/null 2>&1; then
|
if command -v python2.7 1>/dev/null 2>&1; then
|
||||||
echo false > "${PWD}/bin/python2.7"
|
echo false > "${BUILD_PATH}/bin/python2.7"
|
||||||
chmod +x "${PWD}/bin/python2.7"
|
chmod +x "${BUILD_PATH}/bin/python2.7"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue