portable-python 2.0.1__py3-none-any.whl → 2.0.2__py3-none-any.whl

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.
@@ -16,7 +16,7 @@ import os
16
16
  import pathlib
17
17
  import re
18
18
  from string import Template
19
- from typing import ClassVar, List
19
+ from typing import ClassVar
20
20
 
21
21
  import runez
22
22
  from runez.http import RestClient
@@ -301,9 +301,9 @@ class BuildSetup:
301
301
  class ModuleCollection:
302
302
  """Models a collection of sub-modules, with auto-detection and reporting as to what is active and why"""
303
303
 
304
- candidates: List["ModuleBuilder"] = None
304
+ candidates: list["ModuleBuilder"] = None
305
305
  desired: str = None
306
- selected: List["ModuleBuilder"] = None
306
+ selected: list["ModuleBuilder"] = None
307
307
 
308
308
  def __init__(self, parent_module: "ModuleBuilder", desired=None):
309
309
  self.selected = []
@@ -199,6 +199,21 @@ class Cpython(PythonBuilder):
199
199
  if self.version >= "3.14" and PPG.target.is_macos:
200
200
  yield f"{self.deps_lib_dir}/libmpdec.a"
201
201
 
202
+ def xenv_LIBREADLINE_LIBS(self):
203
+ if self.version >= "3.12" and self.active_module(Readline):
204
+ # Since 3.12 (gh-90005), ./configure asks pkg-config how to link the readline module,
205
+ # and no longer probes for the termcap library that readline needs. It states:
206
+ # "We now assume that libreadline or readline.pc provide correct linker information".
207
+ # Our readline is static, and its readline.pc mentions ncurses in 'Requires.private',
208
+ # which `pkg-config --libs` does not report (only `--libs --static` does). readline
209
+ # then gets linked without ncurses: it compiles, but fails to import at the end of
210
+ # the build with "undefined symbol: UP". So state the full static link line ourselves
211
+ # (same as `pkg-config --static --libs readline`), ./configure honors <LIB>_LIBS for
212
+ # exactly this purpose (gh-94801).
213
+ yield f"-L{self.deps_lib_dir}"
214
+ yield "-lreadline"
215
+ yield "-lncursesw"
216
+
202
217
  @runez.cached_property
203
218
  def prefix_lib_folder(self):
204
219
  """Path to <prefix>/lib/pythonM.m folder"""
@@ -233,8 +233,7 @@ class CLibInfo(Trackable):
233
233
 
234
234
  short_name = self.basename
235
235
  if not short_name.startswith("libpython"):
236
- if short_name.startswith("lib"):
237
- short_name = short_name[3:]
236
+ short_name = short_name.removeprefix("lib")
238
237
 
239
238
  short_name = short_name.partition(".")[0]
240
239
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portable-python
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Portable python binaries
5
5
  Author-email: Zoran Simic <zoran@simicweb.com>
6
6
  License-Expression: MIT
@@ -1,20 +1,18 @@
1
- portable_python/__init__.py,sha256=bVZVIcF1oq_-Lb5pZm665bd12oDmyIbFfM48NyZvL8U,31601
1
+ portable_python/__init__.py,sha256=G9isyObsgg2MuNx_I33UoP1mqzyWn5NNIJ5e_SagoIU,31595
2
2
  portable_python/__main__.py,sha256=fjtkudRFxLSLTSqzkWYnQLMGRG0BRUc6GeqY201taCE,149
3
3
  portable_python/cli.py,sha256=hml834t9RMjQ1s5-DwiEJhdjI8IfsObTLzU8jMbhze0,7610
4
4
  portable_python/config.py,sha256=D-Fr1VV-KKFMHzhrqselEMujHoErSYZ_zWmK_TKsua4,13726
5
- portable_python/cpython.py,sha256=V0_B2nWv0H8enXGdU38yRgZyO7d-JkC0DWlTMsI9K9M,18214
6
- portable_python/inspector.py,sha256=LvGhat2rqwgse0r90dZxEExRYWSW4TrxsMXxYScrF3k,21355
5
+ portable_python/cpython.py,sha256=JDz6wcvl-JIGGOZubzPo_np3mVWghbTRTwr8dsSEi_w,19243
6
+ portable_python/inspector.py,sha256=d_PvZPlBPC8Zu4t5-Avmrz0ffGxjIcfLhQ_gZfL9iZ4,21322
7
7
  portable_python/tracking.py,sha256=308K--adSivstOqnD9oczlY77FZV_cgNy7xL8BS9ROg,1978
8
8
  portable_python/versions.py,sha256=BTxYrH6xGFQIXZ8Xv8rHMpVT76TKmE_J7AXOepCE5Tc,7171
9
9
  portable_python/external/__init__.py,sha256=jQCp0sEgj7ZjuWYc2zJ3Bm_W5qdT0OPNAe4JIPaQLY8,801
10
10
  portable_python/external/_inspect.py,sha256=ASminI7HBuHAuFcvX3mkBYf7lCDILqiPrKkhKkQ8w94,3744
11
11
  portable_python/external/xcpython.py,sha256=AnelZlU5_Z08dp0Itej3AZ9KLcIE07Fidlrp3WWs87k,16744
12
12
  portable_python/external/xtkinter.py,sha256=rvIHeaUmp2O7fJeYxu4FH2tzFA8Ajw55Nhqg2yFOt8I,3832
