зеркало из https://github.com/microsoft/azure-cli.git
Install the 'profile' component on install
This commit is contained in:
Родитель
34036fbead
Коммит
05ebbdfdc5
6
setup.py
6
setup.py
|
@ -19,7 +19,7 @@ from __future__ import print_function
|
|||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '0.0.3'
|
||||
VERSION = '0.0.4'
|
||||
INSTALL_FROM_PUBLIC = False
|
||||
|
||||
# If we have source, validate that our version numbers match
|
||||
|
@ -73,13 +73,13 @@ def _post_install(dir):
|
|||
from subprocess import check_call
|
||||
if INSTALL_FROM_PUBLIC:
|
||||
pip.main(['install', 'azure-cli-components', '--disable-pip-version-check'])
|
||||
check_call(['az', 'components', 'install', '-n', 'login'])
|
||||
check_call(['az', 'components', 'install', '-n', 'profile'])
|
||||
else:
|
||||
# use private PyPI server.
|
||||
pip.main(['install', 'azure-cli-components', '--extra-index-url',
|
||||
'http://40.112.211.51:8080/', '--trusted-host', '40.112.211.51',
|
||||
'--disable-pip-version-check'])
|
||||
check_call(['az', 'components', 'install', '-n', 'login', '-p'])
|
||||
check_call(['az', 'components', 'install', '-n', 'profile', '-p'])
|
||||
|
||||
class OnInstall(install):
|
||||
def run(self):
|
||||
|
|
|
@ -6,4 +6,4 @@ APIs.
|
|||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
|
||||
__author__ = "Microsoft Corporation <python@microsoft.com>"
|
||||
__version__ = "0.0.3"
|
||||
__version__ = "0.0.4"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import account
|
||||
import login
|
||||
import logout
|
||||
import azure.cli.command_modules.profile.account
|
||||
import azure.cli.command_modules.profile.login
|
||||
import azure.cli.command_modules.profile.logout
|
||||
|
|
Загрузка…
Ссылка в новой задаче