saltstack-formulas / virtualenv-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
10 stars 37 forks source link

Distinguish between python 2 and 3 #2

Open EvaSDK opened 8 years ago

EvaSDK commented 8 years ago

Like the new pip formula, this formula does not allow settings up virtualenv for a given python version. This is problematic if you need to install a python package that does not work on one version or the other as the actual installed python will depend on the defaults in the distribution. You will most likely not get both though.

See also https://github.com/saltstack-formulas/pip-formula/issues/4

mrichar1 commented 4 years ago

The code allows specifying the python key in options which is passed directly to the virtualenv state module: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.virtualenv_mod.html

This should allow the python version for each virtualenv to be specified.

https://github.com/saltstack-formulas/virtualenv-formula/blob/2e9eacb50c2328b1e48d4ce831707006ed7834a7/virtualenv/config.sls#L43-L45