From c1d50b901b50672a46e7e5fe473c14da1616fc4e Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Wed, 1 Sep 2021 22:09:37 +0200 Subject: [PATCH] Fixed #33044 -- Reallowed editable install into user site directory. Regression in f8f35e8c530aaf440fa8160327461460d79f6db2. --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 22fc3a7a56..43a5f69365 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,14 @@ import os +import site import sys from distutils.sysconfig import get_python_lib from setuptools import setup +# Allow editable install into user site directory. +# See https://github.com/pypa/pip/issues/7953. +site.ENABLE_USER_SITE = '--user' in sys.argv[1:] + # Warn if we are installing over top of an existing installation. This can # cause issues where files that were deleted from a more recent Django are # still present in site-packages. See #18115.