| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -717,12 +717,13 @@ def _create_launchers(self): | |||
| 717 | 717 | command="$SYSDIR\cmd.exe", | |
| 718 | 718 | args=r"/k cmd.bat", | |
| 719 | 719 | ) | |
| 720 | - self.create_launcher( | ||
| 721 | - "WinPython Powershell Prompt.exe", | ||
| 722 | - "powershell.ico", | ||
| 723 | - command="$SYSDIR\cmd.exe", | ||
| 724 | - args=r"/k cmd_ps.bat", | ||
| 725 | - ) | ||
| 720 | + # removed to reduce number of icons | ||
| 721 | + #self.create_launcher( | ||
| 722 | + # "WinPython Powershell Prompt.exe", | ||
| 723 | + # "powershell.ico", | ||
| 724 | + # command="$SYSDIR\cmd.exe", | ||
| 725 | + # args=r"/k cmd_ps.bat", | ||
| 726 | + #) | ||
| 726 | 727 | ||
| 727 | 728 | self.create_launcher( | |
| 728 | 729 | "WinPython Terminal.exe", | |
@@ -738,13 +739,6 @@ def _create_launchers(self): | |||
| 738 | 739 | args=r"/k winpython.bat", | |
| 739 | 740 | ) | |
| 740 | 741 | ||
| 741 | - #self.create_launcher( | ||
| 742 | - # "IDLEX.exe", | ||
| 743 | - # "python.ico", | ||
| 744 | - # command="wscript.exe", | ||
| 745 | - # args=r"Noshell.vbs winidlex.bat", | ||
| 746 | - #) | ||
| 747 | - | ||
| 748 | 742 | self.create_launcher( | |
| 749 | 743 | "IDLE (Python GUI).exe", | |
| 750 | 744 | "python.ico", | |
@@ -769,8 +763,10 @@ def _create_launchers(self): | |||
| 769 | 763 | self.create_launcher( | |
| 770 | 764 | "WinPython Control Panel.exe", | |
| 771 | 765 | "winpython.ico", | |
| 772 | - command="wscript.exe", | ||
| 773 | - args=r"Noshell.vbs wpcp.bat", | ||
| 766 | + # command="wscript.exe", | ||
| 767 | + # args=r"Noshell.vbs wpcp.bat", | ||
| 768 | + command="$SYSDIR\cmd.exe", | ||
| 769 | + args=r"/k wpcp.bat", | ||
| 774 | 770 | ) | |
| 775 | 771 | ||
| 776 | 772 | # Multi-Qt launchers | |
@@ -819,13 +815,6 @@ def _create_launchers(self): | |||
| 819 | 815 | args=r"/k winjupyter_lab.bat", | |
| 820 | 816 | ) | |
| 821 | 817 | ||
| 822 | - #self.create_launcher( | ||
| 823 | - # "Pyzo.exe", | ||
| 824 | - # "pyzologo.ico", | ||
| 825 | - # command="wscript.exe", | ||
| 826 | - # args=r"Noshell.vbs winpyzo.bat", | ||
| 827 | - #) | ||
| 828 | - | ||
| 829 | 818 | # VSCode launcher | |
| 830 | 819 | self.create_launcher( | |
| 831 | 820 | "VS Code.exe", | |
@@ -1512,44 +1501,6 @@ def _create_batch_scripts(self): | |||
| 1512 | 1501 | do_changes=changes, | |
| 1513 | 1502 | ) | |
| 1514 | 1503 | ||
| 1515 | - self.create_batch_script( | ||
| 1516 | - "idlex.bat", | ||
| 1517 | - r"""@echo off | ||
| 1518 | - call "%~dp0env_for_icons.bat" %* | ||
| 1519 | - rem backward compatibility for non-IDLEX users | ||
| 1520 | - if exist "%WINPYDIR%\scripts\idlex.pyw" ( | ||
| 1521 | - "%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %* | ||
| 1522 | - ) else ( | ||
| 1523 | - "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %* | ||
| 1524 | - ) | ||
| 1525 | - """, | ||
| 1526 | - do_changes=changes, | ||
| 1527 | - ) | ||
| 1528 | - | ||
| 1529 | - self.create_batch_script( | ||
| 1530 | - "idle.bat", | ||
| 1531 | - r"""@echo off | ||
| 1532 | - call "%~dp0env_for_icons.bat" %* | ||
| 1533 | - "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %* | ||
| 1534 | - | ||
| 1535 | - """, | ||
| 1536 | - do_changes=changes, | ||
| 1537 | - ) | ||
| 1538 | - self.create_batch_script( | ||
| 1539 | - "winidlex.bat", | ||
| 1540 | - r"""@echo off | ||
| 1541 | - | ||
| 1542 | - call "%~dp0env_for_icons.bat" %* | ||
| 1543 | - cd/D "%WINPYWORKDIR1%" | ||
| 1544 | - rem backward compatibility for non-IDLEX users | ||
| 1545 | - if exist "%WINPYDIR%\scripts\idlex.pyw" ( | ||
| 1546 | - "%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %* | ||
| 1547 | - ) else ( | ||
| 1548 | - echo "%WINPYDIR%\scripts\idlex.pyw" for IDLEX not found !" | ||
| 1549 | - ) | ||
| 1550 | - """, | ||
| 1551 | - do_changes=changes, | ||
| 1552 | - ) | ||
| 1553 | 1504 | self.create_batch_script( | |
| 1554 | 1505 | "winidle.bat", | |
| 1555 | 1506 | r"""@echo off | |
@@ -1560,18 +1511,6 @@ def _create_batch_scripts(self): | |||
| 1560 | 1511 | do_changes=changes, | |
| 1561 | 1512 | ) | |
| 1562 | 1513 | ||
| 1563 | - self.create_batch_script( | ||
| 1564 | - "spyder.bat", | ||
| 1565 | - r"""@echo off | ||
| 1566 | - call "%~dp0env_for_icons.bat" %* | ||
| 1567 | - rem cd/D "%WINPYWORKDIR%" | ||
| 1568 | - if exist "%WINPYDIR%\scripts\spyder3.exe" ( | ||
| 1569 | - "%WINPYDIR%\scripts\spyder3.exe" %* -w "%WINPYWORKDIR1%" | ||
| 1570 | - ) else ( | ||
| 1571 | - "%WINPYDIR%\scripts\spyder.exe" %* -w "%WINPYWORKDIR1%" | ||
| 1572 | - ) | ||
| 1573 | - """, | ||
| 1574 | - ) | ||
| 1575 | 1514 | self.create_batch_script( | |
| 1576 | 1515 | "winspyder.bat", | |
| 1577 | 1516 | r"""@echo off | |
@@ -1598,15 +1537,6 @@ def _create_batch_scripts(self): | |||
| 1598 | 1537 | """, | |
| 1599 | 1538 | ) | |
| 1600 | 1539 | ||
| 1601 | - self.create_batch_script( | ||
| 1602 | - "ipython_notebook.bat", | ||
| 1603 | - r"""@echo off | ||
| 1604 | - call "%~dp0env_for_icons.bat" %* | ||
| 1605 | - cd/D "%WINPYWORKDIR1%" | ||
| 1606 | - "%WINPYDIR%\scripts\jupyter-notebook.exe" %* | ||
| 1607 | - """, | ||
| 1608 | - ) | ||
| 1609 | - | ||
| 1610 | 1540 | self.create_batch_script( | |
| 1611 | 1541 | "winipython_notebook.bat", | |
| 1612 | 1542 | r"""@echo off | |
@@ -1634,15 +1564,6 @@ def _create_batch_scripts(self): | |||
| 1634 | 1564 | """, | |
| 1635 | 1565 | ) | |
| 1636 | 1566 | ||
| 1637 | - self.create_batch_script( | ||
| 1638 | - "qtconsole.bat", | ||
| 1639 | - r"""@echo off | ||
| 1640 | - call "%~dp0env_for_icons.bat" %* | ||
| 1641 | - cd/D "%WINPYWORKDIR1%" | ||
| 1642 | - "%WINPYDIR%\scripts\jupyter-qtconsole.exe" %* | ||
| 1643 | - """, | ||
| 1644 | - ) | ||
| 1645 | - | ||
| 1646 | 1567 | self.create_batch_script( | |
| 1647 | 1568 | "winqtconsole.bat", | |
| 1648 | 1569 | r"""@echo off | |
@@ -1786,15 +1707,14 @@ def _create_batch_scripts(self): | |||
| 1786 | 1707 | "wpcp.bat", | |
| 1787 | 1708 | r"""@echo off | |
| 1788 | 1709 | call "%~dp0env_for_icons.bat" %* | |
| 1789 | - cd/D "%WINPYWORKDIR1%" | ||
| 1790 | - "%WINPYDIR%\python.exe" -m winpython.controlpanel %* | ||
| 1710 | + rem cd/D "%WINPYWORKDIR1%" | ||
| 1711 | + rem "%WINPYDIR%\python.exe" -m winpython.controlpanel %* | ||
| 1712 | + if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd/d %WINPYWORKDIR1% | ||
| 1713 | + cmd.exe /k "echo wppm & echo & wppm" | ||
| 1791 | 1714 | """, | |
| 1792 | 1715 | do_changes=changes, | |
| 1793 | 1716 | ) | |
| 1794 | 1717 | ||
| 1795 | - # self.create_python_batch('wpcp.bat', '-m winpython.controlpanel', | ||
| 1796 | - # workdir=r'"%WINPYDIR%\Scripts"') | ||
| 1797 | - | ||
| 1798 | 1718 | self.create_batch_script( | |
| 1799 | 1719 | "upgrade_pip.bat", | |
| 1800 | 1720 | r"""@echo off | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,6 @@ | |||
| 28 | 28 | OTHER DEALINGS IN THE SOFTWARE. | |
| 29 | 29 | """ | |
| 30 | 30 | ||
| 31 | - __version__ = '7.2.20240224' | ||
| 31 | + __version__ = '7.3.20240303' | ||
| 32 | 32 | __license__ = __doc__ | |
| 33 | 33 | __project_url__ = 'http://winpython.github.io/' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -730,29 +730,14 @@ def main(test=False): | |||
| 730 | 730 | bold = "\033[1m" | |
| 731 | 731 | unbold = "\033[0m" | |
| 732 | 732 | registerWinPythonHelp = f"""Register distribution | |
| 733 | - ({bold}experimental{unbold}) | ||
| 734 | - This will associate file extensions, icons and | ||
| 735 | - Windows explorer's context menu entries ('Edit with IDLE', ...) | ||
| 736 | - with selected Python distribution in Windows registry. | ||
| 737 | - | ||
| 738 | - Shortcuts for all WinPython launchers will be installed | ||
| 739 | - in {unbold}WinPython{unbold} Start menu group (replacing existing | ||
| 740 | - shortcuts). | ||
| 741 | - | ||
| 742 | - {bold}Note{unbold}: these actions are similar to those performed | ||
| 743 | - when installing old Pythons with the official installer before 'py' | ||
| 744 | - . | ||
| 733 | + Associate file extensions, icons and context menu entries with this WinPython. | ||
| 734 | + Create a menu group {unbold}WinPython{unbold} for this WinPython launchers. | ||
| 745 | 735 | """ | |
| 746 | 736 | ||
| 747 | 737 | unregisterWinPythonHelp = f"""Unregister distribution | |
| 748 | - ({bold}experimental{unbold}) | ||
| 749 | - This will remove file extensions associations, icons and | ||
| 750 | - Windows explorer's context menu entries ('Edit with IDLE', ...) | ||
| 751 | - with selected Python distribution in Windows registry. | ||
| 752 | - | ||
| 753 | - Shortcuts for all WinPython launchers will be removed | ||
| 754 | - from {bold}WinPython{unbold} Start menu group." | ||
| 755 | - .""" | ||
| 738 | + De-Associate file extensions, icons and context menu entries from this WinPython. | ||
| 739 | + Remove menu group {unbold}WinPython{unbold} . | ||
| 740 | + """ | ||
| 756 | 741 | ||
| 757 | 742 | parser = ArgumentParser( | |
| 758 | 743 | description="WinPython Package Manager: view, install, " | |
@@ -770,7 +755,6 @@ def main(test=False): | |||
| 770 | 755 | ) | |
| 771 | 756 | parser.add_argument( | |
| 772 | 757 | "-t", | |
| 773 | - "--target", | ||
| 774 | 758 | dest="target", | |
| 775 | 759 | default=sys.prefix, | |
| 776 | 760 | help="path to target Python distribution " f'(default: "{sys.prefix}")', | |
@@ -782,7 +766,7 @@ def main(test=False): | |||
| 782 | 766 | action="store_const", | |
| 783 | 767 | const=True, | |
| 784 | 768 | default=False, | |
| 785 | - help="install package (this is the default action)", | ||
| 769 | + help="install a given package wheel (otherwise use pip)", | ||
| 786 | 770 | ) | |
| 787 | 771 | parser.add_argument( | |
| 788 | 772 | "-u", | |
@@ -800,7 +784,7 @@ def main(test=False): | |||
| 800 | 784 | action="store_const", | |
| 801 | 785 | const=True, | |
| 802 | 786 | default=False, | |
| 803 | - help="show reverse dependancies of the package", | ||
| 787 | + help="show reverse dependancies of the given package[option]. {unbold}wppm -r pytest[test]{unbold}", | ||
| 804 | 788 | ) | |
| 805 | 789 | parser.add_argument( | |
| 806 | 790 | "-p", | |
@@ -809,15 +793,14 @@ def main(test=False): | |||
| 809 | 793 | action="store_const", | |
| 810 | 794 | const=True, | |
| 811 | 795 | default=False, | |
| 812 | - help="show dependancies of the package", | ||
| 796 | + help="show dependancies of the given package[option]. {unbold}wppm -p pandas[test]{unbold}", | ||
| 813 | 797 | ) | |
| 814 | 798 | parser.add_argument( | |
| 815 | 799 | "-l", | |
| 816 | - "--levels_of_depth", | ||
| 817 | - dest="levels_of_depth", | ||
| 800 | + dest="levels", | ||
| 818 | 801 | type=int, | |
| 819 | 802 | default=2, | |
| 820 | - help="show l levels_of_depth", | ||
| 803 | + help="show l levels of depth of hierarchy from given package", | ||
| 821 | 804 | ) | |
| 822 | 805 | parser.add_argument( | |
| 823 | 806 | "-ls", | |
@@ -826,7 +809,7 @@ def main(test=False): | |||
| 826 | 809 | action="store_const", | |
| 827 | 810 | const=True, | |
| 828 | 811 | default=False, | |
| 829 | - help="list packages matching the given regular expression", | ||
| 812 | + help="list packages matching the given expression. {unbold}wppm -ls{unbold}", | ||
| 830 | 813 | ) | |
| 831 | 814 | parser.add_argument( | |
| 832 | 815 | "-lsa", | |
@@ -835,7 +818,7 @@ def main(test=False): | |||
| 835 | 818 | action="store_const", | |
| 836 | 819 | const=True, | |
| 837 | 820 | default=False, | |
| 838 | - help="list all detail of packages matching the given regular expression (pip inspect)", | ||
| 821 | + help="list details of packages matching the given regular expression (pip inspect)", | ||
| 839 | 822 | ) | |
| 840 | 823 | parser.add_argument( | |
| 841 | 824 | "-v", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments