Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ if(BUILD_SHARED_LIBS)
else()
option(STATIC_WINDOWS_RUNTIME "Use static (MT/MTd) Windows runtime" ON )
endif()
option(BUILD_VISUALIZATION "Package Open3D without Visualization" ON)
option(BUILD_SYCL_MODULE "Build SYCL module with Intel oneAPI" OFF)
if(BUILD_SYCL_MODULE)
set(OPEN3D_SYCL_TARGETS "spir64" CACHE STRING
Expand Down
4 changes: 4 additions & 0 deletions cpp/pybind/make_python_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ if (BUILD_SYCL_MODULE)
list(APPEND requirement_files ${PYTHON_PACKAGE_SRC_DIR}/requirements_sycl.txt)
endif()

if (BUILD_VISUALIZATION)
list(APPEND requirement_files ${PYTHON_PACKAGE_SRC_DIR}/requirements_viz.txt)
endif()

# These will be installed when the user does `pip install open3d`.
execute_process(COMMAND ${CMAKE_COMMAND} -E cat ${requirement_files}
OUTPUT_FILE ${PYTHON_PACKAGE_DST_DIR}/requirements.txt
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.wheel
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ RUN /root/Open3D/util/install_deps_ubuntu.sh assume-yes \
# Open3D Python dependencies
COPY ./util/ci_utils.sh /root/Open3D/util/
COPY ./python/requirements.txt /root/Open3D/python/
COPY ./python/requirements_viz.txt /root/Open3D/python/
COPY ./python/requirements_jupyter_build.txt /root/Open3D/python/
COPY ./python/requirements_jupyter_install.txt /root/Open3D/python/
COPY ./python/requirements_build.txt /root/Open3D/python/
Expand Down
1 change: 1 addition & 0 deletions python/requirements_viz.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dash>=2.6.0
6 changes: 6 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def finalize_options(self):
"\n\nThis wheel contains cross-platform GPU support through SYCL.")
classifiers.append("Environment :: GPU")

if "@BUILD_VISUALIZATION@" == "OFF":
name += "-headless"

setup_args = dict(
name=name,
version="@PROJECT_VERSION@",
Expand Down Expand Up @@ -194,4 +197,7 @@ def finalize_options(self):
provides_dist=["open3d", "open3d_cpu", "open3d_xpu"], # For open3d-cpu
)

if "@BUILD_VISUALIZATION@" == "OFF":
setup_args["keywords"] = setup_args["keywords"].replace(" visualization", "")

setup(**setup_args)
Loading