Skip to content

Commit

Permalink
MAINT: allow distutils when packaging is not available (uxlfounda…
Browse files Browse the repository at this point in the history
  • Loading branch information
md-shafiul-alam authored Sep 19, 2024
1 parent 1c81337 commit dd3e088
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .circleci/deselect_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
import warnings

import sklearn
from packaging.version import Version

try:
from packaging.version import Version
except ImportError:
from distutils.version import LooseVersion as Version

from sklearn import __version__ as sklearn_version
from yaml import FullLoader
from yaml import load as yaml_load
Expand Down
5 changes: 4 additions & 1 deletion daal4py/sklearn/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@

import logging

from packaging.version import Version
try:
from packaging.version import Version
except ImportError:
from distutils.version import LooseVersion as Version

try:
from pandas import DataFrame
Expand Down

0 comments on commit dd3e088

Please sign in to comment.