Support one file like PyInstaller.
See original GitHub issuefor supporting one file you just need to do these:
- compile the python codes in c codes like now.
- when use
--standalone
, we pack some.dll
and.pyd
files - convert packed files into string and add string to above the main app.
- add a script in c language to above of main app. this script do these:
a. when i run the app.exe at first it make random folder in temp with _MEIXXXX prefix like _MEID5D5
b. extract all packed files in the _MEIXXXX folder.
c. convert
import sys;sys._MEIPASS = <_MEIXXXX address>
to c code and put it in first of main app. d. convertimport sys;sys.path.insert(0,sys._MEIPASS
to c code and put it in first of main app. e. continue of program…
this is not a sfx! this just make all packages and dependents ready for continue of main app without any problem.
i don’t understand c language, if i know it i was send you a PR to support one-file method. i just send you a suggestion, i hope this works.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Using Spec Files - PyInstaller
PyInstaller analyzes myscript.py and: Writes myscript.spec in the same folder as the script. Creates a folder build in the same folder as the...
Read more >PyInstaller 2.0 bundle file as --onefile - python - Stack Overflow
I'm trying to bundle my py script as an .exe using PyInstaller 2.0. I am able to bundle the script, but in my...
Read more >Easy Steps to Create an Executable in Python Using PyInstaller
Guide to create a Python executable file using PyInstaller. ... Installing PyInstaller is easy and is very similar to installing any python ...
Read more >Is there no alternative to pyinstaller? : r/Python - Reddit
Use stock python and use a virtualenv. Packages like pandas support a lot of other packages (pytables for HDF5 support, matplotlib and thus...
Read more >Creating a one-file Windows service in Python with pywin32 ...
Stand-alone Python executable with PyInstaller · pyinstaller.exe myservice.py · pyinstaller.exe --hidden-import win32timezone myservice.py.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Whenever people say that something is “just” this, and easy, I get warry. These solutions often cause the most headaches in the long run.
We already have the issue on the radar, and this issue seems to contribute nothing of value. Please do not create duplicate issues, the first one was a mistake, the second one annoys me and wasted my time, which is not helping.
I can understand your enthusiasm, but if as a result of the actions from it, you run a risk and damper the one of those who actually do the work, the decision becomes easy. You stop. That said, this is mostly a research heavy topic. I thought I had listed somewhere how py2exe does it. If pyinstaller really works the way you say, that’s sad, and makes it uninteresting.
Yours, Kay
please read https://github.com/Nuitka/Nuitka/issues/230#issuecomment-569988529 well. if u want to continue of discussion in https://github.com/Nuitka/Nuitka/issues/230 , you can close this issue