From: Nicolas Patry Date: Mon, 12 Dec 2022 09:24:49 +0000 (+0100) Subject: Adding support for Python 3.11 on Linux + fix the source build wheel. (#125) X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f5e1a3d0b82b4d29f69f5c2d547dddba79286f4e;p=safetensors.git Adding support for Python 3.11 on Linux + fix the source build wheel. (#125) --- 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