Skip to content

Commit 8cfce1a

Browse files
authored
remove unnecessary files from pypi source distribution (deepmodeling#2565)
Our PyPi source distribution package is over 30MB which is too large! See https://pypi.org/project/deepmd-kit/2.2.2/#files By default, when using `setuptools-scm`, all files will be added to the package. This PR excludes directories that are not used for building and installing, including: - source/tests - source/api_c/tests - source/api_cc/tests - source/lib/tests - source/lmp/tests - doc - examples - data - .github After removing these files from the source distribution, the package is only 708 KB. --------- Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 283101a commit 8cfce1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

MANIFEST.in

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prune source/tests
2+
prune source/api_c/tests
3+
prune source/api_cc/tests
4+
prune source/lib/tests
5+
prune source/lmp/tests
6+
prune doc
7+
prune examples
8+
prune data
9+
prune .github

0 commit comments

Comments
 (0)