0

I have a python env and code that runs on that env. I have code to setup this env using wget and such, but that's not OS independent really.

I wish to bundle this env and code into one (bundle?) and distribute, so the user doesn't has to set up the env before running the code.

Basically give the end user something (executable, tar, zip, .py), and after running/extracting that user should be able to run my main python script.

I looked into wheels, but I'm not sure if that solves the purpose.

Hec
  • 824
  • 1
  • 5
  • 24

2 Answers2

1

If the code is run on a server you should consider using docker and docker-compose.

This technology allows you to define the entire setup in config-files, and the only thing you need to do when you deploy your code on a new server is to run a single command (docker-compose up)

Vingtoft
  • 13,368
  • 23
  • 86
  • 135
0

Decided to use Pyinstaller. Seems straightforward and under active development.

Hec
  • 824
  • 1
  • 5
  • 24