-
-
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: Update setup.py
to accommodate the Conda-forge package split (Installation)
#23141
Conversation
d195c4b
to
690bc4b
Compare
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.
A couple of small suggestions, the rest looks good to me @mrclary.
c53167a
to
538b26d
Compare
5953a10
to
f3e798f
Compare
'qtconsole>=5.6.1,<5.7.0', | ||
], | ||
'conda-forge': [ | ||
'qtconsole>=5.6.1,<5.7.0', |
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.
Shouldn't this be qtconsole-base
instead of qtconsole
, as you have it before?
Otherwise, qtconsole will bring pyqt5
, won't it?
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.
So this is a bit nuanced.
When qtconsole-base
is installed by conda, conda list
shows qtconsole-base 5.6.1
, but pip list
shows qtconsole 5.6.1
. If setup.py
specifies qtconsole-base
, pip --check
fails with spyder 6.1.0a1.dev0 requires qtconsole-base, which is not installed.
. See this pipline failure.
Specifying qtconsole
in setup.py
will only introduce pyqt5
if Spyder is built with SPYDER_QT_BINDING=conda-forge
and the resulting package is installed using pip. I don't know how to install qtconsole-base
and also have pip see it as such.
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.
Understood, thanks for the clarification @mrclary! Let's leave things like this then.
…. Clarified and streamlined.
Co-authored-by: Carlos Cordoba <[email protected]>
The conda build test environment uses the requirements in meta.yaml and pip check uses the METADATA in the egg-info populated by this setup.py. However, qtconsole-base shows up in the environment as qtconsole, so pip check doesn't think qtconsole-base is installed.
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 @mrclary!
setup.py
to accommodate the Conda-forge package split
setup.py
to accommodate the Conda-forge package splitsetup.py
to accommodate the Conda-forge package split (Installation)
@meeseeksdev please backport to 6.x |
…e Conda-forge package split (Installation)
…e the Conda-forge package split (Installation)) (#23270)
Description of Changes
conda-forge/spyder-feedstock#203 splits Spyder's conda package into two packages. This PR updates
setup.py
to accommodate this change when building Spyder conda packages for PRs.This should only affect the installer workflow, so can be merged any time.