You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Folder of the Python package within the build tree.
30
+
# It is used for the Python tests.
31
+
set(HDE_PYTHON_PACKAGE "${CMAKE_BINARY_DIR}/hde")
32
+
33
+
# Add the bindings directory
34
+
add_subdirectory(python)
35
+
36
+
# Create the __init__.py file
37
+
file(GENERATE
38
+
OUTPUT"${HDE_PYTHON_PACKAGE}/__init__.py"
39
+
CONTENT"from .bindings import *${NEW_LINE}")
40
+
41
+
# Install the __init__.py file
42
+
install(FILES"${HDE_PYTHON_PACKAGE}/__init__.py"
43
+
DESTINATION${PYTHON_INSTDIR})
44
+
45
+
# Install pip metadata files to ensure that HDE installed via CMake is listed by pip list
46
+
# See https://packaging.python.org/specifications/recording-installed-packages/
47
+
# and https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata
48
+
option(HDE_PYTHON_PIP_METADATA_INSTALL "Use CMake to install Python pip metadata. Set to off if some other tool already installs it."ON)
49
+
mark_as_advanced(HDE_PYTHON_PIP_METADATA_INSTALL)
50
+
set(HDE_PYTHON_PIP_METADATA_INSTALLER "cmake"CACHESTRING"Specify the string to identify the pip Installer. Default: cmake, change this if you are using another tool.")
0 commit comments