magnificent-hairdresser-5608
04/23/2022, 7:21 PMpex_binary)?
Currently, in our company, we do not have any pex registry and we publish our Python libraries/applications on an in-house PyPI registry. So, it is convenient to be able to publish our applications similar to our libraries by wheel files.bitter-ability-32190
04/23/2022, 7:49 PMpython_distributiob?happy-kitchen-89482
04/23/2022, 10:49 PMmagnificent-hairdresser-5608
04/24/2022, 6:41 AMpython_distribution target generates wheel files using the raw requirements themselves (not the pinned requirements).
But the pex_binary target uses the generated lock files.
Am I wrong?bitter-ability-32190
04/24/2022, 2:56 PMsetup.py or pyproject.toml to specify whatever metadata you wantmagnificent-hairdresser-5608
04/24/2022, 4:43 PMsetup.py file.
I found a fairly good solution using the Pants documentation. What about depending python_distribution to a pex_binary target and register the pex file as a console entry_point (Pants entry_point supports pex_binary dependency).
https://www.pantsbuild.org/docs/python-distributions#using-a-generated-setuppy
It has some pros and cons. The application doesn't depend on any other library and it could be installed safely without virtual-environment creation or Pipx. But its size will be very large.high-yak-85899
04/25/2022, 9:05 PMmagnificent-hairdresser-5608
04/30/2022, 4:06 PMbitter-ability-32190
04/30/2022, 7:55 PMmagnificent-hairdresser-5608
04/30/2022, 8:07 PM