<#17962 Bootstrap python by xrepo> Issue created b...
# github-notifications
c
#17962 Bootstrap python by xrepo Issue created by da-tubi Is your feature request related to a problem? Please describe. There are no Python 3.8/3.9 in Ubuntu 22.04. I tried to use pyenv to install a Python 3.9 interpreter for Pants:
Copy code
pyenv install 3.9.16
But it keeps failing because I didn't install:
Copy code
tk8.6-dev
liblzma-dev
...
Describe the solution you'd like I use xrepo to install python.
Copy code
$ 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
Copy code
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:
Copy code
xrepo install "python 3.x"
xrepo install "python 3.8"
xrepo install "python >=3.11"
pantsbuild/pants