| --- lxml-3.7.3/setupinfo.py.orig 2017-04-07 15:51:34.188042100 -0400 |
| +++ lxml-3.7.3/setupinfo.py 2017-04-07 15:53:47.887745500 -0400 |
| @@ -2,6 +2,7 @@ import sys, os, os.path |
| from distutils.core import Extension |
| from distutils.errors import CompileError, DistutilsOptionError |
| from distutils.command.build_ext import build_ext as _build_ext |
| +from distutils.util import get_platform |
| from versioninfo import get_base_dir |
| |
| try: |
| @@ -239,7 +240,7 @@ def libraries(): |
| standard_libs.append('z') |
| standard_libs.append('m') |
| |
| - if sys.platform in ('win32',): |
| + if get_platform().startswith('win'): |
| libs = ['libxslt', 'libexslt', 'libxml2', 'iconv'] |
| if OPTION_STATIC: |
| libs = ['%s_a' % lib for lib in libs] |