setup: add workaround for pypa/pip#7953.
authorIrides <irides@irides.network>
Tue, 14 Dec 2021 14:56:58 +0000 (08:56 -0600)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 20:36:34 +0000 (20:36 +0000)
setup.py

index 70862845178c6052490183eb366ba4043ed5ac6d..a99297c70a6ea2e46365076c048035a5a6147f5c 100644 (file)
--- 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: