comparison setup.py @ 393:49bd3dc5c205

FIX: Python2.[56] fails upon 'as'-keyword in pyparsing_py3.py
author Jens Braeuer <jens.braeuer@gmx.net>
date Tue, 18 May 2010 20:59:14 +0200
parents 6e9a70fc1768
children 7812e00ff5b1
comparison
equal deleted inserted replaced
392:1f1fb9c5feea 393:49bd3dc5c205
8 import sys 8 import sys
9 9
10 python3 = sys.version_info[0] > 2 10 python3 = sys.version_info[0] > 2
11 if python3: 11 if python3:
12 install_requires = [] # will rely on local pyparsing_py3 copy 12 install_requires = [] # will rely on local pyparsing_py3 copy
13 extra_modules = "pyparsing_py3"
13 else: 14 else:
14 install_requires = ['pyparsing>=1.5.1'] 15 install_requires = ['pyparsing>=1.5.1']
15 16 extra_modules = []
16 setup( 17 setup(
17 name="cmd2", 18 name="cmd2",
18 version="0.6.1", 19 version="0.6.1",
19 py_modules=["cmd2","pyparsing_py3"], 20 py_modules=["cmd2"]+extra_modules,
20 use_2to3=True, 21 use_2to3=True,
21 22
22 # metadata for upload to PyPI 23 # metadata for upload to PyPI
23 author = 'Catherine Devlin', 24 author = 'Catherine Devlin',
24 author_email = 'catherine.devlin@gmail.com', 25 author_email = 'catherine.devlin@gmail.com',