diff --git a/setup.py b/setup.py index 244f844..f77604e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,4 @@ # type: ignore -# Used for pre-commit since it expects a setup.py in repo root -# for actual setup.py see cli/setup.py from setuptools import setup setup( @@ -8,4 +6,11 @@ version="1.114.0", install_requires=["semgrep==1.114.0"], packages=[], + # To be able to use this package on Windows, we need to declare + # entry_points. See https://stackoverflow.com/a/73140567 + entry_points={ + "console_scripts": [ + "semgrep = semgrep.console_scripts.entrypoint:main", + ] + }, )