[Zope-CVS] CVS: Products/ExternalEditor - setup.py:1.2
Casey Duncan
casey@zope.com
Tue, 1 Apr 2003 14:43:10 -0500
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv6559
Modified Files:
setup.py
Log Message:
Fix setup.py to work on Unix
=== Products/ExternalEditor/setup.py 1.1 => 1.2 ===
--- Products/ExternalEditor/setup.py:1.1 Tue Apr 1 12:01:36 2003
+++ Products/ExternalEditor/setup.py Tue Apr 1 14:43:09 2003
@@ -1,6 +1,14 @@
+import sys
from distutils.core import setup
-import py2exe
+try:
+ import py2exe
+except ImportError:
+ if sys.platform == 'win32':
+ raise
+ packages = None
+else:
+ packages = ['Plugins']
setup(name='zopeedit',
scripts=['zopeedit.py'],
- packages=['Plugins'])
+ packages=packages)