Skip to content

Commit 02ddfc1

Browse files
committed
Merge pull request #202 from stonebig/master
small tweak and package addition
2 parents 52f06e3 + 19bf52e commit 02ddfc1

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

winpython/data/packages.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ description=serialize all of python (almost)
113113
description=Download, build, install, upgrade, and uninstall Python packages - easily
114114
category=deploy
115115

116+
[distributed]
117+
description=Distributed computing
118+
116119
[decorator]
117120
description=Better living through Python with decorators
118121

@@ -426,6 +429,9 @@ category=improc
426429
description=A tool for installing and managing Python packages
427430
category=deploy
428431

432+
[ply]
433+
description=Python Lex & Yacc
434+
429435
[polygon2]
430436
description=Polygon2 is a Python-2 package that handles polygonal shapes in 2D
431437

@@ -510,6 +516,9 @@ description=Logilab code analysis module: analyzes Python source code looking fo
510516
url=http://www.logilab.org/project/pylint
511517
category=util
512518

519+
[pymc]
520+
description=Markov Chain Monte Carlo sampling toolkit.
521+
513522
[pymeta3]
514523
description=Pattern-matching language based on Meta for Python 3 and 2
515524

@@ -738,6 +747,9 @@ description=a graphic SQLite Client in 1 Python file
738747
[statsmodels]
739748
description=Statistical computations and models for use with SciPy
740749
750+
[supersmoother]
751+
description=Python implementation of Friedman's Supersmoother
752+
741753
[sympy]
742754
description=Symbolic Mathematics Library
743755

@@ -825,5 +837,8 @@ description=A Python module for creating Excel XLSX files.
825837
description=Create spreadsheet files compatible with Microsoft Excel 97/2000/XP/2003 files, OpenOffice.org Calc, and Gnumeric
826838
category=dataproc
827839

840+
[xonsh]
841+
description=an exotic, usable shell
842+
828843
[xray]
829844
description=N-D labeled arrays and datasets in Python

winpython/wppm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,13 @@ def find_package(self, name):
371371
if pack.name == name:
372372
return pack
373373

374+
374375
def uninstall_existing(self, package):
375-
"""Uninstall existing package"""
376-
pack = self.find_package(package.name)
376+
"""Uninstall existing package (or package name)"""
377+
if isinstance(package ,str):
378+
pack = self.find_package(package)
379+
else:
380+
pack = self.find_package(package.name)
377381
if pack is not None:
378382
self.uninstall(pack)
379383

0 commit comments

Comments
 (0)