Add _c_htmltext extension (disabled by default). (quixote/setup.py)

Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Wed, 08 Jan 2003 14:45:19 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv20144

Modified Files:
	setup.py 
Log Message:
Add _c_htmltext extension (disabled by default).


Index: setup.py
===================================================================
RCS file: /home/cvs/quixote/setup.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- setup.py	2 Jan 2003 19:05:36 -0000	1.26
+++ setup.py	8 Jan 2003 19:45:17 -0000	1.27
@@ -6,8 +6,12 @@
 
 import os
 from distutils.core import setup
+from distutils.extension import Extension
 from qx_distutils import qx_build_py
 
+htmltext = Extension(name="quixote._c_htmltext",
+                      sources=["src/_c_htmltext.c"])
+
 setup (name = "Quixote",
        version = "0.6",
        description = "A highly Pythonic Web application framework",
@@ -18,6 +22,9 @@
        package_dir = {'quixote':os.curdir},
        packages = ['quixote',  'quixote.demo', 'quixote.form',
                    'quixote.server'],
+
+       # Uncomment to enable the C implementation of the htmltext type
+       #ext_modules = [htmltext],
 
        cmdclass = {'build_py': qx_build_py},
       )