Comments (4)
I agree with your worries. These started to come up when I was testing the implementation as well. There's a longer explanation / write up in the PR, see #97. The short is:
- targeting
windows_subsystem = "windows"
forPyApp
is not a good idea, since setup, management, etc. require the console. - GUIs can be run in the
run_project
withpythonw.exe
. A console appears now briefly when starting the app but then disappears. I think that's a fair trade of. This also means that all the great things withPyApp
stay, like installation splash screen, self management from the console, etc.
from pyapp.
It's been a while since I used pyapp and I might be wrong on a few comments, but I have some questions/worries:
IIRC if we open two processed of pyapp and the venv installation wasn't finished, one or both will fail. I had to run app.exe self restore
command on a terminal to start fresh (or even manually delete the virtualenv folder)
Is there a mechanism to automatically run the self restore command on installation or imports failure, and could this be an issue when a user clicks the app, it takes a while to load/install and they spawn many processes of it?
~
For that, it's probably feature creep, but a quick pyinstaller-like splash screen would be nice to have-
-or even detecting same-name processes of the pyapp binary already running and giving preference to the older one*
*This might NOOP and require task managers strategy of sending a challenge signal to the process we might replace to detect if softlocked or healthy
from pyapp.
about subsystem = "windows"
I have a rust project about a caller wrapper in rust
it may can help you doing it
https://github.com/shenjackyuanjie/wrapper-rs
from pyapp.
Resolved by #97
from pyapp.
Related Issues (20)
- Cannot use `PYAPP_DISTRIBUTION_PATH` (at least with locally embedded projects) HOT 5
- Notebook execution mode HOT 3
- Incorrect exit code HOT 4
- How to add `optional-dependencies` HOT 3
- Python version support - docs and code are inconsistent
- CPython 3.7 unaccessible from `x86_64` linux
- Build failure on Windows (whl METADATA containing CRLF) HOT 1
- Offline installation with local archive file
- can this lib work with streamlit? HOT 2
- Can not just copy binary to docker and run. HOT 1
- After built with pyapp, pip install failed for hdbscan HOT 16
- Cache pyapp build on GHA
- Support for gui-scripts HOT 5
- Management command for deleting installation files HOT 9
- Missing glibc when building an app on ubuntu and running on centos HOT 1
- No network HOT 9
- feature: management command to open a shell HOT 1
- Tcl error using Tk HOT 3
- Newer PyApp releases are using a yanked version of zip, compilation fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyapp.