Semgrep setup.py install throws exception pip install semgrep 0.31.1
# Semgrep setup.py install throws exception pip install semgrep 0.31.1
Installing semgrep via `python setup.py install` (e.g. as a dependency of Mobile-Security-Framework-MobSF) throws a traceback during the install: the setup.py unconditionally depends on the `wheel` package, which fails in environments where it should not be required.
## How to handle it
Fixed in semgrep 0.37.0: the setup.py no longer depends on the `wheel` package unless you are explicitly building wheels. Upgrade to 0.37.0 or later and the setup.py install path works. (The Gentoo ebuild maintainers also confirmed that the SEMGREP_SKIP_BIN env var works around the binary-install step on their side.)
Source: https://github.com/semgrep/semgrep/issues/2054