Giter VIP home page Giter VIP logo

Comments (5)

johannesloibl avatar johannesloibl commented on May 27, 2024 1

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.

trappitsch avatar trappitsch commented on May 27, 2024

@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.

johannesloibl avatar johannesloibl commented on May 27, 2024

@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

image

from pyapp.

ofek avatar ofek commented on May 27, 2024

I can't reproduce and it appears impossible for that code path to be hit without the variable being enabled.

from pyapp.

johannesloibl avatar johannesloibl commented on May 27, 2024

I'll check again later. I know the code path and I'm equally puzzled :D

from pyapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.