Skip to content

Commit

Permalink
Workaround for setuptools version parsing error (#2232)
Browse files Browse the repository at this point in the history
Fixes #2231

Signed-off-by: BogdanR <[email protected]>
  • Loading branch information
bristea authored and ssbarnea committed Aug 18, 2019
1 parent 705f375 commit c932658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@


ALL_STRING_TYPES = tuple(map(type, ('', b'', u'')))
MIN_NATIVE_SETUPTOOLS_VERSION = 34, 4, 0
MIN_NATIVE_SETUPTOOLS_VERSION = 34, 4
"""Minimal setuptools having good read_configuration implementation."""

RUNTIME_SETUPTOOLS_VERSION = tuple(map(int, setuptools.__version__.split('.')))
# Patch version can be a non integer value, like 'post20190705'
RUNTIME_SETUPTOOLS_VERSION = tuple(map(int, setuptools.__version__.split('.')[:2]))
"""Setuptools imported now."""

READ_CONFIG_SHIM_NEEDED = RUNTIME_SETUPTOOLS_VERSION < MIN_NATIVE_SETUPTOOLS_VERSION
Expand Down

0 comments on commit c932658

Please sign in to comment.