Commit 5a79e918 authored by Reinout van Rees's avatar Reinout van Rees

Worked in the 38.2.3 version check in a safe location

parent f76788c0
...@@ -38,8 +38,12 @@ import zc.buildout ...@@ -38,8 +38,12 @@ import zc.buildout
import warnings import warnings
try: try:
from setuptools.wheel import Wheel from setuptools.wheel import Wheel # This is the important import
SETUPTOOLS_SUPPORTS_WHEELS = True from setuptools import __version__ as setuptools_version
# Now we need to check if we have at least 38.2.3 for namespace support.
SETUPTOOLS_SUPPORTS_WHEELS = (
pkg_resources.SetuptoolsVersion(setuptools_version) >=
pkg_resources.SetuptoolsVersion('38.2.3'))
except ImportError: except ImportError:
SETUPTOOLS_SUPPORTS_WHEELS = False SETUPTOOLS_SUPPORTS_WHEELS = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment