代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/yum-metadata-parser 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
commit 8472bc2706377c93752b2f0b8429b0d18639b65c
Author: Martin Kletzander <[email protected]>
Date: Fri Apr 5 15:12:15 2013 +0200
setup: make build work on python 3
In python 3, the string module doesn't have 'split' function anymore
and users are encouraged to use '.split()' on the string itself. Also
'map()' is lazy and returns an iterable map object, but setup expects
only a list, so it has to be wrapped in 'list()'. All of this works
with python2 as well.
Signed-off-by: Martin Kletzander <[email protected]>
diff --git a/setup.py b/setup.py
index d0d0429..a42a9b7 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,16 @@
-import os, string
+import os
from distutils.core import setup, Extension
pc = os.popen("pkg-config --cflags-only-I glib-2.0 libxml-2.0 sqlite3", "r")
-includes = map(lambda x:x[2:], string.split(pc.readline()))
+includes = list(map(lambda x:x[2:], pc.readline().split()))
pc.close()
pc = os.popen("pkg-config --libs-only-l glib-2.0 libxml-2.0 sqlite3", "r")
-libs = map(lambda x:x[2:], string.split(pc.readline()))
+libs = list(map(lambda x:x[2:], pc.readline().split()))
pc.close()
pc = os.popen("pkg-config --libs-only-L glib-2.0 libxml-2.0 sqlite3", "r")
-libdirs = map(lambda x:x[2:], string.split(pc.readline()))
+libdirs = list(map(lambda x:x[2:], pc.readline().split()))
pc.close()
module = Extension('_sqlitecache',
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。