From 9331880e0d78974dbb137b0219186f6aaebf01ef Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 25 Oct 2022 09:51:47 +0800 Subject: [PATCH] Pass `--locked` to Cargo when bootstrap from sdist Closes #1211 --- Changelog.md | 1 + setup.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index e728857f8..8e1ec7360 100644 --- a/Changelog.md +++ b/Changelog.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Add Python metadata support for `license-file` field of `Cargo.toml` in [#1195](https://github.com/PyO3/maturin/pull/1195) * Upgrade to clap 4.0 in [#1197](https://github.com/PyO3/maturin/pull/1197). This bumps MSRV to 1.61.0. * Fix macOS `LC_ID_DYLIB` for abi3 wheels in [#1208](https://github.com/PyO3/maturin/pull/1208) +* Pass `--locked` to Cargo when bootstrap from sdist in [#1212](https://github.com/PyO3/maturin/pull/1212) ## [0.13.6] - 2022-10-08 diff --git a/setup.py b/setup.py index 1c1525858..a046a4609 100644 --- a/setup.py +++ b/setup.py @@ -74,7 +74,9 @@ def finalize_options(self): python_requires=">=3.7", cmdclass={"bdist_wheel": bdist_wheel}, packages=["maturin"], - rust_extensions=[RustBin("maturin", args=cargo_args)], + rust_extensions=[ + RustBin("maturin", args=cargo_args, cargo_manifest_args=["--locked"]) + ], classifiers=[ "Topic :: Software Development :: Build Tools", "Programming Language :: Rust",