]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Adding support for Python 3.11 on Linux + fix the source build wheel. (#125)
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 12 Dec 2022 09:24:49 +0000 (10:24 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 09:24:49 +0000 (10:24 +0100)
bindings/python/MANIFEST.in [new file with mode: 0644]
bindings/python/build-wheels.sh

diff --git a/bindings/python/MANIFEST.in b/bindings/python/MANIFEST.in
new file mode 100644 (file)
index 0000000..d0de7b5
--- /dev/null
@@ -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 *
index be06e5f8844e8800562917000a1db4f335de711f..c9d7bf82070f0648c5b460f50e7dd306e8f4bb74 100755 (executable)
@@ -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