We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b59828 commit b513b3eCopy full SHA for b513b3e
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