Skip to content

Commit

Permalink
sigh, Extension is an old-style class on python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Apr 6, 2016
1 parent b00780d commit 8a30280
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _setuputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,6 @@ class Extension(_Extension):
def __init__(self, *args, **kwargs):
self.libraries = []
self.define_macros = []
super(Extension, self).__init__(*args, **kwargs)
# Python 2 has this as an old-style class for some reason
# so super() doesn't work.
_Extension.__init__(self, *args, **kwargs) # pylint:disable=no-member,non-parent-init-called

0 comments on commit 8a30280

Please sign in to comment.