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

Automatically create shims after running pip install or others #1

Open
untitaker opened this issue Jul 21, 2022 · 3 comments
Open

Automatically create shims after running pip install or others #1

untitaker opened this issue Jul 21, 2022 · 3 comments

Comments

@untitaker
Copy link
Owner

quickenv knows which entries have been added to PATH, it should be able to figure out which binaries to add to ~/.quickenv/bin/. Possibly this behavior should be behind a flag like quickenv reload --shim

@untitaker
Copy link
Owner Author

Another idea here is to suggest creating shims after commands like pip install. However, that is hard to execute on, because it requires spawning each shimmed command as subprocess instead of just execing it, because you want to run code after the command returns. So, more overhead and annoyances when trying to attach a debugger to the shimmed command.

@untitaker
Copy link
Owner Author

Reopening this, i saw that volta actually didn't even exec its shims, so it might be okay to just spawn a command, wait for its return and check for new shims to create.

@untitaker untitaker reopened this Aug 12, 2022
@untitaker untitaker changed the title Automatically create shims during reload Automatically create shims after running pip install or others Aug 12, 2022
@untitaker
Copy link
Owner Author

quickenv master now also adds a warning. What we can additionally do is to consider whether a pip install (where pip is shimmed), should auto-create shims for the installed binaries.

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

1 participant