-
-
Notifications
You must be signed in to change notification settings - Fork 58
hatch PyApp build #98
-
@ofek I trued to use hatch with PyApp for building app, https://ofek.dev/pyapp/latest/how-to/
but "configuration" step hard understand. where it should be done?
it dont look like pyproject.toml or I dont know top key words
if I trued to use "cargo build --release", but it ask for cargo.toml and manifest, but in instruction nothing about this
if I trued with "hatch build --target app" then it will give .exe file with 3 Mb(probably 100 times less then expected) and 5 files inside which dont look like python
".data, .pdata .rdata .reloc .text"
additional question: py software running from IDE with command "streamlit run ./src/main.py --client.toolbarMode=minimal".
this request somethinh special from me if I use PyApp+hatch?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 6 replies
-
I think you're going for this example: https://ofek.dev/pyapp/latest/examples/#offline-installation
Before archiving the distribution you should install your required dependencies within.
Beta Was this translation helpful? Give feedback.
All reactions
-
Those are environment variables that you have to set. The way to do that differs depending on what shell you are using.
Beta Was this translation helpful? Give feedback.
All reactions
-
ok, started understand my mistake.
but can it be done by hatch and pyproject.toml ?
Or this should be done only manually each time for new project?
do you have codes for win? it little bit hard to decode them.
image
what should exist before I use PyApp? only whl, gz ?
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm sorry but I don't have time to help with support. Can you please be very specific with your questions?
I would ask on StackOverflow or one of the top AI chat bots from OpenAI or Anthropic.
Beta Was this translation helpful? Give feedback.
All reactions
-
specific: what should exist before using PyApp?
Beta Was this translation helpful? Give feedback.
All reactions
-
- Your project built as a wheel
- One of these https://github.com/indygreg/python-build-standalone/releases with your dependencies already installed and then compressed into an archive again
Beta Was this translation helpful? Give feedback.