Update version.

pull/493/head
KmolYuan 2019-10-21 23:13:17 +08:00
parent 9d1b9e7e43
commit c4928f7c94
2 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ __author__ = "Yuan Chang"
__copyright__ = "Copyright (C) 2016-2019"
__license__ = "GPLv3+"
__email__ = "pyslvs@gmail.com"
__version__ = "3.0.1.dev0"
__version__ = "3.0.1.post0"
from enum import IntEnum, auto
from .slvs import (

View File

@ -7,6 +7,7 @@ __copyright__ = "Copyright (C) 2016-2019"
__license__ = "GPLv3+"
__email__ = "pyslvs@gmail.com"
import sys
from os import walk
from os.path import dirname, isdir, join as pth_join
import re
@ -70,7 +71,10 @@ sources = [
pth_join(src_path, 'system.cpp'),
pth_join(src_path, 'lib.cpp'),
]
if system() == 'Windows':
if {'sdist', 'bdist'} & set(sys.argv):
for s in ('utilwin', 'utilunix', 'platform'):
sources.append(pth_join(platform_path, f'{s}.cpp'))
elif system() == 'Windows':
# Avoid compile error with CYTHON_USE_PYLONG_INTERNALS.
# https://github.com/cython/cython/issues/2670#issuecomment-432212671
macros.append(('MS_WIN64', None))