-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Remove check_path to allow running in debugger #20091
PR: Remove check_path to allow running in debugger #20091
Conversation
cfe5fad
to
eede2d1
Compare
Hey @maurerle, I don't agree with this change. We remove PYTHONPATH in You also said:
The way you need to start Spyder when developing it is by running |
So I sometimes debug Spyder (like with the actual debugger) using VSCode, that way:
Then select the newly created python interpreter from And in that situation I am getting here: So you might say that that way is not supported and i should rather run something like |
Ok, I see. Then please check what happens if you remove the call to |
eede2d1
to
12a6bdf
Compare
Yes, that works too, great. The check was introduced in 1f73f2f - I did not find which case it was meant to handle, but it is already 12 years ago. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thanks @maurerle!
Until a few months ago we injected the git clone Spyder directory into |
Description of Changes
PYTHONPATH entries are removed on start, resulting in a the warning shown on
check_path
in requirements - program does not start.Removing pythonpath was added to disable shadowed base libraries, but I think thats exactly how the PYTHONPATH could and would behave.
Still it makes sense to remove them so that it does not create problems.
Yet the resulting warning
"Spyder must be installed properly (e.g. from source: 'python setup.py install'), or directory 'dir' must be in PYTHONPATH environment variable."
is not helpful and is removed through this PR
I would therefore not remove entries on PYTHONPATH from PATHAffirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: Florian Maurer