From a95525c254266b4dd5f94c25682605b14a84141f Mon Sep 17 00:00:00 2001 From: Irides Date: Tue, 14 Dec 2021 08:56:58 -0600 Subject: [PATCH] setup: add workaround for pypa/pip#7953. --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.30.2