From bd72b15f88d658e347a38be1bbb21f05b88be46d Mon Sep 17 00:00:00 2001 From: Darryl See Wei Shen <59615070+peanutsee@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:14:35 +0800 Subject: [PATCH] updated dependency on distutils for python 3.12 and above (#1072) * updated dependency on distutils for python 3.12 and above * removed unused import --- docs/mdx_math_setup.py | 2 +- mlxtend/frequent_patterns/fpcommon.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/mdx_math_setup.py b/docs/mdx_math_setup.py index 8ffc2c7a9..7d870e5c3 100755 --- a/docs/mdx_math_setup.py +++ b/docs/mdx_math_setup.py @@ -30,7 +30,7 @@ SUCH DAMAGE. """ -from distutils.core import setup +from setuptools import setup long_description = """This extension adds math formulas support to Python-Markdown_ (works with version 2.6 or newer). diff --git a/mlxtend/frequent_patterns/fpcommon.py b/mlxtend/frequent_patterns/fpcommon.py index 0181e7104..b1a514cd1 100644 --- a/mlxtend/frequent_patterns/fpcommon.py +++ b/mlxtend/frequent_patterns/fpcommon.py @@ -1,6 +1,5 @@ import collections import warnings -from distutils.version import LooseVersion as Version import numpy as np import pandas as pd