-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
39 lines (35 loc) · 1.38 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
import subprocess
import sys
from setuptools import find_packages, setup
try:
from skbuild import setup
except ImportError:
print('scikit-build is required to build from source.')
print('Installation: python -m pip install scikit-build')
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "scikit-build"])
from skbuild import setup
__version__ = '1.0.0'
setup(
name='memilio-simulation', version=__version__, author='DLR-SC',
author_email='[email protected]', maintainer_email='[email protected]',
url='https://github.com/SciCompMod/memilio',
description='Part of MEmilio project, python bindings to the C++ libraries that contain the models and simulations.',
packages=find_packages(where=os.path.dirname(os.path.abspath(__file__))),
setup_requires=['cmake'],
# need shared libs so there is one shared log level
cmake_args=['-DMEMILIO_BUILD_SHARED_LIBS:BOOL=ON'],
install_requires=[
],
extras_require={
'dev': [
# smaller numpy versions cause a security issue, 1.25 breaks testing with pyfakefs
'numpy>=1.22,<1.25',
# smaller pandas versions contain a bug that sometimes prevents reading
# some excel files (e.g. population or twitter data)
'pandas>=2.0.0',
],
},
long_description='', test_suite='memilio.simulation_test',
)