Skip to content

Commit daa0e64

Browse files
committed
remove pip version check
1 parent 7c665a4 commit daa0e64

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sklearn/_build_utils/__init__.py

-12
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ def cythonize_extensions(top_path, config):
2626
"""Check that a recent Cython is available and cythonize extensions"""
2727
with_openmp = check_openmp_support()
2828

29-
# Could be due to a too old pip version and build isolation, check that
30-
try:
31-
# Note, pip may not be installed or not have been used
32-
import pip
33-
if LooseVersion(pip.__version__) < LooseVersion('18.0.0'):
34-
raise RuntimeError("Cannot cythonize, possibly due "
35-
"to `pip` being too old, found version {}, "
36-
"needed is >= 18.0.0.".format(
37-
pip.__version__))
38-
except ImportError:
39-
raise RuntimeError("pip not installed!")
40-
4129
message = ('Please install cython with a version >= {0} in order '
4230
'to build a scikit-learn from source.').format(
4331
CYTHON_MIN_VERSION)

0 commit comments

Comments
 (0)