ninia / jep

Embed Python in Java
Other
1.28k stars 145 forks source link

poetry add jep doesn't install the numpy support version #471

Open cshuphys opened 1 year ago

cshuphys commented 1 year ago

I try to add jep package in a poetry environment with poetry add jep. However, after poetry install, the jep.JEP_NUMPY_ENABLED is 0. Seems the install using a .whl instead of setup.py. This behavior persists even after rm the .venv and poetry.lock and even happening in a complete new repo. The current work around is poetry run pip install jep --no-cache-dir jep. This works fine locally. However, when I try to do poetry build to create .whl for publishing, the jep is not included. It seems poetry doesn't allow an ordering in pyproject.toml or poetry install. The StackOverflow seems suggesting to make sure the package has dep on numpy. Not sure how to do this properly. I am looking for a solution to properly have jep written in the pyproject.toml and make sure it build the version with numpy support. Any suggestions would be greatly appreciated. Thank you!