8000 a refreshed pip · winpython/winpython@d664f0d · GitHub
[go: up one dir, main page]

Skip to content

Commit d664f0d

Browse files
author
stonebig
committed
8000
a refreshed pip
1 parent 9449f37 commit d664f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

winpython/wppm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ def get_installed_packages(self):
326326
wininst.append(pack)
327327
# Include package installed via pip (not via WPPM)
328328
try:
329-
if os.path.dirname(sys.executable) == self.target and 1==2:
329+
if os.path.dirname(sys.executable) == self.target:
330330
# direct way: we interrogate ourself
331-
# avoid as it work only once (bug): result is never updated
332331
import pip
332+
pip.utils.pkg_resources = imp.reload(pip.utils.pkg_resources)
333333
pip_list = [(i.key, i.version)
334334
for i in pip.get_installed_distributions()]
335335
else:

0 commit comments

Comments
 (0)
0