-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/setup.py b/setup.py | ||
index 65b0ea0..4461580 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -82,7 +82,11 @@ if 'sdist' in sys.argv or os.environ.get('PYYAML_FORCE_CYTHON') == '1': | ||
with_cython = True | ||
try: | ||
from Cython.Distutils.extension import Extension as _Extension | ||
- from Cython.Distutils import build_ext as _build_ext | ||
+ try: | ||
+ from Cython.Distutils.old_build_ext import old_build_ext as _build_ext | ||
+ except ImportError: | ||
+ from Cython.Distutils import build_ext as _build_ext | ||
+ | ||
with_cython = True | ||
except ImportError: | ||
if with_cython: |
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