diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-14 05:27:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-14 05:27:49 +0000 |
commit | fec49995726e5404f81769a5e229bdca2ed28909 (patch) | |
tree | 41bafae6cea7647fc2416a8752c1fd46f9f9cf93 /python-tokenizers.spec | |
parent | 5bc96b89adc3792588ca594c7d4c6c56508ba5f9 (diff) |
automatic import of python-tokenizers
Diffstat (limited to 'python-tokenizers.spec')
-rw-r--r-- | python-tokenizers.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python-tokenizers.spec b/python-tokenizers.spec index b37bce0..a356bee 100644 --- a/python-tokenizers.spec +++ b/python-tokenizers.spec @@ -36,6 +36,17 @@ Summary: %{pkg_summary} %{pkg_description} %prep +# 设置 cargo 镜像源 +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" +EOF + %autosetup -p1 -n %{pypi_name}-%{pypi_version} %build |