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

Change the dev dependency 'matplotlib' to 'matplotlib-base' to reduce environment size #3158

Merged
merged 2 commits into from
Apr 3, 2024

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
6 checks passed
@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.

None yet

2 participants