summaryrefslogtreecommitdiff
path: root/bindings/setup.py
blob: c2f93f7b5ec4465b36755e17c3ef01a86308fefb (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 = '../verilator_lib/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,
)