#Bootstrap python instead of python system install in invoke install.bat

1 messages · Page 1 of 1 (latest)

opal tree
#

Simply bootstrap a standalone Python. From the end-user's perspective no system python install, simply unzip and run. The python build standalone will be used as the interpreter instead of the system install for creating the virtual environment!
https://github.com/indygreg/python-build-standalone/releases

  1. In install.bat move the base install Python to a suitable location that will not be moved by the end-user.
  2. Simply edit install.bat Python calls to the base install path
  3. Run the install.bat

If this is suitable I'd be willing to submit a PR.

GitHub

Produce redistributable builds of Python. Contribute to indygreg/python-build-standalone development by creating an account on GitHub.

opal tree
#

I have this running and working on my machine! Here's an edit install.bat with the above standalone installed to the directory of base_python. Note: this does not implement moving the base python install to a stable directory but a proof of concept.

vestal condor
#

This looks like the way Blender dispatches Python within their application, no need to install it locally, just unzip the Blender application folder and run the executable.

fierce oriole
#

Is this the same thing used in comfyui portable version , they have a folder named something like python_embed ?

opal tree
#

Problem with embedded python is it's not pip compatible along with some other quarks that are undesirable. The standalone build a python side steps most of these issues.

With the python standalone build I wouldn't recommend the static distributions as they are brittle. That's not what I've done above with my example zip.