From 82d01f7b9915f00755e016eac0ae3a24e19337c0 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 18 Dec 2024 20:36:25 +0800 Subject: [PATCH] Use macro `def_upstream` --- src/recipe/lang/Node.js/common.h | 4 ++-- src/recipe/lang/Python/common.h | 2 +- src/recipe/lang/Ruby.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/recipe/lang/Node.js/common.h b/src/recipe/lang/Node.js/common.h index 2cda149..e1bf40c 100644 --- a/src/recipe/lang/Node.js/common.h +++ b/src/recipe/lang/Node.js/common.h @@ -11,7 +11,7 @@ static SourceProvider_t pl_nodejs_npm_upstream = { - "upstream", "Upstream", "上游默认源", "https://www.npmjs.com/", + def_upstream, "https://www.npmjs.com/", {NotSkip, NA, NA, "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-4.22.0.tgz"} }; @@ -46,7 +46,7 @@ def_sources_n(pl_nodejs); static SourceProvider_t pl_nodejs_binary_release_upstream = { - "upstream", "Upstream", "上游默认源", "https://nodejs.org/", + def_upstream, "https://nodejs.org/", {NotSkip, NA, NA, "https://nodejs.org/dist/v23.4.0/node-v23.4.0.tar.gz"} // 100MB }; diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index 9fac23f..aef71a3 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -12,7 +12,7 @@ static SourceProvider_t pl_python_pypi_upstream = { - "upstream", "Upstream", "上游默认源", "https://pypi.org/", + def_upstream, "https://pypi.org/", {NotSkip, NA, NA, "https://files.pythonhosted.org/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"} // 260MB }; diff --git a/src/recipe/lang/Ruby.c b/src/recipe/lang/Ruby.c index c2709a3..6f70401 100644 --- a/src/recipe/lang/Ruby.c +++ b/src/recipe/lang/Ruby.c @@ -10,7 +10,7 @@ static SourceProvider_t pl_ruby_upstream = { - "upstream", "Upstream", "上游默认源", "https://rubygems.org", + def_upstream, "https://rubygems.org", {NotSkip, NA, NA, "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"} };