brainy-solstice-27042
05/23/2022, 7:01 PMpython_library
(which is deprecated) and python_sources
to co-exist? I currently have a setup that would allow me to use different version of pants in parallel while I upgrade small pieces at at time (rather than have 200+ BUILD files changed at one time and risk breaking everything in the process). Even if I told pants to ignore unknown types, that would be OKhundreds-father-404
05/23/2022, 7:05 PMpython_library
at first
Over several PRs, upgrade to python_sources
while still on Python 2.8
Once you are fully done upgrading, you can upgrade to 2.9, which I think was the first Pants version to drop python_library
hundreds-father-404
05/23/2022, 7:06 PMbrainy-solstice-27042
05/23/2022, 7:06 PMhundreds-father-404
05/23/2022, 7:06 PMbrainy-solstice-27042
05/23/2022, 7:08 PMhundreds-father-404
05/23/2022, 7:11 PM./pants list ::
and stuff working, then go to the next minor version
--
The plugin complicates things thobrainy-solstice-27042
05/23/2022, 7:16 PMhundreds-father-404
05/23/2022, 7:17 PMPlus, to make matters even more entertaining, we're running python 3.6.14, but I've found that pants 2.X doesn't want to work with anything less than 3.7.Hm, Pants should have zero opinion on what Python version your own code uses. It only needs a 3.7 interpreter to run the tool itself There are folks running Python 2 with Pants 2.11
brainy-solstice-27042
05/23/2022, 7:20 PMwitty-crayon-22786
05/23/2022, 7:20 PMhundreds-father-404
05/23/2022, 7:24 PMMay be a dumb questionAlso definitely no dumb questions in this Slack 🙂 upgrading from 1.30 can be a challenge, but we think the v2 experience is dramatically better. We're very happy to help w/ questions like this!
brainy-solstice-27042
05/23/2022, 9:19 PMsources
field to pex_binary
. I'm not sure what the proper way to add that functionality back similar to what sources
was at least in pants 1.30.witty-crayon-22786
05/23/2022, 9:20 PMpython_sources
target, and have the pex_binary
target explicitly depend on it, probably…?witty-crayon-22786
05/23/2022, 9:21 PMwitty-crayon-22786
05/23/2022, 9:22 PMoriginal_pex_binary = pex_binary
def pex_binary(..):
python_sources(..)
original_pex_binary(..)
…but haven’t tried it before.