diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-12 16:20:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-12 16:20:39 +0000 |
commit | 77c2700f2dc9d32f817854aab7cfec8f65231cad (patch) | |
tree | 003030e624fd668b6b977057d1e588e1d27430e0 /python-torchrl.spec | |
parent | f636fbe5a774aabc76d2a14100b66fda6251522b (diff) |
automatic import of python-torchrl
Diffstat (limited to 'python-torchrl.spec')
-rw-r--r-- | python-torchrl.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python-torchrl.spec b/python-torchrl.spec index 7974b74..b523a6c 100644 --- a/python-torchrl.spec +++ b/python-torchrl.spec @@ -7,6 +7,7 @@ License: MIT URL: https://pypi.org/project/torchrl/ Source0: https://github.com/pytorch/rl/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Requires: python3-pytorch Requires: python3-pytorch_package_dep Requires: python3-numpy Requires: python3-packaging @@ -27,7 +28,6 @@ BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-ninja -BuildRequires: python3-pytorch #BuildRequires: python3-hatchling @@ -43,6 +43,7 @@ Provides: python3-torchrl-doc %build export MAX_JOBS=8 +CFLAGS+=" $(python%{python3_version}-config --includes)" %pyproject_build %install |