question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support one file like PyInstaller.

See original GitHub issue

for supporting one file you just need to do these:

  1. compile the python codes in c codes like now.
  2. when use --standalone, we pack some .dll and .pyd files
  3. convert packed files into string and add string to above the main app.
  4. 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. convert import 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:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
kayhayencommented, Jan 1, 2020

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

0reactions
byehackcommented, Dec 31, 2019

@kayhayen - your decision?

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found