# Creating a standalone CPython distribution

**URL:** <https://discuss.python.org/t/creating-a-standalone-cpython-distribution/19402>\
**Category:** Packaging\
**Created:** [September 22, 2022, 10:28pm UTC](https://discuss.python.org/t/creating-a-standalone-cpython-distribution/19402 "2022-09-22T22:28:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![uranusjr](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/uranusjr/32/103_2.png) [@uranusjr](https://discuss.python.org/u/uranusjr)\
**Post date:** [September 22, 2022, 10:28pm UTC](https://discuss.python.org/t/creating-a-standalone-cpython-distribution/19402/1 "2022-09-22T22:28:29Z")

</div>

Some may have heard this from me before (and this is a bit off-topic here), but a lot of the packaging problems in Python are not actually packaging problems, but a cause of the combination of

1. Python packages need an interpreter,
2. A _CPython interpreter_ is relatively difficult to distribute (on non-Windows), and
3. Python packaging doesn’t cover the interpreter itself

And the distribution form, be it pipx or zipapp or something else, is always limited by the distribution of the interpreter itself.

There’s already some pretty well adapted approaches to distribute a full language toolchain instead of a single language implementation (Rust has rustup, for example), but CPython is comparably difficult to distribute because a CPython installation is not relocatable. I’m sure this is technically doable without changing CPython code (the Windows build of CPython has been relocatable for a long time, and IIRC Anaconda achieve relocatability on POSIX by patching rpath or something on installation), but it’d be much easier for (say) an equivalent of rustup for Python if this work can be done inside the interpreter’s build toolchain, or at least have a CPython document on exactly what to patch to enable this.

What would be a good way to facilitate collaboration on this? We probably need a few (CPython) core devs with build toolchain knowledge to be actively involved in this, and I know there are not too many of them to begin with, and the POSIX build tool in general needs a lot more love than it gets right now, even without this feature request…

---

_[View the full topic](https://discuss.python.org/t/creating-a-standalone-cpython-distribution/19402)._
