forked from fabm-model/fabm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (20 loc) · 656 Bytes
/
setup.py
File metadata and controls
23 lines (20 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import sys
from setuptools import setup
FABM_BASE = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(FABM_BASE, "src/drivers/python"))
from build_cmake import CMakeExtension, bdist_wheel, CMakeBuild
setup(
packages=["pyfabm", "pyfabm.utils"],
package_dir={"": "src"},
ext_modules=[
CMakeExtension(
"pyfabm.fabm_0d", "-DPYFABM_DEFINITIONS=_FABM_DIMENSION_COUNT_=0"
),
CMakeExtension(
"pyfabm.fabm_1d", "-DPYFABM_DEFINITIONS=_FABM_DIMENSION_COUNT_=1"
),
],
cmdclass={"bdist_wheel": bdist_wheel, "build_ext": CMakeBuild},
zip_safe=False,
)