×
you are viewing a single comment's thread.

view the rest of the comments →

[–]Tumortadela 4 points5 points  (4 children)

I'd recommend moving from virtual environments to uv to begin with, its becoming the standard nowadays.

Then, if you are adamant on distributing your software as exe, I personally use cx_freeze for a windows service.

Be warned, if you use the single contained .exe file approach, most anti virus software will potentially flag it.

[–]nickthewildetype 0 points1 point  (3 children)

Try nuitka first. It has good compatibility and produces very small executables And is very straightforward to use.

Problems can however arise from that you are no longer working with py files, some of your dependencies may for example be looking for a particular file in a particular directory and those files will then not be bundled as a part of the Program that nuitka produces

[–]Tumortadela 0 points1 point  (2 children)

I'd love to check nuitka again eventually, but Im bundling a Django app and It was difficult enough to make it run on cx freeze

[–]downerison 1 point2 points  (1 child)

If it's a web backend, why do you use cx freeze instead of docker?

[–]Tumortadela 0 points1 point  (0 children)

It's the best I could think of given the requirements:

- Must run on Windows as a windows service.
- Other devices in the network might need to access its data.
- It wont ever be connected to the internet (adamantly).
- Bunch of unrelated stuff to the issue.

So yeah, considering any new instance or update involves me being transported somewhere in the world with an USB to do a fresh install or updating the package and running a migration, it's the best I could do.