Re: How to create a non-standalone Python executable?

2019-05-01 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

the preference is yours If it generates small executables and you're fine with it so be it.

URL: https://forum.audiogames.net/post/430594/#p430594




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-05-01 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Maybe, but it's just easier to type 'nuitka script.py' and get a small executable, For me it was 300 KB and it did work.

URL: https://forum.audiogames.net/post/430590/#p430590




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-05-01 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Cythonizing executables is trivial if your execuable is in a single file:cython --embed -3 orcython --embed -3 --cplus Then compile that and link against the Python executable on your system. I don't know if this generates a hard dependency where the user has to have Python installed on their system or not though.

URL: https://forum.audiogames.net/post/430559/#p430559




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-05-01 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

nuitka is known to generate really large executables, probably even larger than pyinstaller ones.But who know, it might have improved.

URL: https://forum.audiogames.net/post/430556/#p430556




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-05-01 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

I found something which seems to look like it can not only make extensions but also executables, standalone or not which was what I wanted.If you want to look at it,www.nuitka.net

URL: https://forum.audiogames.net/post/430544/#p430544




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-29 Thread AudioGames . net Forum — Developers room : Sam_Tupy via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Yeah building extensions with cython is 1 thing, building a standalone executable with it is quite another entirely because there is no existing cython build tool to do that. You need to write your own compile script. It's probably pretty easy once you get it working, I've done it before in fact, but all I'm saying is it's quite a bit more complicated.

URL: https://forum.audiogames.net/post/430173/#p430173




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-29 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Hi and thanks.I already have Cython set up and able to generate extensions with it.I completely forgot about trying a batch file. That would probably work.

URL: https://forum.audiogames.net/post/430089/#p430089




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-28 Thread AudioGames . net Forum — Developers room : Sam_Tupy via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

If you want to easily use cmd to execute scripts, you could just make a very small batch file that executes the code if you don't want to call python scriptname.py arg1 arg2 arg3 etc. For me I can just call py scripts like executables, but maybe not everyone can. I've gone through so many python re installations over time I couldn't tell you if it's just me lol. Anyway, if your file is called something.py, you could probably just make a batch script like: @echo offpython something.py %*That will execute something.py with all args you pass it, and you should certainly be able to call batch scripts propperly. Cython is also an option, but a bit difficult to set up and probably way more advanced than you would want for your situation. Theoretically it wouldn't be that hard to write a small C application or hell even .net or anything else really that just saves your code as a string in the executable, loads python37.dll, and calls the eval function directly with your code

URL: https://forum.audiogames.net/post/429943/#p429943




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

That... doesn't make much sense, man. It makes a large exe -- so what? Mainstream games take far longer to load than Pyinstaller executables take. You could cythonize your code, but

URL: https://forum.audiogames.net/post/429535/#p429535




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

alright.

URL: https://forum.audiogames.net/post/429499/#p429499




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Pyinstaller makes a large exe that takes time to load, or it fills up the folder of the exe with 50  other files that make it a bother to find the 1 I'm looking for.

URL: https://forum.audiogames.net/post/429498/#p429498




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

but then what prevents you to use pyinstaller?Is it purely because you prefer to not use it, or are you unconfortable?

URL: https://forum.audiogames.net/post/429497/#p429497




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

I want a nice little EXE that contains my Python script and nothing else.I have problems calling Python scripts from the command line and passing them parameters so I want to be able to build small executables, not like pyinstaller, that work just like the scripts in the installed python directory.

URL: https://forum.audiogames.net/post/429496/#p429496




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : Lucas1853 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Why not just distribute your source code?

URL: https://forum.audiogames.net/post/429473/#p429473




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-26 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Thanks!pycompile sounds like what I'd want.

URL: https://forum.audiogames.net/post/429465/#p429465




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: How to create a non-standalone Python executable?

2019-04-25 Thread AudioGames . net Forum — Developers room : NicklasMCHD via Audiogames-reflector


  


Re: How to create a non-standalone Python executable?

Hi.What you might be looking for is a wheel (a .whl package(.Those can be downloaded and ran with pip (but python needs to be installed in order for them to work).You can find more information about how to create those here: https://packaging.python.org/tutorials/ … -projects/If it's a single file / script another (easyer) option could be pycompile, that just compiles your code from a human readable file into something resempling bytecode, you can find more info on that here: https://docs.python.org/3/library/py_compile.htmlHope that helps.NicklasMCHD

URL: https://forum.audiogames.net/post/429334/#p429334




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


How to create a non-standalone Python executable?

2019-04-25 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector


  


How to create a non-standalone Python executable?

So I have been wondering, how can I create a non-standalone executable that just contains 1 python script and can run it on a computer where Python is installed?When you run pip or pyinstaller or something, those files are in the scripts folder, and you can even unzip them to find main.py files that just look like they import other modules then exit.Is there a way for me to create such executables?I looked several times on Google and nothing.I like how convenient they are.I don't want to create onefile Pyinstaller executable files, because those can take a while to extract, and I don't quite want to use the one folder mode, unless all the files for all scripts created in such a way can be stored in one other folder, which would probably work since these would probably be just small scripts that just need the generic files.Thanks!

URL: https://forum.audiogames.net/post/429317/#p429317




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector