Skip to content

Commit

Permalink
Don't import tools
Browse files Browse the repository at this point in the history
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
  • Loading branch information
2 people authored and valgur committed Oct 30, 2023
1 parent 44a4189 commit 26c5fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/cpython/all/test_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
elif PY3:
subdir = "py3"
from setuptools import setup, Extension, __version__ as setuptools_versions
from conans import tools
use_2to3 = tools.Version(setuptools_versions) <= tools.Version("58.0.0")
import pkg_resources
use_2to3 = pkg_resources.parse_version(setuptools_versions) <= pkg_resources.parse_version("58.0.0")
else:
raise Exception

Expand Down

0 comments on commit 26c5fbf

Please sign in to comment.