Commit 7a7e4632 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

use PIP_CMD

parent dff3d77b
...@@ -246,7 +246,7 @@ function build_wheel_cmd { ...@@ -246,7 +246,7 @@ function build_wheel_cmd {
if [ -n "$(is_function "pre_build")" ]; then pre_build; fi if [ -n "$(is_function "pre_build")" ]; then pre_build; fi
stop_spinner stop_spinner
if [ -n "$BUILD_DEPENDS" ]; then if [ -n "$BUILD_DEPENDS" ]; then
pip install $(pip_opts) $BUILD_DEPENDS ${PIP_CMD:-pip} install $(pip_opts) $BUILD_DEPENDS
fi fi
(cd $repo_dir && $cmd $wheelhouse) (cd $repo_dir && $cmd $wheelhouse)
repair_wheelhouse $wheelhouse repair_wheelhouse $wheelhouse
...@@ -254,7 +254,7 @@ function build_wheel_cmd { ...@@ -254,7 +254,7 @@ function build_wheel_cmd {
function pip_wheel_cmd { function pip_wheel_cmd {
local abs_wheelhouse=$1 local abs_wheelhouse=$1
pip wheel $(pip_opts) -w $abs_wheelhouse --no-deps . ${PIP_CMD:-pip} wheel $(pip_opts) -w $abs_wheelhouse --no-deps .
} }
function bdist_wheel_cmd { function bdist_wheel_cmd {
...@@ -350,9 +350,9 @@ function build_index_wheel_cmd { ...@@ -350,9 +350,9 @@ function build_index_wheel_cmd {
if [ -n "$(is_function "pre_build")" ]; then pre_build; fi if [ -n "$(is_function "pre_build")" ]; then pre_build; fi
stop_spinner stop_spinner
if [ -n "$BUILD_DEPENDS" ]; then if [ -n "$BUILD_DEPENDS" ]; then
pip install $(pip_opts) $@ $BUILD_DEPENDS ${PIP_CMD:-pip} install $(pip_opts) $@ $BUILD_DEPENDS
fi fi
pip wheel $(pip_opts) $@ -w $wheelhouse --no-deps $project_spec ${PIP_CMD:-pip} wheel $(pip_opts) $@ -w $wheelhouse --no-deps $project_spec
repair_wheelhouse $wheelhouse repair_wheelhouse $wheelhouse
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment