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

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 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
Jul 4, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 15, 2018

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 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.

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

@anntzer anntzer force-pushed the freetype-windows branch 3 times, most recently from 80a6a54 to c75a030 Compare May 15, 2018 06:56
Copy link
Member

@timhoffm timhoffm 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 write Path(src_path, "objs/.libs/libfreetype.lib") but that's a matter of taste.

Copy link
Contributor Author

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.

@anntzer anntzer force-pushed the freetype-windows branch 3 times, most recently from 37cd16b to 8f5a49e Compare May 16, 2018 17:08
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

@anntzer anntzer force-pushed the freetype-windows branch from 8f5a49e to 3d253cd Compare May 30, 2018 19:26
- 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 anntzer force-pushed the freetype-windows branch from 3d253cd to ff2d796 Compare May 30, 2018 20:33
@anntzer
Copy link
Contributor Author

anntzer commented May 30, 2018

Sorry, fixed now.

@dstansby dstansby dismissed their stale review May 31, 2018 09:06

Fixed

@efiring
Copy link
Member

efiring commented Jul 4, 2018

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

@dstansby dstansby added this to the v3.0 milestone Jul 4, 2018
@dstansby dstansby merged commit 2afeec7 into matplotlib:master Jul 4, 2018
@anntzer anntzer deleted the freetype-windows branch July 4, 2018 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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