diff --git a/ray-2.42.1.tar.gz b/ray-2.42.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..994ef4a03f2c4be26105bd4924080d01bda09514 Binary files /dev/null and b/ray-2.42.1.tar.gz differ diff --git a/ray.spec b/ray.spec new file mode 100644 index 0000000000000000000000000000000000000000..2c4b6422e66546efd9bcd162f99a5680bb68ce7f --- /dev/null +++ b/ray.spec @@ -0,0 +1,67 @@ +%global _pip_huawei_install pip install --trusted-host mirrors.huaweicloud.com -i https://mirrors.huaweicloud.com/repository/pypi/simple + + +Name: ray +Version: 2.42.1 +Release: 1%{?dist} +Summary: Ray provides a simple, universal API for building distributed applications. +License: Apache 2.0 +URL: https://github.com/ray-project/ray +Source0: https://gitee.com/src-openeuler/ray/raw/master/ray-%{version}.tar.gz + +%ifarch aarch64 +Source1: bazel-6.5.0-linux-aarch64 +%endif +%ifarch x86_64 +Source1: bazel-6.5.0-linux-x86_64 +%endif + +Provides: ray +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-cffi +BuildRequires: python3-Cython python3-psutil python3-pytorch +BuildRequires: gcc +BuildRequires: gdb bazel python3-hyperopt + +%description +Today's ML workloads are increasingly compute-intensive. As convenient as they are, single-node development environments such as your laptop cannot scale to meet these demands. +Ray is a unified way to scale Python and AI applications from a laptop to a cluster. +With Ray, you can seamlessly scale the same code from a laptop to a cluster. Ray is designed to be general-purpose, meaning that it can performantly run any kind of workload. If your application is written in Python, you can scale it with Ray, no other infrastructure required. + +%prep +%autosetup -n %{name}-%{version} -p1 +#mkdir ~/bin/ +#cp -a %{SOURCE1} ~/bin/bazel +#chmod +x ~/bin/bazel +#cp -a %{SOURCE1} /usr/bin/bazel +#chmod +x /usr/bin/bazel + +%build +cd python +%{_pip_huawei_install} -r requirements_compiled.txt || true + +#sed -i 's/ pip_packages =.*/pip_packages = []/g' python/setup.py +# sed -i 's/if not os.getenv("SKIP_THIRDPARTY_INSTALL_CONDA_FORGE"):/if os.getenv("SKIP_THIRDPARTY_INSTALL_CONDA_FORGE"):/g' python/setup.py + +%py3_build +cd - + +%install +%py3_install + +%clean +cd python +bazel clean --expunge +rm -rf ~/.cache/bazel + +%files -n %{name} +%doc README.md +%lincense LICENSE +%{python3_sitelib}/* + +%changelog +* Fri Feb 28 2025 Python_Bot - 2.42.1-1 +- Package Spec generated