conda-forge / matplotlib-feedstock

A conda-smithy repository for matplotlib.
BSD 3-Clause "New" or "Revised" License
22 stars 57 forks source link

Split into meta packages #2

Closed pelson closed 6 years ago

pelson commented 8 years ago

It would be great to split this recipe into several meta-packages. That way, matplotlib doesn't have to depend on tk / qt etc. in the same way that jupyter doesn't pull in all of the dependencies needed for the notebook.

giumas commented 6 years ago

Forcing the pyqt dependency seems to have this side effect when using the official PySide2 wheel (5.11.1): https://bugreports.qt.io/browse/PYSIDE-761

That is, the official PySide2 does not work in the environment.

Opened an issue: https://github.com/conda-forge/qt-feedstock/issues/70

mingwandroid commented 6 years ago

Please please stop spamming every issue you find that mentions qt.

You are trying to mix binaries from pip with ad binaries. Worse you see trying to mix qt 5.6 parts with it 5.11 parts from different distributions!

giumas commented 6 years ago

You are trying to mix binaries from pip with ad binaries. Worse you see trying to mix qt 5.6 parts with it 5.11 parts from different distributions!

My intent is to have this Matplotlib conda package installed with the official PySide wheel (Qt 5.11). I don't want the qt conda package (Qt 5.6), but currently, it is a mandatory dependency.

ChrisBarker-NOAA commented 6 years ago

On Mon, Jul 30, 2018 at 11:06 AM, giumas notifications@github.com wrote:

You are trying to mix binaries from pip with ad binaries. Worse you see trying to mix qt 5.6 parts with it 5.11 parts from different distributions!

My intent is to have this Matplotlib conda package installed with the official PySide wheel (Qt 5.11).

Supporting that is likely to be considered a non-goal. But if you really want to do that, you can install the MPL package with --no-deps and hand-install the deps you do need.

That being said, I'd like o be able to sue MPL with, e.g. Jupyter notebooks without draggingin QT as well.

Personally, I think the MPL package should not depend on any of the GUI toolkits (QT, WX, what else), and should use TK as the default back-end.

Anyone that wants to, say, embed MPL in a QT app is going to install QT anyway.

-CHB

--

Christopher Barker, Ph.D. Oceanographer

Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

giumas commented 6 years ago

But if you really want to do that, you can install the MPL package with --no-deps and hand-install the deps you do need.

I am actually already using MPL conda-package and PySide2 official wheel in the same app.

I didn't install MPL with --no-deps as you suggested, but normally. Then, I have removed PyQt, qt, and sip (+ a manual removal of the relic qt.conf). It seems to work, but @mingwandroid's and your comments make me more worried about the "stability" of such a solution.

mingwandroid commented 6 years ago

If you removed our qt in its entirety then you'll likely be fine here.