Skip to content

Commit

Permalink
[setup] do not call parent function via super, because Extension is a…
Browse files Browse the repository at this point in the history
…n old-style class.
  • Loading branch information
marscher committed Oct 12, 2015
1 parent 9e77b1f commit 709bffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basesetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import shutil
import subprocess
import tempfile
from setuptools import Extension
from distutils.dep_util import newer_group
from distutils.core import Extension
from distutils.errors import DistutilsExecError, DistutilsSetupError
from distutils.ccompiler import new_compiler
from distutils.sysconfig import customize_compiler, get_config_vars
Expand Down Expand Up @@ -264,7 +264,7 @@ def build_extension(self, ext):
def copy_extensions_to_source(self):
_extensions = self.extensions
self.extensions = [e for e in _extensions if not isinstance(e, StaticLibrary)]
super(build_ext, self).copy_extensions_to_source()
_build_ext.copy_extensions_to_source(self)
self.extensions = _extensions

def build_static_extension(self, ext):
Expand Down

0 comments on commit 709bffa

Please sign in to comment.