cmeel 0.52.1__py3-none-any.whl → 0.53.1__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.
- cmeel/pth.py +5 -1
- cmeel/utils.py +5 -5
- {cmeel-0.52.1.dist-info → cmeel-0.53.1.dist-info}/METADATA +2 -2
- {cmeel-0.52.1.dist-info → cmeel-0.53.1.dist-info}/RECORD +7 -7
- {cmeel-0.52.1.dist-info → cmeel-0.53.1.dist-info}/LICENSE +0 -0
- {cmeel-0.52.1.dist-info → cmeel-0.53.1.dist-info}/WHEEL +0 -0
- {cmeel-0.52.1.dist-info → cmeel-0.53.1.dist-info}/entry_points.txt +0 -0
cmeel/pth.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"""Append cmeel prefix sitelib to sys.path."""
|
|
2
|
+
import os
|
|
2
3
|
import sys
|
|
3
4
|
from pathlib import Path
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
CMEEL_PREFIX = "cmeel.prefix"
|
|
7
|
+
SITELIB = os.sep.join( # noqa: PTH118
|
|
8
|
+
["lib", "python" + ".".join(sys.version.split(".")[:2]), "site-packages"],
|
|
9
|
+
)
|
|
6
10
|
|
|
7
11
|
sys.path.append(str(Path(__file__).parent.parent / CMEEL_PREFIX / SITELIB))
|
|
8
12
|
|
cmeel/utils.py
CHANGED
|
@@ -20,10 +20,7 @@ PATCH_IGNORE = [
|
|
|
20
20
|
"The next patch would delete",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
|
-
EXECUTABLE = """
|
|
24
|
-
from cmeel.run import cmeel_run
|
|
25
|
-
cmeel_run()
|
|
26
|
-
"""
|
|
23
|
+
EXECUTABLE = ["#!python", "from cmeel.run import cmeel_run", "cmeel_run()"]
|
|
27
24
|
|
|
28
25
|
|
|
29
26
|
class PatchError(CalledProcessError):
|
|
@@ -176,7 +173,10 @@ def expose_bin(install: Path, wheel_dir: Path, distribution: str):
|
|
|
176
173
|
with fn.open("rb") as fo:
|
|
177
174
|
is_script = fo.read(2) == b"#!"
|
|
178
175
|
with executable.open("w") as fe:
|
|
179
|
-
|
|
176
|
+
content = fn.read_text().split("\n") if is_script else EXECUTABLE
|
|
177
|
+
if "python" in content[0]:
|
|
178
|
+
content = ["#!python", *content[1:]]
|
|
179
|
+
fe.write("\n".join(content))
|
|
180
180
|
executable.chmod(0o755)
|
|
181
181
|
|
|
182
182
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cmeel
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.53.1
|
|
4
4
|
Summary: Create Wheel from CMake projects
|
|
5
5
|
Home-page: https://github.com/cmake-wheel/cmeel
|
|
6
6
|
License: BSD-2-Clause
|
|
@@ -25,7 +25,7 @@ Requires-Dist: cmake (>=3.27.7,<4.0.0) ; extra == "build"
|
|
|
25
25
|
Requires-Dist: git-archive-all (>=1.23.1,<2.0.0) ; extra == "build"
|
|
26
26
|
Requires-Dist: packaging (>=23.2,<24.0) ; extra == "build"
|
|
27
27
|
Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
|
|
28
|
-
Requires-Dist: wheel (>=0.41.1,<0.
|
|
28
|
+
Requires-Dist: wheel (>=0.41.1,<0.43.0) ; extra == "build"
|
|
29
29
|
Project-URL: Documentation, https://cmeel.readthedocs.io/
|
|
30
30
|
Project-URL: changelog, https://github.com/cmake-wheel/cmeel/blob/main/CHANGELOG.md
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
@@ -9,14 +9,14 @@ cmeel/docker.py,sha256=wT-VZuGKj1wcdldwgsYcWmJK_rjo2Eh1USEDMOmlsBU,2775
|
|
|
9
9
|
cmeel/env.py,sha256=4AymbjlT3iNqYeeI70u3ZQMpiQfYo2vbNoZ4F15QbYQ,1235
|
|
10
10
|
cmeel/impl.py,sha256=XBVIWmi17a3fcFyYvQA7cS3xeglwjVRQUj25IQOfg0k,6376
|
|
11
11
|
cmeel/metadata.py,sha256=1zFAmsW4xzeBZxGhro6XXLhWUJ2ZRLXxTelumzyWaRk,8606
|
|
12
|
-
cmeel/pth.py,sha256=
|
|
12
|
+
cmeel/pth.py,sha256=INOtsqh_vaSgoO9qdbs5Rg-2vhZH4D-sEeNvTqhJ6Bw,521
|
|
13
13
|
cmeel/release.py,sha256=j8vxeAevtUFfwlV4gXGJ6tWqR-CNHn_d69FRhgeWkjY,1356
|
|
14
14
|
cmeel/run.py,sha256=sD2Is7MEb5yIUu6dMjzyOJgb-ErJh-EBII9WzL13zco,743
|
|
15
15
|
cmeel/sdist.py,sha256=DA5h9IrQfhuoQucYfv73S8jpKNY2ThfIrVSKSvsJ5ec,1961
|
|
16
|
-
cmeel/utils.py,sha256=
|
|
16
|
+
cmeel/utils.py,sha256=1q-iQdhxNXluQoUPME1k34YClFUQ4KSwMcIHpREYHEY,8114
|
|
17
17
|
cmeel.pth,sha256=CD-QdG4ceUgq5wIEJZpipOSZQF8apq7i9u9RhsBWbc8,17
|
|
18
|
-
cmeel-0.
|
|
19
|
-
cmeel-0.
|
|
20
|
-
cmeel-0.
|
|
21
|
-
cmeel-0.
|
|
22
|
-
cmeel-0.
|
|
18
|
+
cmeel-0.53.1.dist-info/LICENSE,sha256=4QHEuqIDbscybBc21CcazwRjix-rV-AH2QAZ4IqxlzQ,1324
|
|
19
|
+
cmeel-0.53.1.dist-info/METADATA,sha256=vjqAVd6KdeWmXeBCN9MHpUMFRCuiS7WPjcjQOnWpPcQ,5104
|
|
20
|
+
cmeel-0.53.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
21
|
+
cmeel-0.53.1.dist-info/entry_points.txt,sha256=AiK0nCTi1LpRXxyiSCcbPsLYIpSvYW8GF7jcllMIl1U,45
|
|
22
|
+
cmeel-0.53.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|