Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Shorten setupext and remove uninformative build log entries. #13262

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

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 22, 2019

  • The version check in setupext is unnecessary as we're already checking
    at the very top of setup.py (note that no one even bothered updating
    the version value in setupext...).
  • The InstallRequires can be merged e.g. into Matplotlib, which removes
    two completely uninformative lines from the build log
REQUIRED DEPENDENCIES AND EXTENSIONS
  install_requires: yes [handled by setuptools]
  • Changing the message widths and indents (which was only possible after
    removing the "install_requires" entry in the log) allows fitting the
    python version, in the common linux case, on a single line:
      python: yes [3.7.2 (default, Jan 10 2019, 23:51:51)  [GCC 8.2.1 20181127]]

instead of

            python: yes [3.7.2 (default, Jan 10 2019, 23:51:51)  [GCC 8.2.1
                        20181127]]

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 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

- The version check in setupext is unnecessary as we're already checking
  at the very top of setup.py (note that no one even bothered updating
  the version value in setupext...).
- The InstallRequires can be merged e.g. into Matplotlib, which removes
  two completely uninformative lines from the build log
```
REQUIRED DEPENDENCIES AND EXTENSIONS
  install_requires: yes [handled by setuptools]
```
- Changing the message widths and indents (which was only possible after
  removing the "install_requires" entry in the log) allows fitting the
  python version, in the common linux case, on a single line:
```
      python: yes [3.7.2 (default, Jan 10 2019, 23:51:51)  [GCC 8.2.1 20181127]]
```
instead of
```
            python: yes [3.7.2 (default, Jan 10 2019, 23:51:51)  [GCC 8.2.1
                        20181127]]
```
@anntzer anntzer added the Build label Jan 22, 2019
@anntzer anntzer changed the title Shorten setupext. Shorten setupext and remove uninformative build log entries. Jan 22, 2019
@@ -167,18 +167,18 @@ def is_min_version(found, minversion):
# Define the display functions only if display_status is True.
if options['display_status']:
def print_line(char='='):
print(char * 79)
print(char * 80)
Copy link
Member

Choose a reason for hiding this comment

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

Why did you change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to match the message width below... for which the change is explained in the commit/PR message.

@jklymak
Copy link
Member

jklymak commented Feb 7, 2019

Merging - If there really is concern about the allowed line width, we can revert that. My suspicion is that if it make @anntzer happy it won't bother anyone else...

@jklymak jklymak merged commit c072f88 into matplotlib:master Feb 7, 2019
@anntzer anntzer deleted the less-setupext branch February 7, 2019 17:24
@QuLogic QuLogic added this to the v3.1.0 milestone Feb 8, 2019
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.