Is there a way to add entry points to a PEX built ...
# general
g
Is there a way to add entry points to a PEX built by pants? I am using
poetry_requirements()
. In other words, I want the entry points defined in pyproject.toml under the `[tool.poetry.scripts]`section to be added to the PEX so that when I create a virtual environment from the PEX they're in the virtual env bin directory.
c
Are you trying to have all of the 3rd party entry points available? Something like https://docs.pex-tool.org/api/vars.html#PEX_VENV_BIN_PATH perhaps?
g
3rd party works already actually. The issue is I want 1st party entry points defined in pyproject.toml to be available.
I’m just going to end up copying in the python_distribution and installing it on top of the pex virtual environment to work around the issue