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

Just activate venv (Python) #2000

Closed
caldempsey opened this issue Apr 12, 2024 · 2 comments
Closed

Just activate venv (Python) #2000

caldempsey opened this issue Apr 12, 2024 · 2 comments

Comments

@caldempsey
Copy link

Hi!

I love Just! I'd like to activate a virtual environment through Just. Is there a way to just activate venv? I've tried this, it doesn't work (probably due to the shell subprocess):

activate-venv:
	. venv/bin/activate

Let me know!

@laniakea64
Copy link
Contributor

It's not really possible, the closest you can get would be something like #1957 (comment)

@casey
Copy link
Owner

casey commented Apr 12, 2024

Yah, the issue is that venv sets shell variables, and a subprocess, like just, can't set shell variables.

@casey casey closed this as completed Apr 12, 2024
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

3 participants