Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Inline setup_external_build into setupext.#11235

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

anntzer
Copy link
Contributor

Also:

  • use tarfile to extract the FreeType tarball on all platforms.
  • less batch script, more Python.
  • more pathlib, less shell=True.

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

vcvarsall = msvc.find_vcvarsall(10.0)
if vcvarsall is None:
raise RuntimeError("Microsoft VS 2010 required")
X64 = sys.maxsize > 2 ** 32
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@anntzeranntzerforce-pushed thesetupexternalcompile branch 3 times, most recently fromc9400a0 to8b0e03fCompareMay 12, 2018 09:52
Also:- use tarfile to extract the FreeType tarball on all platforms.- less batch script, more Python.- more pathlib, less shell=True.
@anntzeranntzerforce-pushed thesetupexternalcompile branch from8b0e03f to3f52e47CompareMay 12, 2018 14:34
Copy link
Member

@timhoffmtimhoffm left a comment

Choose a reason for hiding this comment

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

Sorry, I lost overview (and motivation to review) half way through the PR.

Can you please try to not mix larger structural/logical changes with many tiny cleanups? I know it's handy to change theses things as you go along. However, two separate PRs would be much easier to review.

try:
urllib.request.urlretrieve(tarball_url, tarball_path)
except IOError: # URLError (a subclass) on Py3.
print("Failed to download {0}".format(tarball_url))
except IOError:
Copy link
Member

Choose a reason for hiding this comment

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

Changed in version 3.3: URLError has been made a subclass of OSError instead of IOError.
https://docs.python.org/3/library/urllib.error.html

We should check for the more specificurllib.error.URLError anyway.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

IOError is an alias of OSError since 3.3 (see just afterhttps://docs.python.org/3/library/exceptions.html#ZeroDivisionError).

@anntzer
Copy link
ContributorAuthor

Sounds fair, will split the PR.

@jklymak
Copy link
Member

So this can be closed, right?

@anntzer
Copy link
ContributorAuthor

Yes.

@anntzeranntzer closed thisJul 5, 2018
@anntzeranntzer deleted the setupexternalcompile branchJuly 5, 2018 06:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@anntzer@jklymak@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp