proud-dentist-22844
06/21/2022, 4:44 PMpython_distribution
?bitter-ability-32190
06/21/2022, 4:46 PMproud-dentist-22844
06/21/2022, 4:48 PMbitter-ability-32190
06/21/2022, 4:48 PMproud-dentist-22844
06/21/2022, 4:49 PMbitter-ability-32190
06/21/2022, 4:49 PMproud-dentist-22844
06/21/2022, 4:49 PMbitter-ability-32190
06/21/2022, 4:50 PMproud-dentist-22844
06/21/2022, 4:50 PMbitter-ability-32190
06/21/2022, 4:51 PMproud-dentist-22844
06/21/2022, 4:51 PMwide-midnight-78598
06/21/2022, 6:20 PMmypyc
plugin, I spent a lot of time here:
https://www.pantsbuild.org/docs/plugins-setup-py#2-create-a-rule-with-your-logic
https://github.com/pantsbuild/pants/blob/e7f1da0ebd05cc5356be13f7ad578b575645d642/src/python/pants/backend/python/goals/setup_py.py#L521-L528setup.py
content to be generatedhappy-kitchen-89482
06/21/2022, 6:55 PMlicense_files=
, but you'll presumably also need to add an explicit target dep so that the file is actually present at setup.py runtimeproud-dentist-22844
06/21/2022, 6:57 PMrelocate_files
worked out perfectly for this. As long as the LICENSE file is in the chroot, setuptools automatically picks it up and puts it in the dist-info. No extra setupkwargs required. Very nice.