https://pantsbuild.org/ logo
#general
Title
# general
d

dazzling-diamond-4749

11/09/2021, 4:55 PM
hi yall, I'm wondering if there is a way to build distributions with overlapping file ownerships? We have to use wheels due to limitations in databricks. I want to build "fat wheels" for each job. But pants is not letting me to lnclude the same file twice in two different wheels.
h

happy-kitchen-89482

11/09/2021, 5:24 PM
This is when you have
python_distribution
targets and Pants is generating the setup.py for you?
d

dazzling-diamond-4749

11/09/2021, 5:24 PM
yes
h

happy-kitchen-89482

11/09/2021, 5:24 PM
It takes great care to generate setup.py in such a way that the same file doesn't end up in two different wheels
But you can override this by providing your own
setup.py
file
And turning off generation
(
generate_setup=False
in the
python_distribution
target IIRC)
1
And then Pants will just do whatever setup.py says
🙌 1
4 Views