8000 Merge pull request #1018 from stonebig/master · winpython/winpython@a9db986 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9db986

Browse files
authored
Merge pull request #1018 from stonebig/master
pip-21.3 deprecates get_installed_distributions
2 parents 39cefed + 536190b commit a9db986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '4.5.20210918'
31+
__version__ = '4.5.20210926'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/wppm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def get_installed_packages(self, update=False):
380380
cmdx = [
381381
utils.get_python_executable(self.target), # PyPy !
382382
'-c',
383-
"import pip;from pip._internal.utils.misc import get_installed_distributions as pip_get_installed_distributions ;print('+!+'.join(['%s@+@%s@+@' % (i.key,i.version) for i in pip_get_installed_distributions()]))",
383+
"import pkg_resources, importlib;importlib.reload(pkg_resources);print('+!+'.join(['%s@+@%s@+@' % (i.key, i.version) for i in pkg_resources.working_set]))",
384384
]
385385
p = subprocess.Popen(
386386
cmdx,

0 commit comments

Comments
 (0)
0