Skip to content

matplotlib and basemap require setuptools to run properly together#3835

Merged
adamjstewart merged 3 commits intodevelopfrom
bugfix/basemap-matplotlib
Apr 26, 2017
Merged

matplotlib and basemap require setuptools to run properly together#3835
adamjstewart merged 3 commits intodevelopfrom
bugfix/basemap-matplotlib

Conversation

@lee218llnl
Copy link
Copy Markdown
Contributor

@lee218llnl lee218llnl commented Apr 14, 2017

Fixes #3813.

matplotlib and basemap require setuptools at runtime in order to allow the mpl_toolkits package to be considered a namespace package and thus look in both matplotlib and basemap's mpl_toolkits directory. This also removes the need for the patch in #1964.

Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

Oh wow, this is way cleaner!

@adamjstewart
Copy link
Copy Markdown
Member

Can you add a short comment above the setuptools dependencies explaining why they are needed at runtime?

@citibeth
Copy link
Copy Markdown
Member

This addresses #3813

Copy link
Copy Markdown
Member

@citibeth citibeth left a comment

Choose a reason for hiding this comment

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

Great solution. Please add comments explaining the otherwise-unusual choice of having py-setuptools as a run dependency.

version('1.0.7', '48c0557ced9e2c6e440b28b3caff2de8')

depends_on('py-setuptools', type='build')
depends_on('py-setuptools', type=('build', 'run'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a comment for this line that (1) gives a brief explanation and (2) links to #3813


# ------ Required dependencies
depends_on('py-setuptools', type='build')
depends_on('py-setuptools', type=('build', 'run'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same comment here as on py-basemap

@lee218llnl lee218llnl force-pushed the bugfix/basemap-matplotlib branch from 03cef6e to 46344ff Compare April 14, 2017 15:50
@adamjstewart
Copy link
Copy Markdown
Member

@citibeth Can you approve?

@lee218llnl
Copy link
Copy Markdown
Contributor Author

@citibeth Do the comments in the package that address the "run" dependence look OK to you?

@adamjstewart
Copy link
Copy Markdown
Member

Looks like there's a conflict. Can you rebase/merge?

@lee218llnl
Copy link
Copy Markdown
Contributor Author

@adamjstewart not sure why it considered that a conflict as the "change" in the develop branch was blank.


version('1.0.7', '48c0557ced9e2c6e440b28b3caff2de8')


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This extra line will cause the flake8 test to fail.

@lee218llnl
Copy link
Copy Markdown
Contributor Author

@adamjstewart looks like we passed through travis. I think this is ready to be merged unless there's anything else you would like me to address.

@adamjstewart adamjstewart dismissed citibeth’s stale review April 26, 2017 18:53

No response, looks good now.

@adamjstewart adamjstewart merged commit 3789359 into develop Apr 26, 2017
@adamjstewart adamjstewart deleted the bugfix/basemap-matplotlib branch April 26, 2017 18:53
diaena pushed a commit to diaena/spack that referenced this pull request May 26, 2017
…pack#3835)

* matplotlib and basemap require setuptools to run properly together

* flake 8 fix
xavierandrade pushed a commit to xavierandrade/spack that referenced this pull request Jun 16, 2017
…pack#3835)

* matplotlib and basemap require setuptools to run properly together

* flake 8 fix
EmreAtes pushed a commit to EmreAtes/spack that referenced this pull request Jul 10, 2017
…pack#3835)

* matplotlib and basemap require setuptools to run properly together

* flake 8 fix
amklinv pushed a commit that referenced this pull request Jul 17, 2017
…3835)

* matplotlib and basemap require setuptools to run properly together

* flake 8 fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants