mytestcli1234321 0.1.5__py3-none-win_amd64.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.
@@ -0,0 +1,46 @@
1
+ import os
2
+ import subprocess
3
+ import sys
4
+ import platform
5
+
6
+
7
+ def main():
8
+ system = platform.system().lower()
9
+ machine = platform.machine().lower()
10
+
11
+ arch_map = {
12
+ "x86_64": "x86_64",
13
+ "amd64": "x86_64",
14
+ "aarch64": "aarch64",
15
+ "arm64": "aarch64",
16
+ }
17
+ arch = arch_map.get(machine)
18
+
19
+ if system == "windows":
20
+ binary_name = "mytestcli1234321.exe"
21
+ else:
22
+ binary_name = "mytestcli1234321"
23
+
24
+ if not arch:
25
+ print(
26
+ f"mytestcli1234321: unsupported architecture {machine}\n"
27
+ f"supported architectures: {', '.join(arch_map.keys())}",
28
+ file=sys.stderr,
29
+ )
30
+ sys.exit(1)
31
+
32
+ binary_path = os.path.join(os.path.dirname(__file__), "bin", binary_name)
33
+
34
+ if not os.path.isfile(binary_path):
35
+ print(
36
+ f"mytestcli1234321: binary not found at {binary_path}\n"
37
+ f"try reinstalling: pip install mytestcli1234321",
38
+ file=sys.stderr,
39
+ )
40
+ sys.exit(1)
41
+
42
+ if system == "windows":
43
+ proc = subprocess.run([binary_path] + sys.argv[1:])
44
+ sys.exit(proc.returncode)
45
+ else:
46
+ os.execv(binary_path, [binary_path] + sys.argv[1:])
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.1
2
+ Name: mytestcli1234321
3
+ Version: 0.1.5
4
+ Summary: Install mytestcli1234321 — native binary distributed via PyPI
5
+ Requires-Python: >=3.7
@@ -0,0 +1,6 @@
1
+ mytestcli1234321/bin/mytestcli1234321.exe,sha256=DhqNlsbx3HUodRhy9P98qonUvTvK-9l2AYXegSMOmQM,9809920
2
+ mytestcli1234321/__init__.py,sha256=MQMSIP1_DJK0KjP-YgggqZPaWQMsICuNNE1aFHgEG-Q,1241
3
+ mytestcli1234321-0.1.5.dist-info/METADATA,sha256=8u0nnGb_Tg-_TC38Vh_sihRZf71K3baSoF-SrNgrx5s,156
4
+ mytestcli1234321-0.1.5.dist-info/WHEEL,sha256=Vq3ehKGVFR4pX5E4o_UuxecARE1FpKCmrJEd-k3n4DM,85
5
+ mytestcli1234321-0.1.5.dist-info/entry_points.txt,sha256=p_b4vValYNmokEeUDmgtkiNPonkMsLWXIxpaZg7AzFo,59
6
+ mytestcli1234321-0.1.5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: shipbin
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mytestcli1234321 = mytestcli1234321:main