From: Irides Date: Tue, 14 Dec 2021 14:56:58 +0000 (-0600) Subject: setup: add workaround for pypa/pip#7953. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a95525c254266b4dd5f94c25682605b14a84141f;p=nmigen.git setup: add workaround for pypa/pip#7953. --- diff --git a/setup.py b/setup.py index 7086284..a99297c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,10 @@ from setuptools import setup, find_packages +# TODO: Remove when https://github.com/pypa/pip/issues/7953 is resolved +import site, sys; site.ENABLE_USER_SITE = "--user" in sys.argv[1:] + + def scm_version(): def local_scheme(version): if version.tag and not version.distance: