mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
pyngcore as package (staying backward compatible)
This commit is contained in:
parent
6f4cc7c528
commit
d2378d9781
@ -87,6 +87,6 @@ if(USE_PYTHON)
|
||||
pybind11_add_module(pyngcore SHARED python_ngcore_export.cpp)
|
||||
target_link_libraries(pyngcore PUBLIC ngcore netgen_python)
|
||||
set_target_properties(pyngcore PROPERTIES INSTALL_RPATH "${NG_RPATH_TOKEN}/${NETGEN_PYTHON_RPATH}")
|
||||
install(TARGETS pyngcore DESTINATION ${NG_INSTALL_DIR_PYTHON} COMPONENT netgen)
|
||||
install(TARGETS pyngcore DESTINATION ${NG_INSTALL_DIR_PYTHON}/pyngcore COMPONENT netgen)
|
||||
endif(USE_PYTHON)
|
||||
|
||||
|
@ -18,6 +18,12 @@ install(FILES
|
||||
COMPONENT netgen
|
||||
)
|
||||
|
||||
install(FILES
|
||||
pyngcore/__init__.py
|
||||
DESTINATION ${NG_INSTALL_DIR_PYTHON}/pyngcore
|
||||
COMPONENT netgen
|
||||
)
|
||||
|
||||
# build stub files for pybind11 packages
|
||||
if(BUILD_STUB_FILES)
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import pybind11_stubgen; print(pybind11_stubgen.__file__)" OUTPUT_VARIABLE stubgen_path RESULT_VARIABLE pybind11_stubgen)
|
||||
|
1
python/pyngcore/__init__.py
Normal file
1
python/pyngcore/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .pyngcore import *
|
Loading…
Reference in New Issue
Block a user