Skip to content

Fix for bug #3029. - #3067

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
razius:master
May 29, 2014
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
razius:master

Conversation

@razius

@razius razius commented May 16, 2014

Copy link
Copy Markdown
Contributor

The FreeType class does not override the get_extension method, by default this method will return None.

return None

When calling the _check_for_pkg_config method a new extension will be created that what won't contain the original flags added by the add_flags method.

ext = self.get_extension()

The FreeType class does not override the ``get_extension`` method, by default this method will return None.

https://github.com/matplotlib/matplotlib/blob/6cf6063c7a3037d52545b2b7268623d33da0ecdd/setupext.py#L387

When calling the ``_check_for_pkg_config`` method a new extension will be created that what won't contain the original flags added by the ``add_flags`` method.

https://github.com/matplotlib/matplotlib/blob/6cf6063c7a3037d52545b2b7268623d33da0ecdd/setupext.py#L438
@tacaswell tacaswell added this to the v1.4.0 milestone May 16, 2014
@tacaswell

Copy link
Copy Markdown
Member

@mdboom Do we have a setup.py expert?

@mdboom

mdboom commented Oct 7, 2014

Copy link
Copy Markdown
Member

I'm sorry I missed this the first time around. I don't see how this resolves the original issue, and it ends up creating a new extension at the toplevel of the Python namespace that is not a Python extension:

>>> import freetype2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (initfreetype2)

@tacaswell: I'm going to make a new blocker issue for this.

frol referenced this pull request Jul 19, 2015
seems to be broken.  Use that only for version determination.  Warn if
pkg-config is not present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants