summaryrefslogtreecommitdiff
path: root/bindings/setup.py
blob: 0b18130e1a3c514e862f1e674c7280c2bc3c82cc (plain) (blame)
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
from setuptools import setup, Extension
import pybind11
import numpy
import os.path

verilated_build_dir = './obj_dir/'

ext_modules = [
    Extension(
        'galearn_pdm',
        sources=[
            'galearn_pdm.cpp',
        ],
        include_dirs=[
            pybind11.get_include(),
            numpy.get_include(),
            verilated_build_dir,
        ],
        extra_objects=[
            os.path.join(verilated_build_dir, 'libsim.so')
        ],
        language='c++',
    ),
]

setup(
    name='galearn',
    version='0.0.1',
    ext_modules=ext_modules,
    zip_safe=False,
)