Set max wheel version for pep425tags (#83)
* max wheel version and sysconfig * update version to 1.0.3
This commit is contained in:
Родитель
682873d2e8
Коммит
2070d75918
Двоичный файл не отображается.
|
@ -4,4 +4,4 @@ dill>=0.2.6
|
|||
pkginfo>=1.4.2
|
||||
requirements-parser>=0.2.0
|
||||
pandas>=0.19.2
|
||||
wheel>=0.32.3
|
||||
wheel>=0.32.3,<0.35.0
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
setup(
|
||||
name='sqlmlutils',
|
||||
packages=['sqlmlutils', 'sqlmlutils/packagemanagement'],
|
||||
version='1.0.2',
|
||||
version='1.0.3',
|
||||
url='https://github.com/Microsoft/sqlmlutils/Python',
|
||||
license='MIT License',
|
||||
description='A client side package for working with SQL Server',
|
||||
|
@ -21,7 +21,7 @@ setup(
|
|||
'pkginfo',
|
||||
'requirements-parser',
|
||||
'pandas',
|
||||
'wheel'
|
||||
'wheel<0.35.0'
|
||||
],
|
||||
python_requires='>=3.5'
|
||||
)
|
||||
|
|
|
@ -15,16 +15,20 @@ def show_installed_packages():
|
|||
|
||||
def get_server_info():
|
||||
from distutils.version import LooseVersion
|
||||
import pip
|
||||
if LooseVersion(pip.__version__) > LooseVersion("10"):
|
||||
import pip, sysconfig
|
||||
pipversion = LooseVersion(pip.__version__)
|
||||
|
||||
if pipversion >= LooseVersion("19.3"):
|
||||
from wheel import pep425tags
|
||||
elif pipversion > LooseVersion("10"):
|
||||
from pip._internal import pep425tags
|
||||
else:
|
||||
from pip import pep425tags
|
||||
return {
|
||||
"impl_version_info": pep425tags.get_impl_version_info(),
|
||||
"abbr_impl": pep425tags.get_abbr_impl(),
|
||||
"abi_tag": pep425tags.get_abi_tag(),
|
||||
"platform": pep425tags.get_platform()
|
||||
"impl_version_info": pep425tags.get_impl_version_info(), #(3,7)
|
||||
"abbr_impl": pep425tags.get_abbr_impl(), #'cp'
|
||||
"abi_tag": pep425tags.get_abi_tag(), #'cp37m'
|
||||
"platform": sysconfig.get_platform().replace("-","_") #'win_amd64', 'linux_x86_64'
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче