File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed
Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ project(
2323
2424# Build Python extension module
2525python = import (' python' ).find_installation()
26- python.install_sources(
27- meson .current_source_dir() / ' src' / ' python_cxx' / ' __init__.py' ,
28- meson .current_source_dir() / ' scripts' / ' python_cxx_example.py' ,
29- subdir : ' python_cxx' ,
26+ install_data (
27+ ' scripts' / ' python_cxx_example.py' ,
28+ install_dir : get_option (' bindir' ),
3029)
3130nanobind_dep = dependency (' nanobind' )
3231mod = python.extension_module(
Original file line number Diff line number Diff line change 33# /// script
44# requires-python = ">=3.12"
55# dependencies = [
6- # "benchmarkme",
6+ # "benchmarkme>=0.1.0a2 ",
77# "numpy>=2.3",
8- # "python-cxx",
8+ # "python-cxx>=0.1.0b22 ",
99# ]
10- #
11- # [tool.uv.sources]
12- # benchmarkme = { git = "https://github.com/hunterdsp/benchmarkme.git" }
13- # python-cxx = { path = "." }
1410# ///
1511
12+ def main ():
1613
17- def main () -> None :
1814 # Import sub-packages
1915 import numpy as np
2016
@@ -49,6 +45,5 @@ def main() -> None:
4945 print ()
5046 bmk ()
5147
52-
53- if __name__ == "__main__" :
54- main ()
48+ if __name__ == "main" :
49+ main ()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments