hey every one, as you all know we can compile bgt scripts as debug version and release version. can we do it in python using pyinstaller?
thankyou.
Pages 1
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → compile (debug) and compile (release) in python using pyinstaller
hey every one, as you all know we can compile bgt scripts as debug version and release version. can we do it in python using pyinstaller?
thankyou.
Probably, but there's very little difference. Python doesn't have a concept of release mode. The only thing it changes that's noticeable is that assert statements are removed.
Most high-level languages don't have this concept because they don't need it. I'm surprised that BGT does to be honest.
Isn't Pyinstaller already for that? You can build an exicutable file with that while packing up the needed libraries.
Well if you wanted too you could compile two versions calling one debug and the other release, but it’s unnecessary because your compiling it for both uses either way.
if you want to optimize your python code and remove the unneeded information (release mode), call
python -OO -m pyinstaller yourscript.py
otherwise your bytecode information (assert statements and so on) will be kept.
AudioGames.net Forum → Developers room → compile (debug) and compile (release) in python using pyinstaller
Generated in 0.021 seconds (47% PHP - 53% DB) with 12 queries