News for hackers. Stuff that matters.
Re:Pex: A tool for generating .pex (Python EXecutable) files... by networked on Saturday November 16, 2024 @03:57AM (#42155364)
With luck, `uv tool install` [1] will solve most of the frustrations with Python programs on Linux/Mac/Windows, since uv combines the functionality of pipx and pyenv and doesn't itself depend on Python. It is a single binary that lets you start working with Python.

I already have a success story of helping a friend install ArchiveBox with uv. ArchiveBox required an older version of Python than their system had. The quickest and easiest solution I could think of was:

  pipx install uv
  uv tool install --python 3.8 archivebox
You could also install uv by other means.

[1] https://docs.astral.sh/uv/concepts/tools/

Re:Pex: A tool for generating .pex (Python EXecutable) files... by CraigJPerry on Saturday November 16, 2024 @08:23AM (#42156274)
Yeah uv works great - that --python in your example can even be awkward pythons like [email protected] (provided pypy works on your OS/arch combo)
Re:Pex: A tool for generating .pex (Python EXecutable) files... by drowsspa on Saturday November 16, 2024 @11:43AM (#42157304)
> imagine here the xkcd comic about standards

These tools come and go in Python world... It's basically like JavaScript frameworks. It seems that people recommend a different one every month

Re:Pex: A tool for generating .pex (Python EXecutable) files... by lerax on Saturday November 16, 2024 @09:56PM (#42161633)
Yes, just like this. Since 2015 when I started work professionally with python, after each year, a new project shows some kind of "messiah complex" around the python distributing software problem... They usually say in some part of the readme: "That time we will be saved! We have the right tool here that does this and that".

No, it's not solved! And probably will not be solved neither.

Obviously, things get better honestly, 2015 was far worst than now, but currently it's very far from perfect.

For instance, go static build are much superior. Or even Rust, with all the language issues, at least the tooling is good and the software distribution works great.