We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c537b05 + b513b3e commit 28c98d4Copy full SHA for 28c98d4
readthedocs/projects/utils.py
@@ -69,6 +69,10 @@ def run(*commands, **kwargs):
69
del environment['DJANGO_SETTINGS_MODULE']
70
if 'PYTHONPATH' in environment:
71
del environment['PYTHONPATH']
72
+ # Remove PYTHONHOME env variable if set, otherwise pip install of requirements
73
+ # into virtualenv will install incorrectly
74
+ if 'PYTHONHOME' in environment:
75
+ del environment['PYTHONHOME']
76
cwd = os.getcwd()
77
if not commands:
78
raise ValueError("run() requires one or more command-line strings")
0 commit comments