mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix setup.py
This commit is contained in:
parent
17e845df29
commit
56c86dfb49
6
setup.py
6
setup.py
@ -49,6 +49,8 @@ if 'NETGEN_ARCH' in os.environ:
|
|||||||
if 'NETGEN_CCACHE' in os.environ:
|
if 'NETGEN_CCACHE' in os.environ:
|
||||||
cmake_args += [f'-DUSE_CCACHE=ON']
|
cmake_args += [f'-DUSE_CCACHE=ON']
|
||||||
|
|
||||||
|
packages = ['netgen', 'pyngcore']
|
||||||
|
|
||||||
if 'darwin' in sys.platform:
|
if 'darwin' in sys.platform:
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
f'-DNG_INSTALL_DIR_LIB=netgen',
|
f'-DNG_INSTALL_DIR_LIB=netgen',
|
||||||
@ -56,7 +58,6 @@ if 'darwin' in sys.platform:
|
|||||||
f'-DNG_INSTALL_DIR_CMAKE=lib/cmake',
|
f'-DNG_INSTALL_DIR_CMAKE=lib/cmake',
|
||||||
f'-DNG_INSTALL_DIR_BIN=bin',
|
f'-DNG_INSTALL_DIR_BIN=bin',
|
||||||
]
|
]
|
||||||
packages = ['netgen']
|
|
||||||
elif 'win' in sys.platform:
|
elif 'win' in sys.platform:
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
'-A Win64',
|
'-A Win64',
|
||||||
@ -64,7 +65,6 @@ elif 'win' in sys.platform:
|
|||||||
f'-DNG_INSTALL_DIR_PYTHON=.',
|
f'-DNG_INSTALL_DIR_PYTHON=.',
|
||||||
f'-DNG_INSTALL_DIR_LIB=Library/lib',
|
f'-DNG_INSTALL_DIR_LIB=Library/lib',
|
||||||
]
|
]
|
||||||
packages = ['netgen']
|
|
||||||
elif 'linux' in sys.platform:
|
elif 'linux' in sys.platform:
|
||||||
name_dir = name.replace('-','_')
|
name_dir = name.replace('-','_')
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
@ -73,8 +73,6 @@ elif 'linux' in sys.platform:
|
|||||||
]
|
]
|
||||||
packages = []
|
packages = []
|
||||||
|
|
||||||
packages.append("pyngcore")
|
|
||||||
|
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
'-DUSE_SUPERBUILD:BOOL=ON',
|
'-DUSE_SUPERBUILD:BOOL=ON',
|
||||||
'-DUSE_CCACHE:BOOL=ON',
|
'-DUSE_CCACHE:BOOL=ON',
|
||||||
|
Loading…
Reference in New Issue
Block a user