Skip to content

Commit 72ed927

Browse files
committed
Fix missing files in wheel when building in windows.
It seems setuptools would miss .cpp and .cu in windows platform, so add them as package data in pyproject.toml. PR tracking at: USTC-KnowledgeComputingLab/qmb#18
2 parents 45970de + b079d35 commit 72ed927

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ qmb = "qmb.__main__:main"
5959
[tool.setuptools.packages.find]
6060
include = ["qmb"]
6161

62+
[tool.setuptools.package-data]
63+
qmb = ["*.cpp", "*.cu"]
64+
6265
[tool.setuptools_scm]
6366
version_file = "qmb/_version.py"
6467
version_scheme = "no-guess-dev"

0 commit comments

Comments
 (0)