Skip to content

Commit 52313c1

Browse files
mgornyjooola
andauthored
build: exclude top-level directories from being installed (#282)
Fix setup.py to exclude installing the tests, examples and docs directories as a top-level Python package, i.e. into: /usr/lib/python*/site-packages/tests Related to 68bb0f2 --------- * build: exclude `tests` from being installed Fix `setup.py` to exclude installing the `tests` directory as a top-level Python package, i.e. into: /usr/lib/python*/site-packages/tests * build: also exclude examples and docs Related to 68bb0f2 --------- Co-authored-by: jo <ljonas@riseup.net>
1 parent c5447ab commit 52313c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@
5858
],
5959
},
6060
include_package_data=True,
61-
packages=find_packages(),
61+
packages=find_packages(exclude=["examples", "tests*", "docs"]),
6262
zip_safe=False,
6363
)

0 commit comments

Comments
 (0)