Skip to content

Commit 06ce53f

Browse files
committed
Clean up repo structure o remove duplicate top-level module (extension + __init__.py))
1 parent faaef26 commit 06ce53f

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ project(
2323

2424
# Build Python extension module
2525
python = 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
)
3130
nanobind_dep = dependency('nanobind')
3231
mod = python.extension_module(

scripts/python_cxx_example.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
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()

src/python_cxx/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)