8000 lazy import of tempita to avoid cython dependency when building from … · jeremiedbb/scikit-learn@916c6ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 916c6ce

Browse files
committed
lazy import of tempita to avoid cython dependency when building from c files
1 parent d884add commit 916c6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/utils/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
def configuration(parent_package='', top_path=None):
66
import numpy
77
from numpy.distutils.misc_util import Configuration
8-
from Cython import Tempita
98

109
config = Configuration('utils', parent_package, top_path)
1110

@@ -58,6 +57,7 @@ def configuration(parent_package='', top_path=None):
5857

5958
with open(pyxfiles, "r") as f:
6059
tmpl = f.read()
60+
from Cython import Tempita # noqa
6161
pyxcontent = Tempita.sub(tmpl)
6262

6363
with open(outfile, "w") as f:

0 commit comments

Comments
 (0)
0