13
- portable_python-2.0.1.dist-info/licenses/LICENSE,sha256=BB27gUWIcmc-bauY_M6COCMtiy4hN2mou1RdadlbXbs,1068
14
- portable_python-2.0.1.dist-info/METADATA,sha256=KXL6TT3WrqOGEcmfrOcaGOOQXENK8PXve4UBPIaUOJ4,9850
15
- portable_python-2.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
16
- portable_python-2.0.1.dist-info/entry_points.txt,sha256=Zo8HR39evgAgm4e2UhenD7kkpJvEXp_VB4aIrL_3_VY,66
17
- portable_python-2.0.1.dist-info/scm_file_list.json,sha256=JEWL2bgKhM5MfDey6Ck0z28f5QpCpC_rsqh4pXnOQHo,2862
18
- portable_python-2.0.1.dist-info/scm_version.json,sha256=NLVXUR8TKaY95dqXtJYGWJutY6pngwPq1sEo-b8In2Y,160
19
- portable_python-2.0.1.dist-info/top_level.txt,sha256=S203pfaAC8FDZvrHsCWWua_9ZfSDEDCD1w90zzYFhOU,16
20
- portable_python-2.0.1.dist-info/RECORD,,
13
+ portable_python-2.0.2.dist-info/licenses/LICENSE,sha256=BB27gUWIcmc-bauY_M6COCMtiy4hN2mou1RdadlbXbs,1068
14
+ portable_python-2.0.2.dist-info/METADATA,sha256=OJOA5YeSj1kPiMqQonbApHpeUBKteq4pyj-LDMGTQG0,9850
15
+ portable_python-2.0.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
16
+ portable_python-2.0.2.dist-info/entry_points.txt,sha256=Zo8HR39evgAgm4e2UhenD7kkpJvEXp_VB4aIrL_3_VY,66
17
+ portable_python-2.0.2.dist-info/top_level.txt,sha256=S203pfaAC8FDZvrHsCWWua_9ZfSDEDCD1w90zzYFhOU,16
18
+ portable_python-2.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (84.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,93 +0,0 @@
1
- {
2
- "files": [
3
- "tox.ini",
4
- "Dockerfile",
5
- "LICENSE",
6
- "pyproject.toml",
7
- "lock-deps.sh",
8
- "requirements.txt",
9
- "portable-python.yml",
10
- "SECURITY.md",
11
- "README.rst",
12
- ".dockerignore",
13
- "CLAUDE.md",
14
- "MANIFEST.in",
15
- ".gitignore",
16
- "scripts/portable-python.sh",
17
- "scripts/bashrc.sh",
18
- "scripts/check_okf.py",
19
- "docs/overview.md",
20
- "docs/log.md",
21
- "docs/changelog.md",
22
- "docs/release.md",
23
- "docs/index.md",
24
- "docs/configuration/portable-python-yml.md",
25
- "docs/configuration/index.md",
26
- "docs/architecture/cpython.md",
27
- "docs/architecture/config.md",
28
- "docs/architecture/python-builder.md",
29
- "docs/architecture/ppg.md",
30
- "docs/architecture/build-setup.md",
31
- "docs/architecture/python-inspector.md",
32
- "docs/architecture/module-builder.md",
33
- "docs/architecture/index.md",
34
- "docs/modules/external-modules.md",
35
- "docs/modules/index.md",
36
- "docs/guides/bump-python-support.md",
37
- "docs/guides/local-development.md",
38
- "docs/guides/ci-cd.md",
39
- "docs/guides/fix-a-portability-issue.md",
40
- "docs/guides/add-an-external-module.md",
41
- "docs/guides/bump-components.md",
42
- "docs/guides/index.md",
43
- "docs/guides/add-a-config-option.md",
44
- "docs/guides/build-a-portable-python.md",
45
- "docs/concepts/ppp-marker.md",
46
- "docs/concepts/folder-masking.md",
47
- "docs/concepts/build-layout.md",
48
- "docs/concepts/portability.md",
49
- "docs/concepts/telltale-detection.md",
50
- "docs/concepts/index.md",
51
- "docs/concepts/static-linking.md",
52
- "docs/cli/lib-auto-correct.md",
53
- "docs/cli/diagnostics.md",
54
- "docs/cli/inspect.md",
55
- "docs/cli/list.md",
56
- "docs/cli/recompress.md",
57
- "docs/cli/build.md",
58
- "docs/cli/index.md",
59
- "docs/cli/build-report.md",
60
- "src/portable_python/__init__.py",
61
- "src/portable_python/versions.py",
62
- "src/portable_python/config.py",
63
- "src/portable_python/cpython.py",
64
- "src/portable_python/inspector.py",
65
- "src/portable_python/tracking.py",
66
- "src/portable_python/cli.py",
67
- "src/portable_python/__main__.py",
68
- "src/portable_python/external/__init__.py",
69
- "src/portable_python/external/xtkinter.py",
70
- "src/portable_python/external/xcpython.py",
71
- "src/portable_python/external/_inspect.py",
72
- "retired/README.md",
73
- "retired/toolchain.py",
74
- ".claude/settings.json",
75
- "tests/test_failed.py",
76
- "tests/__init__.py",
77
- "tests/sample-config2.yml",
78
- "tests/test_prefix.py",
79
- "tests/test_cleanup.py",
80
- "tests/test_build.py",
81
- "tests/test_recompress.py",
82
- "tests/test_setup.py",
83
- "tests/sample-config1.yml",
84
- "tests/test_invoker.py",
85
- "tests/test_report.py",
86
- "tests/conftest.py",
87
- "tests/test_list.py",
88
- "tests/sample-incomplete.yml",
89
- "tests/test_inspector.py",
90
- ".github/workflows/release.yml",
91
- ".github/workflows/tests.yml"
92
- ]
93
- }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "2.0.1",
3
- "distance": 0,
4
- "node": "g2543c9f61b50974c844452484758fafeb52551a9",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-06-24"
8
- }