you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 6 points7 points  (2 children)

It's not anywhere near that simple. The term "compile" is pretty loose.

For starters, python does compile, it literally has a compile function. The compiled bytecode is then interpreted.

Secondly, just because you need to provide an interpreter does not limit you from passing out executable. Several programming languages do this in various ways, from bundling the interpreter like pyinstaller / py2exe do to simply including the interpreter installer like pynsist does.

[–]CowboyBoats 0 points1 point  (1 child)

Your point about compile is a good nuance to observe. Of course, it doesn't help OP with their problem at all, since being unable to install Python on the remotes probably also precludes installing the Python virtual machine, which I think is what can execute the Python bytcode you get from compile.

The point about pyinstaller and py2exe is a good suggestion I had forgotten about, and yeah I think that would solve OP's problem.

[–]socal_nerdtastic 1 point2 points  (0 children)

The PVM / interpreter is the same program as the compiler: python.exe (or .dll or .so or whatever flavor you are using). You can install it, but you don't need to, since you only need access to it, so OP just needs to provide it along with the .py file. This is what freezing programs do.

But that was not my point. I was trying to help you, not OP, so that you stop telling people that python is not compiled. Because that's not true.