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:
16
python-PyICU-1.9.7-quote_Version.patch
Normal file
16
python-PyICU-1.9.7-quote_Version.patch
Normal 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);
|
Reference in New Issue
Block a user