diff setup.py @ 386:43ea72144e04

setuptools optional
author catherine@dellzilla
date Fri, 12 Mar 2010 19:41:57 -0500
parents 99c66656d81b
children 43ce9110d5a6
line wrap: on
line diff
--- a/setup.py	Fri Mar 05 14:41:45 2010 -0500
+++ b/setup.py	Fri Mar 12 19:41:57 2010 -0500
@@ -1,5 +1,10 @@
 #!/usr/bin/python
-from setuptools import setup, find_packages
+try:
+    from setuptools import setup, find_packages
+except ImportError:
+    from distutils.core import setup
+    def find_packages():
+    return ['sqlpython']
 import sys
 
 python3 = sys.version_info[0] > 2
@@ -43,6 +48,9 @@
 
 Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd.
 
+Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py`` 
+generates working, Python3-based code.
+
 See docs at http://packages.python.org/cmd2/
 """,