# HG changeset patch # User catherine@dellzilla # Date 1268440917 18000 # Node ID 43ea72144e0461f3bf10408cf805b05c0447b77c # Parent 2d244d7a675b07ebeb8ff49041d5677ce2dc18a3 setuptools optional diff -r 2d244d7a675b -r 43ea72144e04 setup.py --- 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 ` against ``cmd2.py`` +generates working, Python3-based code. + See docs at http://packages.python.org/cmd2/ """,