cool-easter-32542
04/06/2023, 2:33 AMpyenv install 3.9.16
But it keeps failing because I didn't install:
tk8.6-dev
liblzma-dev
...
Describe the solution you'd like
I use xrepo to install python.
$ xrepo install "python 3.9.10"
$ xrepo env -b "python 3.9.10" which python
/home/da/.xmake/packages/p/python/3.9.10/d06fa80222094670880bb9934b285f43/bin/python
I added /home/da/.xmake/packages/p/python/3.9.10/d06fa80222094670880bb9934b285f43/bin to PATH, and it works well for Pants.
I hope there is a <XREPO> just like <PYENV> available for xrepo installed Python, so that I do not need to tune the PATH.
Describe alternatives you've considered
Further more, if pants can not find the suitable Python interpreter, and if xrepo is available as a command line, pants could invoke xrepo to install the corresponding Python interpreter.
Additional context
• python packages in xrepo: https://xrepo.xmake.io/#/packages/linux?id=python-linux
Notice that
xrepo search python
can only find the latest support python version. And all supported python can be found in the above link.
xrepo users could install python in the following ways:
xrepo install "python 3.x"
xrepo install "python 3.8"
xrepo install "python >=3.11"
pantsbuild/pantscool-easter-32542
04/06/2023, 2:33 AM