Skip to content

Conversation

@seisman
Copy link
Member

@seisman seisman commented Apr 3, 2024

Description of proposed changes

matplotlib-base is same as matplotlib except that it doesn't depend on pyqt. So matplotlib-base is much lighter.

xref: https://stackoverflow.com/a/61326297, https://conda-forge.org/docs/maintainer/knowledge_base/#matplotlib

After changing matplotlib to matplotlib-base, the directory size of the pygmt environment reduces from 3.3 GB to 2.5 GB for me (on Linux).

Need to note that matplotlib-base is available on conda-forge only, so pip install matplotlib-base doesn't work (see https://github.com/GenericMappingTools/pygmt/actions/runs/8532766425/job/23374423152?pr=3158).

@seisman seisman changed the title Change the dev dependency 'matplotlib' to 'matplotlib-base' which doesn't require pyqt Change the dev dependency 'matplotlib' to 'matplotlib-base' to reduce environment size Apr 3, 2024
@seisman seisman added maintenance Boring but important stuff for the core devs final review call This PR requires final review and approval from a second reviewer labels Apr 3, 2024
@seisman seisman added this to the 0.12.0 milestone Apr 3, 2024
@seisman seisman merged commit b490b0f into main Apr 3, 2024
@seisman seisman deleted the matplotlib-base branch April 3, 2024 07:31
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants