Skip to content

Commit 688ec61

Browse files
authored
build(wheel): Exclude JS source files from wheel builds (#21411)
This shaves off 11 MB from the wheel and 17 MB from the final installation.
1 parent 39d35e1 commit 688ec61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def get_requirements(env):
105105
cmdclass=cmdclass,
106106
license="BSL-1.1",
107107
include_package_data=True,
108+
package_data={"sentry": ["static/sentry/dist/**"]},
109+
exclude_package_data={"sentry": ["static/sentry/**"]},
108110
entry_points={
109111
"console_scripts": ["sentry = sentry.runner:main"],
110112
"sentry.apps": [

0 commit comments

Comments
 (0)