Skip to content

Commit 0aa40ac

Browse files
committed
prj: include src as module
1 parent 7012741 commit 0aa40ac

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ requires = [
4646
"scipy>=1.7",
4747
] # PEP 508 specifications
4848
build-backend = "setuptools.build_meta"
49+
50+
[tool.setuptools]
51+
packages = ["pylandau"]
52+
py-modules = ["pylandau_src"]
53+
54+
[tool.setuptools.package-dir]
55+
"pylandau_src" = "src"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
if __name__ == '__main__':
1212
setup(
13-
packages=find_packages(),
1413
include_package_data=True, # accept all data files and directories matched by MANIFEST.in or found in source control
1514
package_data={'': ['README.*', 'VERSION'], 'docs': ['*'], 'examples': ['*']},
1615
ext_modules=[pylandau_numba_ext.distutils_extension()],
1716
platforms='any'
18-
)
17+
)

0 commit comments

Comments
 (0)