Mercurial > python-cmd2
comparison setup.py @ 386:43ea72144e04
setuptools optional
author | catherine@dellzilla |
---|---|
date | Fri, 12 Mar 2010 19:41:57 -0500 |
parents | 99c66656d81b |
children | 43ce9110d5a6 |
comparison
equal
deleted
inserted
replaced
385:2d244d7a675b | 386:43ea72144e04 |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 from setuptools import setup, find_packages | 2 try: |
3 from setuptools import setup, find_packages | |
4 except ImportError: | |
5 from distutils.core import setup | |
6 def find_packages(): | |
7 return ['sqlpython'] | |
3 import sys | 8 import sys |
4 | 9 |
5 python3 = sys.version_info[0] > 2 | 10 python3 = sys.version_info[0] > 2 |
6 if python3: | 11 if python3: |
7 install_requires = [] # will rely on local pyparsing_py3 copy | 12 install_requires = [] # will rely on local pyparsing_py3 copy |
41 * `py` enters interactive Python console | 46 * `py` enters interactive Python console |
42 * test apps against sample session transcript (see example/example.py) | 47 * test apps against sample session transcript (see example/example.py) |
43 | 48 |
44 Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. | 49 Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. |
45 | 50 |
51 Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py`` | |
52 generates working, Python3-based code. | |
53 | |
46 See docs at http://packages.python.org/cmd2/ | 54 See docs at http://packages.python.org/cmd2/ |
47 """, | 55 """, |
48 | 56 |
49 classifiers=[ | 57 classifiers=[ |
50 'Development Status :: 4 - Beta', | 58 'Development Status :: 4 - Beta', |