Skip to content

Commit 0970f64

Browse files
authoredOct 19, 2021
Merge pull request fgnt#58 from fgnt/workaround_pip
Workaround to enable install into user site directory
2 parents c71538f + 4163a6a commit 0970f64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
https://github.com/pypa/sampleproject
66
"""
77

8-
# To use a consistent encoding
8+
# Allow editable install into user site directory.
9+
# See https://github.com/pypa/pip/issues/7953.
10+
import site
911
import sys
12+
site.ENABLE_USER_SITE = '--user' in sys.argv[1:]
13+
14+
# To use a consistent encoding
1015
from codecs import open
1116
# Always prefer setuptools over distutils
1217
from distutils.core import setup

0 commit comments

Comments
 (0)
Please sign in to comment.