-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle --windowed on/off #14
Comments
Interesting question. fbs currently "configures" PyInstaller by passing arguments to it on the command line. Another approach however are Spec Files. These are basically separate files for configuring PyInstaller. What's really interesting? The page linked to above mentions "creating multiprogram bundles with merged common modules". That sounds exactly like what you want to do in fbs-tutorial/#9! It makes me think that the best approach would be to switch fbs to using Spec Files, and including a default Spec File as part of fbs-tutorial. Then, you could edit this file to change the What do you think, in particular of the documentation of Spec Files? I personally haven't used them. Would you be comfortable editing them? Cheers :-) |
Ooh. Interesting! I need to read up on this, but my initial response is yes - this seems to allow for a lot of useful customization. I see the multibundle stuff is currently broken though: pyinstaller/pyinstaller#1527 |
I see :( pity |
Hi again Michael! I used to monkey patch the So, I'm now back, forced to maintain a patch of the Just to provide a proposal, how do you feel about the following change in if not debug and not SETTINGS['force_console']:
# The --windowed flag below prevents us from seeing any console output.
# We therefore only add it when we're not debugging.
pyinstaller_args.append('--windowed') I could then add |
Hm. Regarding PyInstaller spec files, as you mentioned further up above here, would that be better to look into, and possibly load using the settings? I'm open to any solution which basically offers me greater flexibility with PyInstaller but not having to maintain too much patches to your original code. |
Hi Fredrik, you may find this an unrelated question, but please bear with me for a second: Are you still using the |
No, I'm not. I am just removing the I have previously found myself overriding |
Thanks.
In which way is the new structure undesired?
What would you like to add there? |
Could be a corner case because I am also offering my app as a wheel for headless installs.
Ideally, I would've wanted to put all vendored packages in a separate directory and pass this extra path to PyInstaller via
I think that it mostly comes down to extra paths. Meaning, something similar to adding to |
Okay. Thank you for clarifying. I just released fbs 0.4.4 that adds a I also removed the |
Excellent, thank you so much for this! I noticed that in your changelog, you mentioned that this doesn't do anything on Linux. I wonder if this really does anything on macOS either, as I was under the impression you can only suppress the console on Windows ...or am I wrong here? (I don't have a mac to test this on right now) |
I'm happy if I can help while also keeping fbs's API consistent! To be honest, I don't know about Mac. I added it there because the PyInstaller docs say that the |
Feature request: it would be useful to actually allow some applications to be frozen with
--windowed
, but also allow other applications to show this window. Could you add an option somewhere for this?EDIT: I may add that when you produce binaries using
setup.py
(when bundling a .whl), you get the option to make such binaries run asconsole_scripts
(windowed) orgui_scripts
(not windowed). In my past experience, I've actually had some issues with some Python scripts using PySide and being renamed to ".pyw" (Windows feature only), which will cause them to run in a non-windowed mode. I'm not sure how related this .pyw approach is to thesetup.py
or PyInstaller approach though.The text was updated successfully, but these errors were encountered: