rhythmic-morning-87313
08/29/2022, 3:44 AMwide-midnight-78598
08/29/2022, 12:11 PMpython3
?
brew install python@3.9
- does Pants not pick that up correctly?
This isn't scalable, but if you need to specify the location to a Python install, could you use the .pants.rc
file? https://www.pantsbuild.org/docs/options#pantsrc-file
Also, just a heads up that you might like this (very much still in development, but should be awesome when done): https://github.com/pantsbuild/pants/pull/16484rhythmic-morning-87313
08/29/2022, 1:30 PM.pants.rc
is not what I want because my project is already using Python 3.10, which is different from the supported versions (3.7, 3.8, 3.9) of Pants 2.13. I just want to override the Python interpreter path only for the ./pants
script and Pants itself, not for my project codes, depending on how Python 3.9 is installed and discovered in the developer's machines.wide-midnight-78598
08/29/2022, 2:01 PMhttps://github.com/indygreg/python-build-standalone/releasesWe're using PyOxidizer which is created by Greg - it was the first plugin I added to Pants 🙂
I just want to override the Python interpreter path only for theThis is what I do:script and Pants itself, not for my project codes, depending on how Python 3.9 is installed and discovered in the developer's machines./pants
[python-bootstrap]
search_path = ["/usr/local/bin"]
rhythmic-morning-87313
08/29/2022, 2:03 PM.pants.bootstrap
wide-midnight-78598
08/29/2022, 2:03 PM.pants.rc
I do agree, overall, that there are some challenges with differing python versions, and just onboarding as a result - especially when Pants requires one Python version, while your code uses a different onerhythmic-morning-87313
08/29/2022, 2:06 PM