rstudio / python-builds

an opinionated environment for compiling python
GNU General Public License v3.0
6 stars 2 forks source link

is there a way to unpack into different locations? #10

Open colearendt opened 3 years ago

colearendt commented 3 years ago

This is a bit of an admittedly strange question forced by circumstance:

As a result, is it possible to unpack a python build at /opt/python/jupyter?

jspiewak commented 3 years ago

--transform takes a sed pattern, so:

$ tar -zt -f python-3.8.9-ubuntu-2004.tar.gz --show-transformed-names --transform='s/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/jupyter/' | head
jupyter/
jupyter/bin/
jupyter/bin/pip
jupyter/bin/2to3
jupyter/bin/iptest3
jupyter/bin/2to3-3.8
jupyter/bin/pygmentize
jupyter/bin/ipython3
jupyter/bin/ipython
jupyter/bin/pydoc3.8
edavidaja commented 1 year ago

see https://github.com/rstudio/r-builds/pull/151