summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-02-05 20:47:01 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-02-05 20:47:01 +0000
commit033770ad82af7a4fa070eec6fb66d482dc747567 (patch)
tree7237166e367422c5075b99e761e93d22697ba661
parentfff5ae3a6e952b968b07b238eab1317b47fe7db3 (diff)
Let client module not be compiled.
SVN revision: 45911
-rw-r--r--setup.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 25fa671..2045706 100644
--- a/setup.py
+++ b/setup.py
@@ -111,6 +111,14 @@ class ethumb_build_ext(build_ext):
111 self.pyrex_include_dirs.extend(self.include_dirs) 111 self.pyrex_include_dirs.extend(self.include_dirs)
112 112
113 113
114module_list = [ethumbmodule]
115
116if int(os.environ.get("ETHUMB_BUILD_CLIENT", 1)):
117 module_list.append(ethumbclientmodule)
118else:
119 print "NOTICE: not building ethumb.client module as requested " \
120 "by ETHUMB_BUILD_CLIENT=0!"
121
114setup(name='python-ethumb', 122setup(name='python-ethumb',
115 version='0.2', 123 version='0.2',
116 license='LGPL', 124 license='LGPL',
@@ -122,7 +130,7 @@ setup(name='python-ethumb',
122 keywords='wrapper binding enlightenment graphics jpg jpeg png thumbnail freedesktop.org', 130 keywords='wrapper binding enlightenment graphics jpg jpeg png thumbnail freedesktop.org',
123 classifiers=trove_classifiers, 131 classifiers=trove_classifiers,
124 packages=find_packages(), 132 packages=find_packages(),
125 ext_modules=[ethumbmodule, ethumbclientmodule], 133 ext_modules=module_list,
126 zip_safe=False, 134 zip_safe=False,
127 cmdclass={'build_ext': ethumb_build_ext,}, 135 cmdclass={'build_ext': ethumb_build_ext,},
128 ) 136 )