quiet-army-59227
07/30/2024, 9:22 PMpex_binary
target:
__defaults__(all=dict(resolve="my-resolve"))
resource(name="pyproject", source="pyproject.toml")
python_requirements(source="pyproject.toml")
pex_binary(
name="rpi_bin",
dependencies=[
":pyproject",
],
entry_point="devops.pex_preamble:main",
)
and I specify an entry_point
script which is in another project (called devops) which gets the entry_points from the pex using importlib.metadata.entry_points()
. Ideally, when I run pex, it should run the pex_preamble.py
script which should read and display all the entry_points in the pex. However, when I run it, it returns an empty list (it is not able to detect any entry_points)
When I create a python_distribution
of the same project, it contains the entry_points.txt
files which has all the correct entry_points (which leads me to say that it is able to read it from pyproject.toml correctly - which means the issue is some place else..)