[Zope-Checkins] CVS: Zope - setup.py:1.5

Guido van Rossum guido@python.org
Thu, 13 Jun 2002 23:51:12 -0400


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv14835

Modified Files:
	setup.py 
Log Message:
Add setup for ZCTextIndex (again).  Somebody's nightly test run
reported errors about this; hopefully it will now work again (if they
use setup.py for their build).


=== Zope/setup.py 1.4 => 1.5 ===
 SETUP_DCPYEXPAT = 1
 SETUP_SPLITTERS = 1
+SETUP_ZCTEXTINDEX = 1
 
 
 # a few constants
@@ -40,6 +41,7 @@
 ec_root = os.path.join(top_dir, 'lib', 'Components', 'ExtensionClass')
 ec_src = os.path.join(ec_root, 'src')
 py_root = os.path.join(top_dir, 'lib', 'python')
+zct_src = os.path.join(py_root, 'Products', 'ZCTextIndex')
 ec_include = [ec_src]
 
 # ExtensionClass
@@ -269,6 +271,16 @@
           )
 
 
+if SETUP_ZCTEXTINDEX and os.path.isdir(zct_src):
+    stopper = Extension(name = "Products.ZCTextIndex.stopper",
+                        sources = ["Products/ZCTextIndex/stopper.c"])
+    okascore = Extension(name = "Products.ZCTextIndex.okascore",
+                         sources = ["Products/ZCTextIndex/okascore.c"])
+
+    setup(name = "Products.ZCTextIndex",
+          ext_modules = [stopper, okascore])
+
+
 # Lib -- misc. support files
 # This might be expanded with other Zope packages.
 setup(name = "Other libraries",
@@ -280,4 +292,3 @@
       )
 
 os.chdir(top_dir)
-