Skip to content

Commit c1d50b9

Browse files
Fixed #33044 -- Reallowed editable install into user site directory.
Regression in f8f35e8.
1 parent 691486a commit c1d50b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import os
2+
import site
23
import sys
34
from distutils.sysconfig import get_python_lib
45

56
from setuptools import setup
67

8+
# Allow editable install into user site directory.
9+
# See https://github.com/pypa/pip/issues/7953.
10+
site.ENABLE_USER_SITE = '--user' in sys.argv[1:]
11+
712
# Warn if we are installing over top of an existing installation. This can
813
# cause issues where files that were deleted from a more recent Django are
914
# still present in site-packages. See #18115.

0 commit comments

Comments
 (0)