We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce64b6 commit 27a1ceeCopy full SHA for 27a1cee
1 file changed
conda-build/habitat-sim/build.sh
@@ -30,7 +30,15 @@ if [ "$(uname)" == "Linux" ]; then
30
export CMAKE_PREFIX_PATH=${PREFIX}:${CMAKE_PREFIX_PATH}
31
fi
32
33
-${PYTHON} setup.py install "${build_args[@]}"
+# 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[@]}"
42
${PYTHON} -m pip install build/deps/magnum-bindings/src/python
43
44
if [ -f "build/viewer" ]; then
0 commit comments