From cf4a794affe2279c2180e7856d257e32d972316d Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Fri, 23 Aug 2024 00:30:29 -0700 Subject: [PATCH] Avoid long install times when installing from source (cc #271) --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4dff6d17..b9fee7b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,13 @@ examples = [ viser = ["py.typed", "*.pyi", "_icons/tabler-icons.tar", "client/**/*", "client/**/.*"] # +[tool.setuptools.exclude-package-data] +# We exclude node_modules to prevent long build times for wheels when +# installing from source, eg via `pip install .`. +# +# https://github.com/nerfstudio-project/viser/issues/271 +viser = ["**/node_modules/**"] + [project.scripts] viser-dev-checks = "viser.scripts.dev_checks:entrypoint"