Permalink
Browse files

Compile everything as a single .so file

This way, changes are not required for modules to work.
  • Loading branch information...
1 parent fa8a219 commit 4b3f53fccbd1c48314da67efb4c0e6d0e4f866a7 @dequis dequis committed Nov 23, 2010
Showing with 9 additions and 10 deletions.
  1. +9 −10 setup.py
View
@@ -5,7 +5,7 @@
CFLAGS=["-Wall"]
# We'll write code to detect this properly later
-XCB_PATH="/usr/local/share/xcb"
+XCB_PATH="/usr/share/xcb"
xmlfiles = [
"bigreq", "composite", "damage", "dpms", "glx",
@@ -20,16 +20,14 @@
"protobj", "reply", "request", "response", "struct",
"union", "void"
]
-ext_modules = []
-for i in extensions:
- ext_modules.append(
- Extension(
- "xcb.%s"%i,
- sources = ["xcb/%s.c"%i],
- libraries = ["xcb"],
- extra_compile_args=CFLAGS
- )
+ext_modules = [
+ Extension(
+ "xcb.xcb",
+ sources = ["xcb/%s.c" % i for i in extensions],
+ libraries = ["xcb"],
+ extra_compile_args=CFLAGS
)
+]
class build_ext(_build_ext):
@@ -41,6 +39,7 @@ def run(self):
setup(
name = 'xpyb',
+ version = "1.3",
ext_modules = ext_modules,
packages = ["xcb"],
cmdclass = {

0 comments on commit 4b3f53f

Please sign in to comment.