From 322aa82ae7d3449446343ff6375a029710125b73 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Fri, 6 Jan 2017 14:23:23 +0000 Subject: [PATCH] I should have created stub script in `$BUILD_PATH` explicltly since `pwd` isn't changed before `install_jar` --- plugins/python-build/bin/python-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 6fa6af26..58531d9d 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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) # FIXME: better function naming unrequire_python27() { - export PATH="${PWD}/bin:${PATH}" - mkdir -p "${PWD}/bin" + export PATH="${BUILD_PATH}/bin:${PATH}" + mkdir -p "${BUILD_PATH}/bin" if command -v python2.7 1>/dev/null 2>&1; then - echo false > "${PWD}/bin/python2.7" - chmod +x "${PWD}/bin/python2.7" + echo false > "${BUILD_PATH}/bin/python2.7" + chmod +x "${BUILD_PATH}/bin/python2.7" fi }