New version of PR #38

- Put back python funny syntax in requirements.txt
- Create a PB macro (for now in all.pbf) to alter the requirements.txt
  to remove the funny python syntax
This commit is contained in:
Bruno Cornec 2016-04-04 19:35:03 +02:00
parent 04e5591443
commit f876aa6711
3 changed files with 4 additions and 1 deletions

View File

@ -69,3 +69,4 @@ filter PBLOG = yes
filter PBCONFFILE = /etc/redfish-client.conf filter PBCONFFILE = /etc/redfish-client.conf
filter PBTEMPLATEPATH = /usr/share/redfish-client/templates filter PBTEMPLATEPATH = /usr/share/redfish-client/templates
filter PBPYTHON3FILTER = perl -pi -e "s|configparser>=3.3.0; python_version < '3'|configparser>=3.3.0|" requirements.txt

View File

@ -22,6 +22,8 @@ PBDESC
%setup -q %setup -q
%build %build
# Fix for now as long as setuptools isn't more recent in distributions
PBPYTHON3FILTER
%{__python} setup.py build %{__python} setup.py build
# Build minimal documentation # Build minimal documentation

View File

@ -12,4 +12,4 @@ requests>=2.9.1
# Python3 compat # Python3 compat
future>=0.15.2 future>=0.15.2
#configparser>=3.3.0; python_version < '3' configparser>=3.3.0; python_version < '3'