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

Simplify FreeType Windows build.#11248

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

Merged
dstansby merged 1 commit intomatplotlib:masterfromanntzer:freetype-windows
Jul 4, 2018

Conversation

anntzer
Copy link
Contributor

attn@timhoffm: breaking#11235 into smaller pieces.

  • Make FREETYPE_BUILD_CMD a raw string to avoid doubling all
    backslashes.
  • Line-wrap two overly long lines in FREETYPE_BUILD_CMD.
  • Move therd /S /Q %FREETYPE%\objs to python (shutil.rmtree).
  • Move thecopy %FREETYPE\objs\... to python (shutil.copy2).
  • Get rid of the Py27 part (if errorlevel 1 ...).
  • Run the FREETYPE_BUILD_CMD script withsrc_path as cwd, which avoids
    the need to define the %FREETYPE% environment variable.

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

@anntzeranntzerforce-pushed thefreetype-windows branch 3 times, most recently from80a6a54 toc75a030CompareMay 15, 2018 06:56
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.

I suppose the Appveyor failure is unrelated to these changes, but please double-check.

setupext.py Outdated
.glob("freetype*.lib"))
shutil.copy2(
str(lib_path),
str(Path(src_path, "objs", ".libs", "libfreetype.lib"))
Copy link
Member

Choose a reason for hiding this comment

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

I would not use separate args if the dirs are explicit strings, i.e. just writePath(src_path, "objs/.libs/libfreetype.lib") but that's a matter of taste.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Actually I prefer that style too, not sure why I didn't use it here... fixed.

@anntzeranntzerforce-pushed thefreetype-windows branch 3 times, most recently from37cd16b to8f5a49eCompareMay 16, 2018 17:08
dstansby
dstansby previously requested changesMay 30, 2018
Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

- Make FREETYPE_BUILD_CMD a raw string to avoid doubling all  backslashes.- Line-wrap two overly long lines in FREETYPE_BUILD_CMD.- Move the `rd /S /Q %FREETYPE%\objs` to python (`shutil.rmtree`).- Move the `copy %FREETYPE\objs\...` to python (`shutil.copy2`).- Get rid of the Py27 part (`if errorlevel 1 ...`).- Run the FREETYPE_BUILD_CMD script with `src_path` as cwd, which avoids  the need to define the %FREETYPE% environment variable.
@anntzer
Copy link
ContributorAuthor

Sorry, fixed now.

@efiring
Copy link
Member

@dstansby Is this OK now? Can it be merged?

@dstansbydstansby added this to thev3.0 milestoneJul 4, 2018
@dstansbydstansby merged commit2afeec7 intomatplotlib:masterJul 4, 2018
@anntzeranntzer deleted the freetype-windows branchJuly 4, 2018 12:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

@dstansbydstansbydstansby approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@efiring@timhoffm@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp