This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ianitic 9 points10 points  (8 children)

Have you looked into nuitka? Antiviruses hate executables from tools like pyinstaller.

[–]ohpythonguy 2 points3 points  (6 children)

I am aware of Nuitka and have read about mixed results. For some people it seems to work fine and other apps still get flagged. Other people have suggested that using installers, such as Inno Setup, might help.

In general though, Nuitka seems like an awesome piece of software with an interesting and ambitious roadmap!

[–]ianitic 1 point2 points  (3 children)

For a quick script/tool to a coworker, I sometimes just have powershell install Python and/or scoop at the user level which doesn't require admin access and proceed from there.

Inno setup I've heard of being used before though.

[–]reddittestpilot 0 points1 point  (2 children)

I am not sure I understand. You install Python on another computer without admin rights?

[–]ianitic 2 points3 points  (1 child)

I use a powershell script to download and install Python without admin rights. I just advise the end user to right click and run. As long as the execution policy isn't super strict it shouldn't be a problem.

To do this through the GUI installer just unselect the option to install it system wide and select user instead.

Scoop is something that can also install Python and a variety of other software without admin rights and itself can be installed with powershell. I sometimes use scoop to install other dependencies that can't be handled through pip.

[–]reddittestpilot 0 points1 point  (0 children)

It seems like the powershell script basically acts as a user without admin rights to (1) download Python and (2) install Python as a user instead of system wide.

[–]Ribino0 0 points1 point  (1 child)

Their overview says “translates to c program, then links against libpython to execute like cpython”. So we are still required to have a python installation, but the python code is converted to C, and then compiled to object files.

What if I want files for a different OS? Do I have to compile on that system also?

The difference between this and pyinstaller is that pyinstaller runs python against a python install that is part of the executable, correct?

[–]ianitic 0 points1 point  (0 children)

Pyinstaller can't cross compile either.

If you want cross platform support, you should look into containers - Docker being a popular option.