crogram-pythub 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {crogram_pythub-0.1.0/src/crogram_pythub.egg-info → crogram_pythub-0.1.1}/PKG-INFO +1 -3
  2. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/README.md +0 -2
  3. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/pyproject.toml +1 -1
  4. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1/src/crogram_pythub.egg-info}/PKG-INFO +1 -3
  5. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/cli.py +1 -1
  6. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/gui.py +25 -3
  7. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/LICENSE +0 -0
  8. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/setup.cfg +0 -0
  9. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/crogram_pythub.egg-info/SOURCES.txt +0 -0
  10. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/crogram_pythub.egg-info/dependency_links.txt +0 -0
  11. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/crogram_pythub.egg-info/entry_points.txt +0 -0
  12. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/crogram_pythub.egg-info/top_level.txt +0 -0
  13. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/__init__.py +0 -0
  14. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/__main__.py +0 -0
  15. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/analyzer.py +0 -0
  16. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/bootex.c +0 -0
  17. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/miniz_LICENSE +0 -0
  18. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/miniz_common.h +0 -0
  19. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/miniz_export.h +0 -0
  20. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/miniz_tinfl.c +0 -0
  21. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/bootloader/miniz_tinfl.h +0 -0
  22. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/builder.py +0 -0
  23. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/config.py +0 -0
  24. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/deps.py +0 -0
  25. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/exe_archive.py +0 -0
  26. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/formats.py +0 -0
  27. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/native_builder.py +0 -0
  28. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/pypa.py +0 -0
  29. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/runtime.py +0 -0
  30. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/signing.py +0 -0
  31. {crogram_pythub-0.1.0 → crogram_pythub-0.1.1}/src/pythub/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crogram-pythub
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: 开源的 Python 应用打包工具:一条命令把 Python 应用打包成免装 Python、可直接运行的产物(跨平台、多 Python 版本、多架构),并支持发布到 PyPI
5
5
  Author: CROGRAM
6
6
  License-Expression: MIT
@@ -58,8 +58,6 @@ pip install -e .
58
58
  pip install crogram-pythub
59
59
  ```
60
60
 
61
- ## 服务管理
62
-
63
61
  ## 快速开始
64
62
 
65
63
  ```bash
@@ -34,8 +34,6 @@ pip install -e .
34
34
  pip install crogram-pythub
35
35
  ```
36
36
 
37
- ## 服务管理
38
-
39
37
  ## 快速开始
40
38
 
41
39
  ```bash
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "crogram-pythub"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "开源的 Python 应用打包工具:一条命令把 Python 应用打包成免装 Python、可直接运行的产物(跨平台、多 Python 版本、多架构),并支持发布到 PyPI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crogram-pythub
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: 开源的 Python 应用打包工具:一条命令把 Python 应用打包成免装 Python、可直接运行的产物(跨平台、多 Python 版本、多架构),并支持发布到 PyPI
5
5
  Author: CROGRAM
6
6
  License-Expression: MIT
@@ -58,8 +58,6 @@ pip install -e .
58
58
  pip install crogram-pythub
59
59
  ```
60
60
 
61
- ## 服务管理
62
-
63
61
  ## 快速开始
64
62
 
65
63
  ```bash
@@ -84,7 +84,7 @@ def cmd_build(args) -> int:
84
84
 
85
85
 
86
86
  def cmd_gui(_args) -> int:
87
- from pythub.gui import run
87
+ from pythub.gui import main
88
88
 
89
89
  return run()
90
90
 
@@ -669,12 +669,34 @@ def attach_queue_handler(log_queue: "queue.Queue") -> None:
669
669
  logger.setLevel(logging.INFO)
670
670
 
671
671
 
672
- def run() -> int:
672
+ def _tk_install_hint() -> str:
673
+ """按当前系统返回 Tk 缺失时的安装建议。"""
674
+ if sys.platform == "darwin":
675
+ ver = f"{sys.version_info.major}.{sys.version_info.minor}"
676
+ return (
677
+ f"macOS: brew install python-tk@{ver}(Homebrew 安装的 Python 需单独装 Tk)\n"
678
+ " 或安装 python.org 官方解释器(自带 Tk)"
679
+ )
680
+ if sys.platform == "win32":
681
+ return (
682
+ "Windows: 官方 python.org 安装包默认自带 Tk,重新运行安装程序勾选\n"
683
+ " \"tcl/tk and IDLE\" 组件即可"
684
+ )
685
+ if sys.platform.startswith("linux"):
686
+ return (
687
+ "Linux (Debian/Ubuntu): sudo apt install python3-tk\n"
688
+ " (Fedora/RHEL): sudo dnf install python3-tkinter\n"
689
+ " (Arch): sudo pacman -S tk"
690
+ )
691
+ return "请安装包含 Tk 支持的 Python 解释器"
692
+
693
+
694
+ def main() -> int:
673
695
  if not _TK_OK:
674
696
  print(
675
697
  "错误: 当前 Python 未编译 Tk 支持,无法启动 GUI。\n"
676
698
  f"详情: {_TK_ERROR}\n"
677
- "建议: 安装 python.org 官方解释器或 `brew install python-tk`,"
699
+ f"建议: {_tk_install_hint()}\n"
678
700
  "或改用命令行: pythub build ..."
679
701
  )
680
702
  return 1
@@ -687,4 +709,4 @@ def run() -> int:
687
709
 
688
710
 
689
711
  if __name__ == "__main__":
690
- raise SystemExit(run())
712
+ raise SystemExit(main())
File without changes
File without changes