-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1456 from robertwb/distutils
Replace old build_ext with new cythonize(...) version.
- Loading branch information
Showing
8 changed files
with
375 additions
and
367 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
import sys | ||
from .Dependencies import cythonize | ||
|
||
if 'setuptools' in sys.modules: | ||
from setuptools.command import build_ext as _build_ext | ||
else: | ||
from distutils.command import build_ext as _build_ext | ||
|
||
class build_ext(_build_ext.build_ext, object): | ||
def finalize_options(self): | ||
self.distribution.ext_modules[:] = cythonize( | ||
self.distribution.ext_modules) | ||
super(build_ext, self).finalize_options() | ||
from Cython.Distutils.build_ext import build_ext |
This file contains 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
Oops, something went wrong.