mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
pip - sign libs on macos, fix res install path
This commit is contained in:
parent
eea8054af6
commit
ac0326ce91
1
setup.py
1
setup.py
@ -58,6 +58,7 @@ if 'darwin' in sys.platform:
|
||||
'-DNG_INSTALL_DIR_BIN=bin',
|
||||
'-DNG_INSTALL_DIR_CMAKE=netgen/cmake',
|
||||
'-DNG_INSTALL_DIR_INCLUDE=netgen/include',
|
||||
'-DNG_INSTALL_DIR_RES=share',
|
||||
]
|
||||
elif 'win' in sys.platform:
|
||||
cmake_args += [
|
||||
|
@ -1,2 +1,7 @@
|
||||
add_subdirectory(catch)
|
||||
add_subdirectory(pytest)
|
||||
|
||||
# this code goes here, because tests is the last add_subdirectory (otherwise it gets executed too early)
|
||||
if(APPLE AND BUILD_FOR_CONDA)
|
||||
install(CODE "execute_process(COMMAND sh -c \"codesign --force -s - netgen/*.so netgen/*.dylib pyngcore/*.so\" WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})")
|
||||
endif(APPLE AND BUILD_FOR_CONDA)
|
||||
|
Loading…
Reference in New Issue
Block a user