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

Fix install: find correct freetype libs by tonysyu · Pull Request #3976 · matplotlib/matplotlib · GitHub

Repository navigation

Fix install: find correct freetype libs - #3976

Closed
tonysyu wants to merge 1 commit into
matplotlib:masterfrom
tonysyu:fix/install-with-canopy-freetype
Closed

tonysyu wants to merge 1 commit into
matplotlib:masterfrom
tonysyu:fix/install-with-canopy-freetype

Conversation

tonysyu commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

Caveat: I really don't have a good grasp of how the build system works, so this PR should be looked over with some suspicion.

I have freetype installed through Canopy, and I didn't want to add yet-another install of it. Currently, the freetype search looks only in a few predefined directories. (In fact, the pre-install check looks in the barest of defaults, even though add_flags adds some better default search directories. Even when adding a call to add_flags, the directory lists don't seem to be used; only the result of the freetype-config call seems to matter. This is why I say I don't have a grasp on the build system.)

There's not anything Canopy-specific here, per se: This just uses freetype-config to find include paths (and Canopy installs into a virtual environment, so hard-coded default paths won't work).

In particular, freetype installs that target virtual environments aren't
located in standard directories, so freetype-config should be used.

pelson commented Jan 7, 2015

Copy link
Copy Markdown
Member

I'm not that familiar with the build system either (cc @mdboom). However, I wonder if adding sys.prefix (which I'm assuming is where freetype is installed) to https://github.com/tonysyu/matplotlib/blob/fix/install-with-canopy-freetype/setupext.py#L156 does anything?

pelson commented Jan 7, 2015

Copy link
Copy Markdown
Member

Actually - it looks like it wont. We don't seem to have the same logic for Png as we do for Freetype (e.g. https://github.com/tonysyu/matplotlib/blob/fix/install-with-canopy-freetype/setupext.py#L976 actually checks the include directories).

tacaswell added this to the v1.4.x milestone Jan 7, 2015
tacaswell changed the title Fix install: find correct freetype libs Fix install: find correct freetype libs [backport to 1.4.x] Jan 7, 2015
tacaswell modified the milestones: v1.4.3, v1.4.x Jan 15, 2015

Copy link
Copy Markdown
Member

This seems to revert, at least in part #3622

Punting this back to 1.4.x.

tacaswell added the Build label Feb 7, 2015
tacaswell modified the milestones: v1.5.x, v1.4.x, 1.5.0 Feb 7, 2015
tacaswell changed the title Fix install: find correct freetype libs [backport to 1.4.x] Fix install: find correct freetype libs Feb 7, 2015
tacaswell modified the milestones: proposed next point release, next point release Jun 22, 2015
tacaswell modified the milestones: next point release, proposed next point release Jul 16, 2015

QuLogic commented May 15, 2017

Copy link
Copy Markdown
Member

As @tacaswell says, this appears to revert #3622. Since that fixed broken behaviour and pkg-config appears to be required now, I don't think this needs to be merged.

QuLogic closed this May 15, 2017
QuLogic modified the milestones: unassigned, 2.1 (next point release) May 15, 2017
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL