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

PR: Fix issue where pythonw could not be used in macOS application #17516

Merged
merged 3 commits into from
Mar 22, 2022

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Mar 21, 2022

Description of Changes

Replaced is_anaconda() with is_conda_env(pyexec=real_filename) in is_python_interpreter.
The former was checking Spyder's runtime environment executable instead of the executable to be tested.

Issue(s) Resolved

Fixes #14575

Affirmation

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: @mrclary

… only checking whether the existing environment was anaconda, not the executable in question.

Replace filename with real_filename in some places.
Clean up is_python_interpreter.
@pep8speaks
Copy link

pep8speaks commented Mar 21, 2022

Hello @mrclary! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 986:9: E129 visually indented line with same indent as next logical line

Comment last updated at 2022-03-22 15:30:49 UTC

@mrclary mrclary self-assigned this Mar 21, 2022
@mrclary mrclary added this to the v5.3.0 milestone Mar 21, 2022
@mrclary mrclary requested a review from ccordoba12 March 21, 2022 07:15
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your help with this @mrclary! I left a tiny suggestion for you, otherwise looks good to me.

spyder/utils/programs.py Outdated Show resolved Hide resolved
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrclary!

@ccordoba12 ccordoba12 merged commit 2d2fb2f into spyder-ide:5.x Mar 22, 2022
ccordoba12 added a commit that referenced this pull request Mar 22, 2022
@mrclary mrclary deleted the pythonw branch March 22, 2022 18:03
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.

3 participants