mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
pip install structure
This commit is contained in:
parent
4f4a3f7c92
commit
a2f7b9183c
12
setup.py
12
setup.py
@ -51,23 +51,27 @@ if 'NETGEN_CCACHE' in os.environ:
|
|||||||
|
|
||||||
if 'darwin' in sys.platform:
|
if 'darwin' in sys.platform:
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
f'-DNG_INSTALL_DIR_LIB={py_install_dir}/netgen',
|
f'-DNG_INSTALL_DIR_LIB=netgen',
|
||||||
f'-DNG_INSTALL_DIR_PYTHON={py_install_dir}',
|
f'-DNG_INSTALL_DIR_PYTHON=.',
|
||||||
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',
|
||||||
f'-DNG_INSTALL_DIR_BIN={py_install_dir}/netgen',
|
f'-DNG_INSTALL_DIR_BIN=netgen',
|
||||||
|
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 += [
|
||||||
f'-DNG_INSTALL_DIR_LIB={py_install_dir}/{name_dir}.libs',
|
f'-DNG_INSTALL_DIR_LIB={py_install_dir}/{name_dir}.libs',
|
||||||
f'-DNG_INSTALL_DIR_BIN=bin',
|
f'-DNG_INSTALL_DIR_BIN=bin',
|
||||||
]
|
]
|
||||||
|
packages = []
|
||||||
|
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
'-DUSE_SUPERBUILD:BOOL=ON',
|
'-DUSE_SUPERBUILD:BOOL=ON',
|
||||||
@ -92,7 +96,7 @@ setup(
|
|||||||
description="Netgen",
|
description="Netgen",
|
||||||
author='The Netgen team',
|
author='The Netgen team',
|
||||||
license="LGPL2.1",
|
license="LGPL2.1",
|
||||||
#packages=['netgen'],
|
packages=packages,
|
||||||
#package_dir={'netgen': 'python'},
|
#package_dir={'netgen': 'python'},
|
||||||
tests_require=['pytest'],
|
tests_require=['pytest'],
|
||||||
#include_package_data=True,
|
#include_package_data=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user