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

Specify Python version for virtual env #896

Open
nskmda opened this issue Oct 6, 2023 · 4 comments
Open

Specify Python version for virtual env #896

nskmda opened this issue Oct 6, 2023 · 4 comments

Comments

@nskmda
Copy link

nskmda commented Oct 6, 2023

Team,

Is there a way to configure pybuilder to use version of python different from the one installed in the system in the virtual environment it creates?

Thanks.

@nskmda
Copy link
Author

nskmda commented Oct 10, 2023

Okay. I put a 'Q/A' topic instead.

@nskmda nskmda closed this as completed Oct 10, 2023
@arcivanov
Copy link
Member

No need, sorry!

@arcivanov arcivanov reopened this Oct 10, 2023
@arcivanov
Copy link
Member

This is a useful feature but very hard to do cross-OS compatible. Can borrow some code from pipenv I suppose.

@nskmda
Copy link
Author

nskmda commented Oct 10, 2023

I see a plugin creates a virtual environment.
Is there a configuration to make the virtual environment use specific version of Python then?

This is basically what I need. I don't really care if PyBuilder runs on my currently installed Python version.

What I actually need (sorry, could not explain it clear enough) is have PyBuilder-created virtual env use a specific version of Python (right now looks like it copies my locally installed Python version).

When I run pyb I do see Python virtual envs created but one of them is 2.6.x and another is 3.7.x (my local version).
The project I'm trying to build needs Python 3.10+.
So I would like PyB use a version of Python different from my local installation when creating that virtual env.
Is that possible with the latest release?

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

No branches or pull requests

2 participants