]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Re-enabling manylinux2014 builds. (#52)
authorNicolas Patry <patry.nicolas@protonmail.com>
Wed, 2 Nov 2022 09:31:45 +0000 (10:31 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 09:31:45 +0000 (10:31 +0100)
* Debugging creating manylinux release.

* Using git-cli to reduce memory usage.

* Fixed it.

bindings/python/build-wheels.sh

index 493286ffe40f42b7ae3bef79a30ee09f7e1e11cf..be06e5f8844e8800562917000a1db4f335de711f 100755 (executable)
@@ -7,6 +7,8 @@ then
 fi
 
 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
     export PYTHON_SYS_EXECUTABLE="$PYBIN/python"