diff setup.py @ 311:54e2dd53ba38

excluded --options from --comments with .NotAny
author catherine@bothari
date Sun, 31 Jan 2010 08:18:15 -0500
parents f5593299fc2a
children 466eaec2c076
line wrap: on
line diff
--- a/setup.py	Fri Jan 29 11:26:23 2010 -0500
+++ b/setup.py	Sun Jan 31 08:18:15 2010 -0500
@@ -1,11 +1,18 @@
 #!/usr/bin/python
 from setuptools import setup, find_packages
+import sys
 
+python3 = sys.version_info[0] > 2
+if python3:
+    install_requires = [] # will rely on local pyparsing_py3 copy
+else:
+    install_requires = ['pyparsing>=1.5.1']
+    
 setup(
     name="cmd2",
     version="0.5.6",
     py_modules=["cmd2",],
-    use2to3=True,
+    use_2to3=True,
     
     # metadata for upload to PyPI
     author = 'Catherine Devlin',
@@ -14,7 +21,7 @@
     license = 'MIT',
     keywords = 'command prompt console cmd',
     url = 'http://www.assembla.com/wiki/show/python-cmd2',
-    install_requires=['pyparsing>=1.5.1'],
+    install_requires = install_requires,
     
     long_description = """Enhancements for standard library's cmd module.