Skip to content

Commit c381bef

Browse files
committed
packaging-trusty.sh: fix virtualenv detection
1 parent 2b9e839 commit c381bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/packaging-trusty.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set -o xtrace
3030
# virtualenv detection logic copied from pip:
3131
# - https://github.com/pypa/pip/blob/ccd75d4daf7753b6587cffbb1ba52e7dfa5e9915/pip/locations.py#L41-L51
3232
USER_OPTS=""
33-
if python -c 'import sys; sys.exit(hasattr(sys, "real_prefix"))' ||
33+
if python -c 'import sys; sys.exit(hasattr(sys, "real_prefix"))' &&
3434
python -c 'import sys; sys.exit(sys.prefix != getattr(sys, "base_prefix", sys.prefix))'
3535
then
3636
USER_OPTS="--user"

0 commit comments

Comments
 (0)