Find the highest Python version with installed virtualenvwrapper

Merged
#73 · Created  · Last updated

Merged pull request

Merged in master (pull request #73)

  • 0956fc3
  • Author:
  • Closed by:
  • 2019-08-06

Description

As we discussed in this thread, it would be nice if the virtualenvwrapper would be ready for python-3-only environments.

 

I prepared this patch for virtualenvwrapper.sh which now tries to use python3 then python2 and pure python just as a fallback. It also counts with situation when you have Python 3 installed but virtualenvwrapper module is installed for Python 2. In that case, Python 2 is choosen as the main one.

 

I did some testing on Fedora with both Pythons installed as well as on old Debian with just Python 2.

 

What do you think about it?

0 attachments

Loading commits...