Add option to override ./configure'd virtualenv
|Reported by:||ayleph||Owned by:|
./configure searches for
virtualenv in the following order:
Once a match is found, the search terminates. If a user has both python2 and python3 installed, then the python3
virtualenv may be configured for use, even when
--with-python3 is not specified. This results in an error for users who intend to use (or need to use) python2.
In the case of Arch Linux,
virtualenv is the python3 package, and
virtualenv2 is the python2 package. When I run
./configure without specifying
--with-python3, the python3
virtualenv is configured even though I didn't intend to use python3. To fix this, I must manually edit Makefile as follows before running
-VIRTUALENV = virtualenv +VIRTUALENV = virtualenv2
Some options for how to deal with this come to mind.
./configure support interactive configuration? If so, we could consider searching for all
virtualenvs and then asking the user which one they want to use.
--with-virtualenv switch  could be extended to accept a path to the desired executable.
If distributions consistently use
virtualenv2 for python2 and use
virtualenv3) exclusively for python3, perhaps we could tie the selection of
virtualenv to the python version specified in configuration.