From d0fdb0d759b960b41b57bf7c9539901f16062e0a Mon Sep 17 00:00:00 2001 From: Michal Cyprian Date: Mon, 23 Jan 2017 18:52:17 +0100 Subject: [PATCH] Add --no-deps option to py_install_wheel macros --- macros.python | 2 +- macros.python2 | 2 +- macros.python3 | 2 +- python-rpm-macros.spec | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/macros.python b/macros.python index aab13c0..8b168b5 100644 --- a/macros.python +++ b/macros.python @@ -28,7 +28,7 @@ } %py_install_wheel() %{expand:\\\ - pip install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} + pip install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps } %python_provide() %{lua: diff --git a/macros.python2 b/macros.python2 index 420544b..169d48f 100644 --- a/macros.python2 +++ b/macros.python2 @@ -33,5 +33,5 @@ } %py2_install_wheel() %{expand:\\\ - pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} + pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps } diff --git a/macros.python3 b/macros.python3 index c81cf3f..2805b8a 100644 --- a/macros.python3 +++ b/macros.python3 @@ -34,5 +34,5 @@ } %py3_install_wheel() %{expand:\\\ - pip%{python3_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} + pip%{python3_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps } diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index 32d1604..be402c9 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -1,6 +1,6 @@ Name: python-rpm-macros Version: 3 -Release: 16%{?dist} +Release: 17%{?dist} Summary: The unversioned Python RPM macros License: MIT @@ -69,6 +69,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \ %changelog +* Mon Jan 23 2017 Michal Cyprian - 3-17 +- Add --no-deps option to py_install_wheel macros + * Tue Jan 17 2017 Tomas Orsava - 3-16 - Added macros for Build/Requires tags using Python dist tags: https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages