Michael Gummelt
Michael Gummelt

Reputation: 723

Python equivalent of uber-jar

I'm looking for the equivalent of an uber-jar in the python world.

You can assume that the package is pure python (no native code). Is there anything that satisfies these requirements?

I know of the following options, each with deficiencies:

Upvotes: 12

Views: 1784

Answers (1)

DejanLekic
DejanLekic

Reputation: 19797

One Python alternative to Java's "uber-jar" (made with, say, shade plugin) could be to simply make a tarball of the whole virtual environment, and use it to in your deployment process.

Problem with this approach (as with JAR as well!) is when one of the packages need native libraries. But that is a different story I would say...

Another (modern) alternative is to simply create a Docker image.

Upvotes: 3

Related Questions