Skip to content

Commit def5b59

Browse files
authored
Inline the usage of distutils to mitigate the issue caused by removal (#513)
* Embed usage of distutils
1 parent 575e703 commit def5b59

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
33
Release History
44
===============
5+
0.1.98
6+
++++++
7+
* `az verify history`: Mitigate the usage of "distutils" by inline
8+
59
0.1.97
610
++++++
711
* `azdev generate-breaking-change-report`: Add `--include-whl-extensions` to support extensions installed through wheel.

azdev/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# -----------------------------------------------------------------------------
66

7-
__VERSION__ = '0.1.97'
7+
__VERSION__ = '0.1.98'

azdev/operations/pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import re
99
import sys
1010

11-
from distutils.version import LooseVersion # pylint:disable=import-error,no-name-in-module,deprecated-module
1211
from docutils import core, io
1312

1413
from knack.log import get_logger
@@ -247,6 +246,7 @@ def _compare_module_against_pypi(results, root_dir, mod, mod_path):
247246
results[mod]['status'] = 'OK'
248247
return results
249248
# OK if local version is higher than what's on PyPI
249+
from distutils.version import LooseVersion # pylint:disable=import-error,no-name-in-module,deprecated-module
250250
if LooseVersion(build_version) > LooseVersion(downloaded_version):
251251
results[mod]['status'] = 'OK'
252252
return results

0 commit comments

Comments
 (0)