maturin 1.4.0__py3-none-win_arm64.whl → 1.5.1__py3-none-win_arm64.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.
Potentially problematic release.
This version of maturin might be problematic. Click here for more details.
maturin/__init__.py
CHANGED
|
@@ -8,6 +8,7 @@ On windows, apparently pip's subprocess handling sets stdout to some windows enc
|
|
|
8
8
|
even though the terminal supports utf8. Writing directly to the binary stdout buffer avoids encoding errors due to
|
|
9
9
|
maturin's emojis.
|
|
10
10
|
"""
|
|
11
|
+
|
|
11
12
|
from __future__ import annotations
|
|
12
13
|
|
|
13
14
|
import os
|
|
@@ -62,22 +63,26 @@ def _build_wheel(
|
|
|
62
63
|
) -> str:
|
|
63
64
|
# PEP 517 specifies that only `sys.executable` points to the correct
|
|
64
65
|
# python interpreter
|
|
65
|
-
|
|
66
|
+
base_command = [
|
|
66
67
|
"maturin",
|
|
67
68
|
"pep517",
|
|
68
69
|
"build-wheel",
|
|
69
70
|
"-i",
|
|
70
71
|
sys.executable,
|
|
71
|
-
"--compatibility",
|
|
72
|
-
"off",
|
|
73
72
|
]
|
|
74
|
-
|
|
73
|
+
options = _additional_pep517_args()
|
|
75
74
|
if editable:
|
|
76
|
-
|
|
75
|
+
options.append("--editable")
|
|
77
76
|
|
|
78
77
|
pep517_args = get_maturin_pep517_args(config_settings)
|
|
79
78
|
if pep517_args:
|
|
80
|
-
|
|
79
|
+
options.extend(pep517_args)
|
|
80
|
+
|
|
81
|
+
if "--compatibility" not in options and "--manylinux" not in options:
|
|
82
|
+
# default to off if not otherwise specified
|
|
83
|
+
options = ["--compatibility", "off", *options]
|
|
84
|
+
|
|
85
|
+
command = [*base_command, *options]
|
|
81
86
|
|
|
82
87
|
print("Running `{}`".format(" ".join(command)))
|
|
83
88
|
sys.stdout.flush()
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: maturin
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.1
|
|
4
4
|
Classifier: Topic :: Software Development :: Build Tools
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -34,10 +34,8 @@ _formerly pyo3-pack_
|
|
|
34
34
|
[](https://cirrus-ci.com/github/PyO3/maturin)
|
|
35
35
|
[](https://gitter.im/PyO3/Lobby)
|
|
36
36
|
|
|
37
|
-
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings as well as rust binaries as python packages.
|
|
38
|
-
|
|
39
|
-
This project is meant as a zero configuration replacement for [setuptools-rust](https://github.com/PyO3/setuptools-rust) and [milksnake](https://github.com/getsentry/milksnake).
|
|
40
|
-
It supports building wheels for python 3.7+ on windows, linux, mac and freebsd, can upload them to [pypi](https://pypi.org/) and has basic pypy and graalpy support.
|
|
37
|
+
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings as well as rust binaries as python packages with minimal configuration.
|
|
38
|
+
It supports building wheels for python 3.8+ on windows, linux, mac and freebsd, can upload them to [pypi](https://pypi.org/) and has basic pypy and graalpy support.
|
|
41
39
|
|
|
42
40
|
Check out the [User Guide](https://maturin.rs/)!
|
|
43
41
|
|
|
@@ -49,7 +47,7 @@ You can either download binaries from the [latest release](https://github.com/Py
|
|
|
49
47
|
pipx install maturin
|
|
50
48
|
```
|
|
51
49
|
|
|
52
|
-
>
|
|
50
|
+
> [!NOTE]
|
|
53
51
|
>
|
|
54
52
|
> `pip install maturin` should also work if you don't want to use pipx.
|
|
55
53
|
|
|
@@ -167,7 +165,7 @@ my-project
|
|
|
167
165
|
└── lib.rs
|
|
168
166
|
```
|
|
169
167
|
|
|
170
|
-
>
|
|
168
|
+
> [!NOTE]
|
|
171
169
|
>
|
|
172
170
|
> This structure is recommended to avoid [a common `ImportError` pitfall](https://github.com/PyO3/maturin/issues/490)
|
|
173
171
|
|
|
@@ -281,7 +279,7 @@ The Rust compiler since version 1.64 [requires at least glibc 2.17](https://blog
|
|
|
281
279
|
For publishing, we recommend enforcing the same manylinux version as the image with the manylinux flag, e.g. use `--manylinux 2014` if you are building in `quay.io/pypa/manylinux2014_x86_64`.
|
|
282
280
|
The [PyO3/maturin-action](https://github.com/PyO3/maturin-action) github action already takes care of this if you set e.g. `manylinux: 2014`.
|
|
283
281
|
|
|
284
|
-
maturin contains a reimplementation of auditwheel automatically checks the generated library and gives the wheel the proper.
|
|
282
|
+
maturin contains a reimplementation of auditwheel automatically checks the generated library and gives the wheel the proper platform tag.
|
|
285
283
|
If your system's glibc is too new or you link other shared libraries, it will assign the `linux` tag.
|
|
286
284
|
You can also manually disable those checks and directly use native linux target with `--manylinux off`.
|
|
287
285
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
maturin-1.5.1.dist-info/METADATA,sha256=Qr6vzCwaH8U5sxsMo_gGKBHXUOhr_CAO6RKoMKpqjiQ,18556
|
|
2
|
+
maturin-1.5.1.dist-info/WHEEL,sha256=pcUvCIwN7izqVMzQ0UTPEGuZCuZ02DZp7ocYRRLC5lE,93
|
|
3
|
+
maturin/import_hook.py,sha256=TsZzWauEAC-xPOnuvy3kn25GM2EGqmcuvzdzS-aAHTE,5771
|
|
4
|
+
maturin/__init__.py,sha256=07JZ2f6t_cJ0LT_s23kjqmbDjaZNzP1JLpvYEcmpF2w,6906
|
|
5
|
+
maturin/__main__.py,sha256=pXjh1oJe1m1JmVwsRwvS22kS3qiGkcLD6r7jbNXTFKA,1031
|
|
6
|
+
maturin-1.5.1.data/scripts/maturin.exe,sha256=lAXpQN1p9ZV2H4o3FdgxpBNt0vGNJoEwQJgD6VV7Ky0,16306176
|
|
7
|
+
maturin-1.5.1.dist-info/RECORD,,
|
maturin-1.4.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
maturin-1.4.0.dist-info/METADATA,sha256=YrxlfKqM12ZGu0EyH2hOwa91XqAwtmzozxnbiCVLFgA,18699
|
|
2
|
-
maturin-1.4.0.dist-info/WHEEL,sha256=jp5Vtln_qWS8C8C8HLUDZtceSwscDKzcoAQxjxQb8Tc,93
|
|
3
|
-
maturin/import_hook.py,sha256=TsZzWauEAC-xPOnuvy3kn25GM2EGqmcuvzdzS-aAHTE,5771
|
|
4
|
-
maturin/__init__.py,sha256=nues8BiqPJG1hBgdPTNKd8mlxJhV1H069Ez1G-C-MVU,6720
|
|
5
|
-
maturin/__main__.py,sha256=pXjh1oJe1m1JmVwsRwvS22kS3qiGkcLD6r7jbNXTFKA,1031
|
|
6
|
-
maturin-1.4.0.data/scripts/maturin.exe,sha256=5rUG--blSHcG403xNeurxS-WS9_u8j4aD_bAgitN0O8,16299008
|
|
7
|
-
maturin-1.4.0.dist-info/RECORD,,
|