summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python-torchrl.spec3
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