From 79dd1d16fbc3ef583cc516710d419ea71ee10f45 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Wed, 26 Mar 2025 11:29:22 +0530 Subject: [PATCH 1/2] Declare entry points to fix installation on Widnows --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 244f844..e5aea37 100644 --- a/setup.py +++ b/setup.py @@ -8,4 +8,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", + ] + }, ) From f45596ad2a6309875dd5e360f509f2067299cbf7 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Wed, 26 Mar 2025 11:30:21 +0530 Subject: [PATCH 2/2] Remove outdated comment in setup.py --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index e5aea37..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(