[Zope-CVS] SVN: zope.ucol/trunk/setup.py Updated with windows library names.

Jim Fulton jim at zope.com
Wed Dec 7 16:45:38 EST 2005


Log message for revision 40638:
  Updated with windows library names.
  

Changed:
  U   zope.ucol/trunk/setup.py

-=-
Modified: zope.ucol/trunk/setup.py
===================================================================
--- zope.ucol/trunk/setup.py	2005-12-07 21:22:10 UTC (rev 40637)
+++ zope.ucol/trunk/setup.py	2005-12-07 21:45:38 UTC (rev 40638)
@@ -1,11 +1,35 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for zope.ucol package
+
+$Id$
+"""
+
+import sys
 from distutils.core import setup, Extension
 
+if sys.platform.startswith('win'):
+    libraries = ['icuin', 'icuuc', 'icudt']
+else:
+    libraries=['icui18n', 'icuuc', 'icudata']
+
 setup(name='zope.ucol',
       version='1.0',
       ext_modules=[
           Extension('zope.ucol._zope_ucol',
                     ['src/zope/ucol/_zope_ucol.c'],
-                    libraries=['icui18n', 'icuuc', 'icudata'],
+                    libraries=libraries,
            )
           ],
       packages=["zope", "zope.ucol"],



More information about the Zope-CVS mailing list