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

Automating virtual environments #397

Closed
audetto opened this issue May 10, 2022 · 2 comments
Closed

Automating virtual environments #397

audetto opened this issue May 10, 2022 · 2 comments

Comments

@audetto
Copy link

audetto commented May 10, 2022

I am running jep 4.0.3 in Ubuntu 20.04.

I am already able to use virtual environments, but I feel I am providing redundant information which jep could figure out by itself.

What I do is

  1. set the env var VIRTUAL_ENV before executing java
  2. call MainInterpreter.setJepLibraryPath() with the equivalent of

$VIRTUAL_ENV\lib\python3.8\site-packages\jep\libjep.so

I wonder if this logic cold be automated in https://github.com/ninia/jep/blob/master/src/main/java/jep/LibraryLocator.java

@audetto audetto changed the title Supporting virtual environments Automating virtual environments May 10, 2022
@bsteffensmeier
Copy link
Member

This seems reasonable to me. I have implemented it in #398. Thanks for the idea.

@SonarSonic
Copy link

@audetto I'm trying to do the same on Windows but those two steps are not enough for me. I'm wondering do you perform additional steps to get your Virtual Environment to work? Thanks!

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