diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-14 07:44:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-14 07:44:55 +0000 |
commit | aeacf99067961b344aa1a9978995431c91a2dd20 (patch) | |
tree | d018c712e3c70b7bc4ffc0115d66e1f90106c0a0 | |
parent | a8a19f7f716576e043f3441142d087ff7a2324bb (diff) |
automatic import of python-safetensors
-rw-r--r-- | python-safetensors.spec | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/python-safetensors.spec b/python-safetensors.spec index b7ae3d9..c900bbf 100644 --- a/python-safetensors.spec +++ b/python-safetensors.spec @@ -3,6 +3,7 @@ %global pkg_summary Simple, safe way to store and distribute tensors %global pkg_description %{expand: %{pkg_summary}} +%global debug_package %{nil} Name: python-%{pypi_name} Version: %{pypi_version} @@ -40,11 +41,17 @@ mkdir -vp ${CARGO_HOME:-$HOME/.cargo} cat << EOF | tee -a ${CARGO_HOME:-$HOME/.cargo}/config [source.crates-io] -replace-with = 'mirror' - -[source.mirror] -registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git" +replace-with = 'rsproxy-sparse' +[source.rsproxy] +registry = "https://rsproxy.cn/crates.io-index" +[source.rsproxy-sparse] +registry = "sparse+https://rsproxy.cn/index/" +[registries.rsproxy] +index = "https://rsproxy.cn/crates.io-index" +[net] +git-fetch-with-cli = true EOF + %autosetup -p1 -n %{pypi_name}-%{pypi_version} %build |