auditwheel-emscripten 0.2.1__py3-none-any.whl → 0.2.3__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.
- auditwheel_emscripten/cli/main.py +95 -52
- {auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/METADATA +2 -3
- {auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/RECORD +6 -6
- {auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/WHEEL +0 -0
- {auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/entry_points.txt +0 -0
- {auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import click
|
|
4
4
|
|
|
5
5
|
from .. import function_type, get_exports, get_imports, repair, show
|
|
6
6
|
from ..show import locate_dependency
|
|
7
7
|
from ..wheel_utils import unpack_if_wheel
|
|
8
8
|
|
|
9
|
-
app = typer.Typer()
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def main():
|
|
10
|
+
@click.group(no_args_is_help=True)
|
|
11
|
+
def app():
|
|
14
12
|
"""Auditwheel-like tool for emscripten wheels and shared libraries."""
|
|
15
13
|
|
|
16
14
|
|
|
@@ -43,19 +41,24 @@ def print_dylib(
|
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
@app.command("show")
|
|
44
|
+
@click.argument("wheel_or_so_file", type=click.Path(path_type=Path))
|
|
45
|
+
@click.option(
|
|
46
|
+
"--with-runtime-paths",
|
|
47
|
+
"-r",
|
|
48
|
+
"show_runtime_paths",
|
|
49
|
+
is_flag=True,
|
|
50
|
+
help="Show runtime paths.",
|
|
51
|
+
)
|
|
46
52
|
def _show(
|
|
47
|
-
wheel_or_so_file: Path
|
|
48
|
-
|
|
49
|
-
),
|
|
50
|
-
show_runtime_paths: bool = typer.Option(
|
|
51
|
-
False,
|
|
52
|
-
"-r",
|
|
53
|
-
"--with-runtime-paths",
|
|
54
|
-
help="Show runtime paths.",
|
|
55
|
-
),
|
|
53
|
+
wheel_or_so_file: Path,
|
|
54
|
+
show_runtime_paths: bool,
|
|
56
55
|
):
|
|
57
56
|
"""
|
|
58
57
|
Show shared library dependencies of a wheel or a shared library file.
|
|
58
|
+
|
|
59
|
+
\b
|
|
60
|
+
Arguments:
|
|
61
|
+
WHEEL_OR_SO_FILE: Path to wheel or a shared library file. (required)
|
|
59
62
|
"""
|
|
60
63
|
try:
|
|
61
64
|
libraries = show(wheel_or_so_file)
|
|
@@ -68,25 +71,39 @@ def _show(
|
|
|
68
71
|
|
|
69
72
|
|
|
70
73
|
@app.command("repair")
|
|
74
|
+
@click.argument("wheel_file", type=click.Path(path_type=Path))
|
|
75
|
+
@click.option(
|
|
76
|
+
"--libdir",
|
|
77
|
+
type=click.Path(path_type=Path),
|
|
78
|
+
default="lib",
|
|
79
|
+
help="Path to the directory containing the shared libraries.",
|
|
80
|
+
show_default=True,
|
|
81
|
+
)
|
|
82
|
+
@click.option(
|
|
83
|
+
"--output-dir",
|
|
84
|
+
type=click.Path(path_type=Path),
|
|
85
|
+
default=None,
|
|
86
|
+
help="Directory to output repaired wheel or shared library. (default: overwrite the input file)",
|
|
87
|
+
)
|
|
88
|
+
@click.option(
|
|
89
|
+
"--with-runtime-paths",
|
|
90
|
+
"-r",
|
|
91
|
+
"show_runtime_paths",
|
|
92
|
+
is_flag=True,
|
|
93
|
+
help="Show runtime paths.",
|
|
94
|
+
)
|
|
71
95
|
def _repair(
|
|
72
|
-
wheel_file: Path
|
|
73
|
-
libdir: Path
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
),
|
|
77
|
-
output_dir: Path = typer.Option(
|
|
78
|
-
None,
|
|
79
|
-
help="Directory to output repaired wheel or shared library. (default: overwrite the input file)",
|
|
80
|
-
),
|
|
81
|
-
show_runtime_paths: bool = typer.Option(
|
|
82
|
-
False,
|
|
83
|
-
"-r",
|
|
84
|
-
"--with-runtime-paths",
|
|
85
|
-
help="Show runtime paths.",
|
|
86
|
-
),
|
|
96
|
+
wheel_file: Path,
|
|
97
|
+
libdir: Path,
|
|
98
|
+
output_dir: Path | None,
|
|
99
|
+
show_runtime_paths: bool,
|
|
87
100
|
):
|
|
88
101
|
"""
|
|
89
102
|
Repair a wheel file: copy shared libraries to the wheel directory.
|
|
103
|
+
|
|
104
|
+
\b
|
|
105
|
+
Arguments:
|
|
106
|
+
WHEEL_FILE: Path to wheel file. (required)
|
|
90
107
|
"""
|
|
91
108
|
try:
|
|
92
109
|
repaired_wheel = repair(
|
|
@@ -105,35 +122,54 @@ def _repair(
|
|
|
105
122
|
|
|
106
123
|
|
|
107
124
|
@app.command("copy")
|
|
125
|
+
@click.argument("wheel_file", type=click.Path(path_type=Path))
|
|
126
|
+
@click.option(
|
|
127
|
+
"--libdir",
|
|
128
|
+
type=click.Path(path_type=Path),
|
|
129
|
+
default="lib",
|
|
130
|
+
help="Path to the directory containing the shared libraries.",
|
|
131
|
+
show_default=True,
|
|
132
|
+
)
|
|
133
|
+
@click.option(
|
|
134
|
+
"--output-dir",
|
|
135
|
+
type=click.Path(path_type=Path),
|
|
136
|
+
default=None,
|
|
137
|
+
help="Directory to output repaired wheel or shared library. (default: overwrite the input file)",
|
|
138
|
+
)
|
|
108
139
|
def _copy(
|
|
109
|
-
wheel_file: Path
|
|
110
|
-
libdir: Path
|
|
111
|
-
|
|
112
|
-
help="Path to the directory containing the shared libraries.",
|
|
113
|
-
),
|
|
114
|
-
output_dir: Path = typer.Option(
|
|
115
|
-
None,
|
|
116
|
-
help="Directory to output repaired wheel or shared library. (default: overwrite the input file)",
|
|
117
|
-
),
|
|
140
|
+
wheel_file: Path,
|
|
141
|
+
libdir: Path,
|
|
142
|
+
output_dir: Path | None,
|
|
118
143
|
):
|
|
119
144
|
"""
|
|
120
145
|
[Deprecated] Copy shared libraries to the wheel directory. Works same as `repair`. Use `repair` instead.
|
|
146
|
+
|
|
147
|
+
\b
|
|
148
|
+
Arguments:
|
|
149
|
+
WHEEL_FILE: Path to wheel file. (required)
|
|
121
150
|
"""
|
|
122
151
|
return _repair(wheel_file, libdir, output_dir)
|
|
123
152
|
|
|
124
153
|
|
|
125
154
|
@app.command("exports")
|
|
155
|
+
@click.argument("wheel_or_so_file", type=click.Path(path_type=Path))
|
|
156
|
+
@click.option(
|
|
157
|
+
"--show-type",
|
|
158
|
+
is_flag=True,
|
|
159
|
+
help="Show function type.",
|
|
160
|
+
default=False,
|
|
161
|
+
show_default=True,
|
|
162
|
+
)
|
|
126
163
|
def _exports(
|
|
127
|
-
wheel_or_so_file: Path
|
|
128
|
-
|
|
129
|
-
),
|
|
130
|
-
show_type: bool = typer.Option(
|
|
131
|
-
False,
|
|
132
|
-
help="Show function type.",
|
|
133
|
-
),
|
|
164
|
+
wheel_or_so_file: Path,
|
|
165
|
+
show_type: bool,
|
|
134
166
|
):
|
|
135
167
|
"""
|
|
136
168
|
Show exports of a wheel or a shared library file.
|
|
169
|
+
|
|
170
|
+
\b
|
|
171
|
+
Arguments:
|
|
172
|
+
WHEEL_OR_SO_FILE: Path to wheel or a shared library file. (required)
|
|
137
173
|
"""
|
|
138
174
|
try:
|
|
139
175
|
exports = get_exports(wheel_or_so_file)
|
|
@@ -154,17 +190,24 @@ def _exports(
|
|
|
154
190
|
|
|
155
191
|
|
|
156
192
|
@app.command("imports")
|
|
193
|
+
@click.argument("wheel_or_so_file", type=click.Path(path_type=Path))
|
|
194
|
+
@click.option(
|
|
195
|
+
"--show-type",
|
|
196
|
+
is_flag=True,
|
|
197
|
+
help="Show function type.",
|
|
198
|
+
default=False,
|
|
199
|
+
show_default=True,
|
|
200
|
+
)
|
|
157
201
|
def _imports(
|
|
158
|
-
wheel_or_so_file: Path
|
|
159
|
-
|
|
160
|
-
),
|
|
161
|
-
show_type: bool = typer.Option(
|
|
162
|
-
False,
|
|
163
|
-
help="Show function type.",
|
|
164
|
-
),
|
|
202
|
+
wheel_or_so_file: Path,
|
|
203
|
+
show_type: bool,
|
|
165
204
|
):
|
|
166
205
|
"""
|
|
167
206
|
Show imports of a wheel or a shared library file.
|
|
207
|
+
|
|
208
|
+
\b
|
|
209
|
+
Arguments:
|
|
210
|
+
WHEEL_OR_SO_FILE: Path to wheel or a shared library file. (required)
|
|
168
211
|
"""
|
|
169
212
|
try:
|
|
170
213
|
imports = get_imports(wheel_or_so_file)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: auditwheel_emscripten
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: auditwheel-like tool for Pyodide
|
|
5
5
|
Project-URL: Home, https://github.com/pyodide/auditwheel-emscripten
|
|
6
6
|
Author-email: Gyeongjae Choi <def6488@gmail.com>
|
|
@@ -381,8 +381,7 @@ License-File: LICENSE
|
|
|
381
381
|
Requires-Python: >=3.12
|
|
382
382
|
Requires-Dist: leb128
|
|
383
383
|
Requires-Dist: packaging
|
|
384
|
-
Requires-Dist: pyodide-cli
|
|
385
|
-
Requires-Dist: typer
|
|
384
|
+
Requires-Dist: pyodide-cli>=0.4
|
|
386
385
|
Requires-Dist: wheel
|
|
387
386
|
Provides-Extra: test
|
|
388
387
|
Requires-Dist: pytest; extra == 'test'
|
|
@@ -10,13 +10,13 @@ auditwheel_emscripten/show.py,sha256=i_2bOE-IP3fghGN4Sc5qAm4rIQ7NbvPucpv3G2klE4Y
|
|
|
10
10
|
auditwheel_emscripten/wasm_utils.py,sha256=-IuAWiPPOkWmPpaW4u3tyxttpP0ZTWeKk0VMh1dj384,220
|
|
11
11
|
auditwheel_emscripten/wheel_utils.py,sha256=_uh8MiKYpjtBcpOE5bG2vEfh9eXlZhz-nMMVo6-Fvl8,2995
|
|
12
12
|
auditwheel_emscripten/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
auditwheel_emscripten/cli/main.py,sha256=
|
|
13
|
+
auditwheel_emscripten/cli/main.py,sha256=dYNTC96o91sbrsx2qUgUUYVxYkwOBPKVd_2daInLrXc,6134
|
|
14
14
|
auditwheel_emscripten/emscripten_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
auditwheel_emscripten/emscripten_tools/diagnostics.py,sha256=fG8kS7BByJKwC3JJrfJc0TB1EDV4W--LQwcf4fnN0GI,7072
|
|
16
16
|
auditwheel_emscripten/emscripten_tools/utils.py,sha256=sAcW8WaxfN0lNA64y9d0_CsdfYecV_YUcN6nrDrMmMs,3316
|
|
17
17
|
auditwheel_emscripten/emscripten_tools/webassembly.py,sha256=ppyx_lzgtve2hCDn8jQn1Wto_2pGv-Kk-CcOhqUB8NQ,17408
|
|
18
|
-
auditwheel_emscripten-0.2.
|
|
19
|
-
auditwheel_emscripten-0.2.
|
|
20
|
-
auditwheel_emscripten-0.2.
|
|
21
|
-
auditwheel_emscripten-0.2.
|
|
22
|
-
auditwheel_emscripten-0.2.
|
|
18
|
+
auditwheel_emscripten-0.2.3.dist-info/METADATA,sha256=505SWgmOFXDaH1u7xokXw-KftEKjmR1UK_aqAwcA-wg,26956
|
|
19
|
+
auditwheel_emscripten-0.2.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
20
|
+
auditwheel_emscripten-0.2.3.dist-info/entry_points.txt,sha256=Jok5wALksOWKJv8BRV2Riozxts_stW2n-ud9uHTNCB8,62
|
|
21
|
+
auditwheel_emscripten-0.2.3.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
22
|
+
auditwheel_emscripten-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
{auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{auditwheel_emscripten-0.2.1.dist-info → auditwheel_emscripten-0.2.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|