Comments

Hacker News

Are they less than 700mb?

by tonymet

Isn’t this what Sublime Text uses?

by djfobbz

What is this sudden revived Astral marketing?

Did Astral's package cache proxy or another part cause the OpenAI/Huggingface incident?

by 1928416

I keep meaning to explore compiling Python +libs to WASM for running in a desktop environment. It is already Python, so I am willing to accommodate enormous performance losses. I just want to package up the code into something more straightforward than PyInstaller.

by 0cf8612b2e1e

There is also the APE/Cosmopolitan cross platform binaries, which includes a python. Yes, cross platform binaries. The binaries run "natively on Linux + Mac + Windows + FreeBSD + OpenBSD 7.3 + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable."

* Python Source: https://github.com/jart/cosmopolitan/tree/master/third_party...

* Python Binary: https://cosmo.zip/pub/cosmos/bin/python which is ~ 40MB.

Apparently you can zip your .py files in with the python binary and make it run, but I haven't had a chance to try and play with that yet.

by zie

> Many users of these distributions might be better served by the PyOxy sister project [1]. PyOxy takes these Python distributions and adds some Rust code for enhancing the functionality of the Python interpreter. The official PyOxy release binaries are single file executables providing a full-featured Python interpreter.

1: https://github.com/indygreg/PyOxidizer/

From that readme, it seems PyOxy has a few related uses:

- It can produce a single file executable representing a Python app including the interpreter

- It can ship self-contained Python interpreters and related to be embedded or used as a library in a larger application

- PyOxidizer can serve as a bridge between Rust and Python - "PyOxidizer can be used to easily add a Python interpreter to any Rust project. But the opposite is also true: PyOxidizer can also be used to add Rust to Python."

by rsyring

These distributions are excellent. Astral took over maintenance of them a while ago so technically they sit under OpenAI now.

https://github.com/astral-sh/python-build-standalone

If you're looking to bundle Python into another application - a macOS desktop app for example - these are exactly what you need.

by simonw

These are the Python distributions we use in uv (https://github.com/astral-sh/uv), i.e., when you install Python with uv, you're installing from python-build-standalone. (Same goes for many of the other tools that can install Python for you, like pipx, Hatch, Poetry, Bazel, etc.)

Most of our engineering time on the project over the past ~year and a half has been split into three buckets:

1. Keeping up with upstream CPython. (We're also hoping to upstream as much of this work as we can into CPython itself.)

2. Fixing any / all of the known "quirks" vis-a-vis CPython.

3. Making these distributions as fast as (or faster than) any other CPython distribution.

If you're interested, I wrote a bit about the why / how here when we took over maintenance of the project: https://x.com/charliermarsh/status/1864050698574311561

by charliermarsh

Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • Are they less than 700mb?
  • Isn’t this what Sublime Text uses?
  • What is this sudden revived Astral marketing?

    Did Astral's package cache proxy or another part cause the OpenAI/Huggingface incident?

  • I keep meaning to explore compiling Python +libs to WASM for running in a desktop environment. It is already Python, so I am willing to accommodate enormous performance losses. I just want to package up the code into something more straightforward than PyInstaller.
  • There is also the APE/Cosmopolitan cross platform binaries, which includes a python. Yes, cross platform binaries. The binaries run "natively on Linux + Mac + Windows + FreeBSD + OpenBSD 7.3 + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable."

    * Python Source: https://github.com/jart/cosmopolitan/tree/master/third_party...

    * Python Binary: https://cosmo.zip/pub/cosmos/bin/python which is ~ 40MB.

    Apparently you can zip your .py files in with the python binary and make it run, but I haven't had a chance to try and play with that yet.

    by zie
  • > Many users of these distributions might be better served by the PyOxy sister project [1]. PyOxy takes these Python distributions and adds some Rust code for enhancing the functionality of the Python interpreter. The official PyOxy release binaries are single file executables providing a full-featured Python interpreter.

    1: https://github.com/indygreg/PyOxidizer/

    From that readme, it seems PyOxy has a few related uses:

    - It can produce a single file executable representing a Python app including the interpreter

    - It can ship self-contained Python interpreters and related to be embedded or used as a library in a larger application

    - PyOxidizer can serve as a bridge between Rust and Python - "PyOxidizer can be used to easily add a Python interpreter to any Rust project. But the opposite is also true: PyOxidizer can also be used to add Rust to Python."

  • These distributions are excellent. Astral took over maintenance of them a while ago so technically they sit under OpenAI now.

    https://github.com/astral-sh/python-build-standalone

    If you're looking to bundle Python into another application - a macOS desktop app for example - these are exactly what you need.

  • These are the Python distributions we use in uv (https://github.com/astral-sh/uv), i.e., when you install Python with uv, you're installing from python-build-standalone. (Same goes for many of the other tools that can install Python for you, like pipx, Hatch, Poetry, Bazel, etc.)

    Most of our engineering time on the project over the past ~year and a half has been split into three buckets:

    1. Keeping up with upstream CPython. (We're also hoping to upstream as much of this work as we can into CPython itself.)

    2. Fixing any / all of the known "quirks" vis-a-vis CPython.

    3. Making these distributions as fast as (or faster than) any other CPython distribution.

    If you're interested, I wrote a bit about the why / how here when we took over maintenance of the project: https://x.com/charliermarsh/status/1864050698574311561