Skip to content

zsol/dotslash-python

Repository files navigation

./python

./python is a 2.5KB single-file CPython distribution you can check into a repository:

dotslash-python-demo.mp4

Setup

  1. install dotslash: brew install dotslash or cargo install dotslash
  2. download one of the files from latest release: curl -L https://github.com/zsol/dotslash-python/releases/latest/download/cpython-3.13 -o python
  3. run it: chmod +x python && ./python

Why?

It's a really simple, cross-platform way to pin a project to a particular Python version.

How does it work?

The files in our releases are dotslash descriptors. When executed, dotslash (via a shebang on linux/mac or a companion exe on Windows) downloads and extracts the right version of Python that's appropriate for your machine's architecture, and runs the interpreter inside it.

The descriptors themselves point to the awesome standalone Python builds releases, and pick the most optimized, "install only" distribution for each of the supported platforms.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages