forked from pool/python-PyICU
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
17 lines
572 B
Diff
17 lines
572 B
Diff
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);
|