Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 97 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ same-file = "1.0.6"
time = "0.3.17"
url = "2.5.0"
unicode-xid = { version = "0.2.4", optional = true }
arwen = "0.0.2"

# cli
clap = { version = "4.0.0", features = [
Expand Down
3 changes: 1 addition & 2 deletions guide/src/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ If you are publishing to PyPI, you can use `--compatibility pypi` to allow only
maturin can check the generated library for manylinux compliance (an auditwheel reimplementation) and gives the wheel the proper platform tag.

- If your system's glibc is too new, it will assign the `linux` tag.
- If you link other shared libraries, maturin will try to bundle them within the wheel, note that this requires [patchelf](https://github.com/NixOS/patchelf),
which can be installed along with maturin from PyPI: `pip install maturin[patchelf]`.
- If you link other shared libraries, maturin will try to bundle them within the wheel.

You can also manually disable those checks and directly use native linux target with `--manylinux off`.

Expand Down
3 changes: 0 additions & 3 deletions guide/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ pipx install maturin
There are some extra dependencies for certain scenarios:

* `zig`: use zig as linker for easier cross compiling and manylinux compliance.
* `patchelf`: repair wheels that links other shared libraries.

For example, to install patchelf dependencies: `pipx install maturin[patchelf]`.

> **Note**
>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dynamic = ["version"]

[project.optional-dependencies]
zig = ["ziglang>=0.10.0,<0.13.0"]
patchelf = ["patchelf"]
patchelf = []

[project.urls]
"Source Code" = "https://github.com/PyO3/maturin"
Expand Down
2 changes: 1 addition & 1 deletion src/auditwheel/audit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn get_default_platform_policies() -> Vec<Policy> {
/// manylinux/musllinux compliance.
///
/// If `platform_tag`, is None, it returns the the highest matching manylinux/musllinux policy
/// and whether we need to repair with patchelf,, or `linux` if nothing else matches.
/// and whether we need to repair with arwen, or `linux` if nothing else matches.
/// It will error for bogus cases, e.g. if libpython is linked.
///
/// If a specific manylinux/musllinux version is given, compliance is checked and a warning printed if
Expand Down
Loading