8000 BUG: moved from Cython import Tempita from top file to where needed · scikit-learn/scikit-learn@37befa7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37befa7

Browse files
BUG: moved from Cython import Tempita from top file to where needed
Present of import atop the test file caused pytest to fail collecting tests if the testing environment did not have cython installed.
1 parent 9adba49 commit 37befa7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/linear_model/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import numpy
44

5-
from Cython import Tempita
6-
75
def configuration(parent_package='', top_path=None):
86
from numpy.distutils.misc_util import Configuration
97

@@ -32,6 +30,7 @@ def configuration(parent_package='', top_path=None):
3230

3331
with open(sag_cython_file, "r") as f:
3432
tmpl = f.read()
33+
from Cython import Tempita
3534
tmpl_ = Tempita.sub(tmpl)
3635

3736
with open(sag_file, "w") as f:

0 commit comments

Comments
 (0)
0