FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Include template matplotlibrc in package_data. by anntzer · Pull Request #11273 · matplotlib/matplotlib · GitHub

Repository navigation

Include template matplotlibrc in package_data. - #11273

Merged
WeatherGod merged 1 commit into
matplotlib:masterfrom
anntzer:matplotlibrctemplate-in-package-data
May 20, 2018
Merged

WeatherGod merged 1 commit into
matplotlib:masterfrom
anntzer:matplotlibrctemplate-in-package-data

Conversation

anntzer commented May 18, 2018

Copy link
Copy Markdown
Contributor

This is necessary to make the tests pass for a non-editable install.

Should close #10717 (attn @matthew-brett).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

This is necessary to make the tests pass for a non-editable install.
anntzer added the Build label May 18, 2018
anntzer added this to the v3.0 milestone May 18, 2018

Copy link
Copy Markdown
Member

Is this file going to be auto-generated before it gets included? I am not exactly sure how this process works in setuptools.

anntzer commented May 19, 2018

Copy link
Copy Markdown
Contributor Author

@WeatherGod It's always present in the source tree.

WeatherGod commented May 19, 2018 via email

Copy link
Copy Markdown
Member

anntzer commented May 19, 2018

Copy link
Copy Markdown
Contributor Author

Oh sorry, my bad.
But yes, it is generated by setup.py

        with open('lib/matplotlib/mpl-data/matplotlibrc', 'w') as fd:
            fd.write(
                template.safe_substitute(TEMPLATE_BACKEND=default_backend))

and that happens even before setuptools has a chance to look at sys.argv, IOW early enough in the process for things to work.

WeatherGod merged commit d441ac4 into matplotlib:master May 20, 2018
anntzer deleted the matplotlibrctemplate-in-package-data branch May 20, 2018 00:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Failure to find matplotlibrc when testing installed distribution

3 participants


Back | FazBrowse Home | New Git URL