Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple python versions #79

Closed
nilp0inter opened this issue Apr 11, 2014 · 2 comments
Closed

Multiple python versions #79

nilp0inter opened this issue Apr 11, 2014 · 2 comments
Labels
enhancement New feature or request

Comments

@nilp0inter
Copy link

Hi!

We have a mixed environment where python 2 and python 3 are used at the same time.

We did a try declaring the class twice, but we get this error:

Duplicate declaration: Class[Python] is already declared in file ...

And also we tried to declare the python class passing a list of versions:

   class { 'python':
        version => ['2.7', '3.4'],
        pip => true,
        dev => true,
        virtualenv => true,
        gunicorn => false,
    }

But it did not help.

So my question is: It is possible to use this module for provide multiple versions of python at the same time?

Thank you!

@thomasleese
Copy link

I am trying to achieve this too. Do you have any tips on how you managed this in the end?

@rcmachado
Copy link

Maybe it's better to just use pyenv? I think that managing multiple python versions could be difficult (I guess) and you will end up with only one major version of each python (eg. you can't have 3.3 and 3.4 at the same time - at least without some custom compilation params).

If you are interested in using it with puppet, maybe pyenv-puppet (I didn't test it yet) could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants