File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 6
6
from distutils .core import setup
7
7
8
8
9
- from platform import python_version_tuple
9
+ from platform import python_version_tuple , python_implementation
10
10
import os
11
11
import re
12
12
21
21
LONG_DESCRIPTION = open ("README.rst" , "r" ).read ().replace ("`_" , "`" )
22
22
23
23
# strip Build Status from the PyPI package
24
- if python_version_tuple ()[:2 ] >= ('2' , '7' ):
25
- LONG_DESCRIPTION = re .sub ("^Build status\n (.*\n ){7}" , "" , LONG_DESCRIPTION , flags = re .M )
26
-
24
+ try :
25
+ if python_version_tuple ()[:2 ] >= ('2' , '7' ):
26
+ status_re = "^Build status\n (.*\n ){7}"
27
+ LONG_DESCRIPTION = re .sub (status_re , "" , LONG_DESCRIPTION , flags = re .M )
28
+ except TypeError :
29
+ if python_implementation () == "IronPython" :
30
+ # IronPython doesn't support flags in re.sub (IronPython issue #923)
31
+ pass
32
+ else :
33
+ raise
27
34
28
35
install_options = os .environ .get ("TABULATE_INSTALL" ,"" ).split ("," )
29
36
libonly_flags = set (["lib-only" , "libonly" , "no-cli" , "without-cli" ])
You can’t perform that action at this time.
0 commit comments