From f5e1a3d0b82b4d29f69f5c2d547dddba79286f4e Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 12 Dec 2022 10:24:49 +0100 Subject: [PATCH] Adding support for Python 3.11 on Linux + fix the source build wheel. (#125) --- bindings/python/MANIFEST.in | 7 +++++++ bindings/python/build-wheels.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 bindings/python/MANIFEST.in diff --git a/bindings/python/MANIFEST.in b/bindings/python/MANIFEST.in new file mode 100644 index 0000000..d0de7b5 --- /dev/null +++ b/bindings/python/MANIFEST.in @@ -0,0 +1,7 @@ +include Cargo.toml +include pyproject.toml +include rust-toolchain +include ../../LICENSE +recursive-include src * +recursive-include safetensors-lib * +recursive-exclude safetensors-lib/target * diff --git a/bindings/python/build-wheels.sh b/bindings/python/build-wheels.sh index be06e5f..c9d7bf8 100755 --- a/bindings/python/build-wheels.sh +++ b/bindings/python/build-wheels.sh @@ -10,7 +10,7 @@ export PATH="$HOME/.cargo/bin:$PATH" # https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531 echo -e "[net]\ngit-fetch-with-cli = true" > "$HOME/.cargo/config" -for PYBIN in /opt/python/cp{37,38,39,310}*/bin; do +for PYBIN in /opt/python/cp{37,38,39,310,311}*/bin; do export PYTHON_SYS_EXECUTABLE="$PYBIN/python" "${PYBIN}/pip" install -U setuptools-rust setuptools wheel -- 2.43.0