Skip to content

Commit 27a1cee

Browse files
committed
Replace conda-build install command.
1 parent 5ce64b6 commit 27a1cee

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

conda-build/habitat-sim/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ if [ "$(uname)" == "Linux" ]; then
3030
export CMAKE_PREFIX_PATH=${PREFIX}:${CMAKE_PREFIX_PATH}
3131
fi
3232

33-
${PYTHON} setup.py install "${build_args[@]}"
33+
# Prefix each install arg by --install-option=
34+
addPipInstallOptionArgs() {
35+
(( "$#" )) && printf -- '--install-option=\0%s\0' "$@"
36+
}
37+
mapfile -d '' pipInstallOptions < <(addPipInstallOptionArgs "${build_args[@]}")
38+
echo "pipInstallOptions:"
39+
declare -p pipInstallOptions
40+
# Equivalent to 'python setup.py install "${build_args[@]}"'
41+
pip install . "${pipInstallOptions[@]}"
3442
${PYTHON} -m pip install build/deps/magnum-bindings/src/python
3543

3644
if [ -f "build/viewer" ]; then

0 commit comments

Comments
 (0)