Member-only story

(Real) Self-contained Python Environments

Without reinventing the wheel :)

Yerachmiel Feltzman
Israeli Tech Radar
11 min readMay 28, 2023

--

I recently faced an interesting use case: develop a Python project with the latest Python and modern libraries running on a machine with no Python runtime.

(To be fair, the machines contained Python, but old versions were irrelevant to the project, so I’m generalizing this blog post to generic use cases in favor of our readers.)

The first reaction to the word “self-contained” in most use cases is often: “Let’s containerize the application”. However, containerization presupposes that the runtime machine can run containers, ie, has a container runtime installed on it. Another “Pythonic” solution for self-contained applications would be to use conda. Again, it assumes the target machine has conda installed on it.

The leading constraint is that we must be able to run the project without installing “prerequisite” software on the target machine, other than uploading the project itself.

Photo by Shubham Dhage on Unsplash

So, let’s define the two main objectives of this blog post:

  1. Run a self-contained Python application only by uploading it to the target machines.
  2. Strive to achieve goal 1 with the

--

--

Israeli Tech Radar
Israeli Tech Radar

Published in Israeli Tech Radar

Unleashing tech insights by Tikal’s Experts. Explore the forefront of technology with Tikal, a leading hands-on tech consultancy. Get invaluable insights based on The Israeli Tech Radar, covering advancements, emerging technologies, and industry best practices.

Yerachmiel Feltzman
Yerachmiel Feltzman

Written by Yerachmiel Feltzman

Senior Big Data Engineer @ Tikal - Home of Tech Experts

Responses (1)