Skip to content

Commit 4bc101a

Browse files
author
spirit
committed
Download for relevant commands only.
1 parent f09205d commit 4bc101a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎setup_language_tool.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
def hook(config):
77
if "sdist" in sys.argv:
88
del config["files"]["package_data"]
9-
else:
9+
elif any(arg.startswith("install") or
10+
arg.startswith("build") or
11+
arg.startswith("bdist") for arg in sys.argv):
1012
download_lt()

0 commit comments

Comments
 (0)