From dc542a37cddd1f911ac0ac6e3457fdfd88deae4a Mon Sep 17 00:00:00 2001 From: samypr100 <3933065+samypr100@users.noreply.github.com> Date: Sat, 21 Jan 2023 10:00:06 -0500 Subject: [PATCH] Adding missing extras install when wheel is being used to install Open3D --- .github/workflows/windows.yml | 2 +- cpp/pybind/make_install_pip_package.cmake | 2 +- util/ci_utils.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f4c8e905a8b0..c9df0a52a9d2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -382,7 +382,7 @@ jobs: $PIP_PKG_NAME=(Get-ChildItem open3d*-$py_tag-*.whl).Name } echo "Installing Open3D wheel $PIP_PKG_NAME in virtual environment..." - python -m pip install "$PIP_PKG_NAME" + python -m pip install "$PIP_PKG_NAME[gui,ml]" python -c "import open3d; print('Imported:', open3d)" python -c "import open3d; print('CUDA enabled: ', open3d.core.cuda.is_available())" diff --git a/cpp/pybind/make_install_pip_package.cmake b/cpp/pybind/make_install_pip_package.cmake index a5c9fcdd05ce..b65ff8cc0cdb 100644 --- a/cpp/pybind/make_install_pip_package.cmake +++ b/cpp/pybind/make_install_pip_package.cmake @@ -5,4 +5,4 @@ # it is guaranteed that there is only one wheel in ${PYTHON_PACKAGE_DST_DIR}/pip_package/*.whl file(GLOB WHEEL_FILE "${PYTHON_PACKAGE_DST_DIR}/pip_package/*.whl") execute_process(COMMAND ${Python3_EXECUTABLE} -m pip uninstall open3d --yes) -execute_process(COMMAND ${Python3_EXECUTABLE} -m pip install ${WHEEL_FILE} -U) +execute_process(COMMAND ${Python3_EXECUTABLE} -m pip install "${WHEEL_FILE}[gui,ml]" -U) diff --git a/util/ci_utils.sh b/util/ci_utils.sh index a4472178f123..2d5fce1e65f0 100644 --- a/util/ci_utils.sh +++ b/util/ci_utils.sh @@ -259,7 +259,7 @@ test_wheel() { echo -n "Using pip: " python -m pip --version echo "Installing Open3D wheel $wheel_path in virtual environment..." - python -m pip install "$wheel_path" + python -m pip install "${wheel_path}[gui,ml]" python -c "import open3d; print('Installed:', open3d)" python -c "import open3d; print('CUDA enabled: ', open3d.core.cuda.is_available())" echo