diff options
author | Jon Nordby <jononor@gmail.com> | 2025-05-02 21:09:52 +0200 |
---|---|---|
committer | Jon Nordby <jononor@gmail.com> | 2025-05-02 21:09:52 +0200 |
commit | 0c11873806ff092a599fea1ae07a44e9461f6bee (patch) | |
tree | 5f3fbd7dcb773b3b2382ba984549ba876247b48f /bindings/setup.py | |
parent | be9f6b6e8e39a711dcfa7806f894b8ec3ff49ca9 (diff) |
bindings: Use verilator_lib in Python
Diffstat (limited to 'bindings/setup.py')
-rw-r--r-- | bindings/setup.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bindings/setup.py b/bindings/setup.py index 487949a..c2f93f7 100644 --- a/bindings/setup.py +++ b/bindings/setup.py @@ -1,14 +1,23 @@ from setuptools import setup, Extension import pybind11 import numpy +import os.path + +verilated_build_dir = '../verilator_lib/obj_dir/' ext_modules = [ Extension( 'galearn_pdm', - ['galearn_pdm.cpp'], + 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++', ), |