Skip to content

Commit

Permalink
Remove py2 functionalty; add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Jul 15, 2019
1 parent c415a65 commit 319776b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/nodejs-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ setup_python_venv() {
fi

echo "Creating new Python virtual environment: ${python_venv_path}"
# prefer python3 to create virtual environment
if command -v python3 > /dev/null; then
python3 -m venv "${python_venv_path}" --system-site-packages
else
virtualenv "${python_venv_path}"
fi
# reuse system packages so wheel module doesn't have to be downloaded
python3 -m venv "${python_venv_path}" --system-site-packages
}


Expand Down

0 comments on commit 319776b

Please sign in to comment.