-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Global shims in projects not managed by rye #1121
Comments
For completeness, simply running
What was the reasoning behind this default behaviour? |
I am also confused by the inconsistent behavior of rye shims. A toolchain seems to be working fine with which python3
# /Users/watal/.rye/shims/python3
python3 -c "import sys; print(sys.prefix)"
# /Users/watal/.rye/py/[email protected]
touch pyproject.toml
python3 -c "import sys; print(sys.prefix)"
# /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9 |
I'm gonna add to this. The global behavior isn't very good. I have to do lots of work arounds to make it work. |
It seems @bayashi-cl has it right with #1122: for python projects not managed by rye (so no |
I agree that the current behavior is not ideal but I think rather than patching around on the behavior it would be better to take a step back and rethink what the actual intended behavior should be for all cases. |
Steps to Reproduce
Start Global Shims within the sampleproject.
rye config --set-bool behavior.global-python=true git clone https://github.com/pypa/sampleproject.git cd sampleproject python +3.11
Expected Result
The Python shell will start.
Actual Result
The command will fail with error.
Version Info
Stacktrace
No response
The text was updated successfully, but these errors were encountered: