holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.7k stars 117 forks source link

Does Pyenv work on A-Shell or is there a way to run different Python versions? #600

Open YousufSSyed opened 1 year ago

YousufSSyed commented 1 year ago

I want to see if I can install Pywb, but it doesn't work on 3.11.

holzschu commented 1 year ago
YousufSSyed commented 1 year ago

Would it be possible for you / A-Shell to provide python versions to download onto the app after installing it?

holzschu commented 1 year ago

No, that is the main issue: anything that is a binary (a command or a dynamic library) has to ship with the app. Only non-executable files can be downloaded after the installation.

YousufSSyed commented 1 year ago

How come its possible to install pip packages but not python vesions like that?

holzschu commented 1 year ago

pip in a-Shell only works with "pure Python" packages, packages that only include Python files. If you try to pip install packages with dynamic libraries, C files or Cython files, you will see a failure as well.

YousufSSyed commented 1 year ago

So it wouldn't be possible to precompile Python for A-Shell and then enter commands to download them from a mirror?