14
0
forked from pool/python-PyICU

Accepting request 504936 from home:okurz:branches:devel:languages:python

Submission of version 1.9.7; dependency for python-vobject; clean dups with fdupes

OBS-URL: https://build.opensuse.org/request/show/504936
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=1
This commit is contained in:
Jan Matejek
2017-06-21 13:57:18 +00:00
committed by Git OBS Bridge
commit a50205aa6f
7 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
Index: _icu.cpp
===================================================================
--- _icu.cpp.orig
+++ _icu.cpp
@@ -238,7 +238,11 @@ static PyObject *PyInit_icu(PyObject *m)
PyType_Ready(&ConstVariableDescriptorType);
Py_INCREF(&ConstVariableDescriptorType);
+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7)
+ ver = PyString_FromString("PYICU_VER");
+#else
ver = PyString_FromString(PYICU_VER);
+#endif
PyObject_SetAttrString(m, "VERSION", ver); Py_DECREF(ver);
ver = PyString_FromString(U_ICU_VERSION);