Comments (5)
Ok so i checked again and now i also cannot reproduce it. Maybe i f***ed up my environment variables when trying around and did not notice. Sorry for the confusion.
PYAPP_IS_GUI=1 --> pythonw.exe, PYAPP_IS_GUI=0 --> python.exe.
For the other topic i'll create a feature request in the Hatch repo, to support more PyApp options in Hatch itself 👍🏻
from pyapp.
@johannesloibl I assume you are on Windows, correct?
I am not sure on any of the hatch
configurations since I never used this, but I am very surprised you say that the executable (assuming you mean the PyApp
created binary) always executes with pythonw.exe
. This should only be the case if PYAPP_IS_GUI
was set to 1
when packaging and is in fact the case on my system. I could see how it could always uses python.exe
...
Anyway, I'll have a look at the hatch
way of packaging a binary, sounds really interesting.
from pyapp.
@trappitsch Yes i'm on Windows.
Right now i'm not even setting PYAPP_IS_GUI.
I'm only setting PYAPP_DISTRIBUTION_EMBED=false,PYAPP_FULL_ISOLATION=true and PYAPP_PIP_EXTRA_ARGS before building the executable using hatch build -t app
.
The resulting executable is executed using pythonw.exe
from pyapp.
I can't reproduce and it appears impossible for that code path to be hit without the variable being enabled.
from pyapp.
I'll check again later. I know the code path and I'm equally puzzled :D
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
- PyApp with GUI program - disable console on Windows HOT 4
- 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
- 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 2
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.