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

fix: use uv path for managed python installs #36

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

psychedelicious
Copy link
Collaborator

I had mistakenly believed that process.resourcesPath was a persistent directory and downloaded our portable python to this directory. This is actually an ephemeral temp directory.

As a result, the python installed when installing Invoke via launcher was deleted when the launcher closed.

Due to a fluke of dev environment setup, this problem wasn't caught.

This commit walks back the attempt to store our own portable python separately from uv's default install locations. It should resolve issues where the launcher fails to find or remember the user's installation.

I had mistakenly believed that `process.resourcesPath` was a persistent directory and downloaded our portable python to this directory. This is actually an ephemeral temp directory.

As a result, the python installed when installing Invoke via launcher was deleted when the launcher closed.

Due to a fluke of dev environment setup, this problem wasn't caught.

This commit walks back the attempt to store our own portable python separately from uv's default install locations. It should resolve issues where the launcher fails to find or remember the user's installation.
@psychedelicious psychedelicious merged commit 40958ae into main Jan 8, 2025
5 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/python-install-dir branch January 8, 2025 03:53
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

Successfully merging this pull request may close these issues.

1 participant