]> git.pld-linux.org Git - packages/translate-toolkit.git/commitdiff
skip "argparse" from egg dependencies auto/th/translate-toolkit-1.14.0-2
authorElan Ruusamäe <glen@delfi.ee>
Thu, 15 Sep 2016 09:50:04 +0000 (12:50 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 15 Sep 2016 09:59:06 +0000 (12:59 +0300)
the module is provided by python 2.7 package
however the python 2.7 package does not provide the egg info
so pkg_resources will fail to resolve dependencies

egg-deps.patch [new file with mode: 0644]
translate-toolkit.spec

diff --git a/egg-deps.patch b/egg-deps.patch
new file mode 100644 (file)
index 0000000..747b718
--- /dev/null
@@ -0,0 +1,9 @@
+--- translate-toolkit-1.14.0-rc1/requirements/required.txt~    2016-03-07 17:18:17.000000000 +0200
++++ translate-toolkit-1.14.0-rc1/requirements/required.txt     2016-09-15 12:55:53.773712158 +0300
+@@ -1,6 +1,5 @@
+ # argparse is required for Python 2.6, it is a
+ # standard library in Python >= 2.7
+-argparse
+ six>=1.9
+ # Required to provide compatibility for old Virtaal releases:
index 58597b1d04fb3b95a51f1dcc49212dbf69132e7e..2d3f75dba5da622269e1734e2b36ec43651836b3 100644 (file)
@@ -14,6 +14,7 @@ Source0:      https://github.com/translate/translate/releases/download/%{version}-rc1
 Patch0:                %{name}-stoplist.patch
 Patch1:                %{name}-langmodel_dir.patch
 Patch2:                unbash.patch
+Patch3:                egg-deps.patch
 URL:           http://toolkit.translatehouse.org/
 BuildRequires: checkbashisms
 BuildRequires: python-dateutil
@@ -28,6 +29,7 @@ BuildRequires:        python-vobject
 %endif
 Requires:      python-iniparse >= 0.3.1
 Requires:      python-lxml >= 2.1.0
+Requires:      python-modules >= 1:2.7
 Requires:      python-setuptools
 Requires:      python-simplejson
 Requires:      python-vobject >= 0.6.6
@@ -80,6 +82,7 @@ Documentation for translate-toolkit.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # FIXME: they do it wrong apparently? that can't do via setup.py?
 %{__sed} -i -e 's#packagesdir = get_python_lib()#packagesdir = "%{py_sitescriptdir}"#' setup.py
This page took 0.063686 seconds and 4 git commands to generate.