Skip to content

Commit 9a3eb24

Browse files
committed
Unset $PIP_PREFIX if set
1 parent b6d8423 commit 9a3eb24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

easybuild/scripts/findPythonDeps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,7 @@ def print_deps(package, verbose):
184184
print('Virtualenv not found or executable. ' +
185185
'Make sure it is installed (e.g. in the currently loaded Python module)!')
186186
sys.exit(1)
187+
if 'PIP_PREFIX' in os.environ:
188+
print("$PIP_PREFIX is set. Unsetting it as it doesn't work well with virtualenv.")
189+
del os.environ['PIP_PREFIX']
187190
print_deps(args.package, args.verbose)

0 commit comments

Comments
 (0)