jep
jep copied to clipboard
Automating virtual environments
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
- set the env var
VIRTUAL_ENVbefore executing java - 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
This seems reasonable to me. I have implemented it in #398. Thanks for the idea.
@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!