aboutsummaryrefslogtreecommitdiffstats
path: root/sources/api/pySoftMC/setup.py
blob: c353396b80d29afefe4516ea0ccdf307ade92dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from setuptools import setup, Extension
import os

here    = os.path.dirname(os.path.abspath(__file__))
api_dir = os.path.join(here, "..")
pybind11_include = os.path.join(here, "../ext/pybind11/include")

ext = Extension(
    "pySoftMC",
    sources=[
        os.path.join(api_dir, "board.cpp"),
        os.path.join(api_dir, "instruction.cpp"),
        os.path.join(api_dir, "platform.cpp"),
        os.path.join(api_dir, "prog.cpp"),
        os.path.join(here, "pySoftMC.cpp"),
    ],
    include_dirs=[here, api_dir, pybind11_include],
    language="c++",
    extra_compile_args=["-std=c++14", "-pthread", "-O3", "-DPYSMC"],
)

setup(name="pySoftMC", ext_modules=[ext])