Skip to content
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

move interface from build-time to runtime. #73

Open
T-256 opened this issue Jan 4, 2024 · 2 comments
Open

move interface from build-time to runtime. #73

T-256 opened this issue Jan 4, 2024 · 2 comments

Comments

@T-256
Copy link
Contributor

T-256 commented Jan 4, 2024

> cargo install pyapp --quiet --root out
> mv out/bin/pyapp cowsay && chmod +x cowsay
> cowsay -t hi

App: cowsay
Version: LATEST
Python: CPython 11 (x86_64 for Windows)

The app you are trying to use is not installed.
Do you want [I]nstall it with above config, [M]odify setup config or [A]bort installation?
@ofek
Copy link
Owner

ofek commented Jan 4, 2024

Can you please describe a bit more what you want?

@T-256
Copy link
Contributor Author

T-256 commented Jan 4, 2024

Purpose is to compile once and use many apps.
That would be based on runtime exe name. Checks if exe-name not installed on user's appdata dir, provides installation instruction and after user accepted, new app will be created on user's data dir.

if exe name equals to pyapp then you can manage installed apps and installed pythons. for example:

> # manually install new app:
> pyapp install --name cowsay --version latest
cowsay version 6.1 installed on CPython 3.11.4 runtime.
> 
> # when multiple versions of an app available, specifiy target via "pyapp run"
> pyapp run --version 6.0 cowsay -t Hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants