Update for pip change in main structure (#52)
This commit is contained in:
Родитель
97ab5737b6
Коммит
660ac7bc48
|
@ -7,14 +7,13 @@ sqlmlutils is a python package to help execute Python code on a SQL Server machi
|
|||
Download the zip package file from the dist folder.
|
||||
From a command prompt, run
|
||||
```
|
||||
python.exe -m pip install --upgrade --upgrade-strategy only-if-needed sqlmlutils-0.7.1.zip
|
||||
pip install sqlmlutils
|
||||
```
|
||||
|
||||
Note: If you encounter errors installing the pymssql dependency and your client is a Windows machine, consider
|
||||
installing the .whl file at the below link (download the file for your Python version and run pip install):
|
||||
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql
|
||||
|
||||
|
||||
If you are developing on your own branch and want to rebuild and install the package, you can use the buildandinstall.cmd script that is included.
|
||||
|
||||
# Getting started
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
python.exe setup.py sdist --formats=zip
|
||||
python.exe -m pip install --upgrade --upgrade-strategy only-if-needed dist\sqlmlutils-0.7.1.zip
|
||||
python.exe -m pip install --upgrade --upgrade-strategy only-if-needed dist\sqlmlutils-0.7.2.zip
|
||||
|
|
Двоичный файл не отображается.
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
setup(
|
||||
name='sqlmlutils',
|
||||
packages=['sqlmlutils', 'sqlmlutils/packagemanagement'],
|
||||
version='0.7.1',
|
||||
version='0.7.2',
|
||||
url='https://github.com/Microsoft/sqlmlutils/Python',
|
||||
license='MIT License',
|
||||
desciption='A client side package for working with SQL Server',
|
||||
|
|
|
@ -7,7 +7,11 @@ import warnings
|
|||
import sys
|
||||
|
||||
pipversion = LooseVersion(pip.__version__ )
|
||||
if pipversion > LooseVersion("10"):
|
||||
|
||||
if pipversion >= LooseVersion("19.3"):
|
||||
from pip._internal import pep425tags
|
||||
from pip._internal.main import main as pipmain
|
||||
elif pipversion > LooseVersion("10"):
|
||||
from pip._internal import pep425tags
|
||||
from pip._internal import main as pipmain
|
||||
else:
|
||||
|
|
Загрузка…
Ссылка в новой задаче