Mercurial > hg > zebra
annotate setup.py @ 17:a9dacd180597
Does not work in python 2.6 after all
Tidy up
author | Ben Croston <ben@croston.org> |
---|---|
date | Mon, 15 Aug 2011 20:18:38 +0100 |
parents | cc41931a7ded |
children | 777602a0da24 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 import sys | |
3 from distutils.core import setup | |
4 | |
5 try: | |
8 | 6 from distutils.command.build_py import build_py_2to3 as build_py |
0 | 7 except ImportError: |
8 | 8 from distutils.command.build_py import build_py |
0 | 9 |
10 classifiers = ['Development Status :: 3 - Alpha', | |
11 'Operating System :: Microsoft :: Windows', | |
12 'Operating System :: Unix', | |
13 'License :: OSI Approved :: MIT License', | |
14 'Programming Language :: Python :: 2.7', | |
5
639d9699e53c
Change python 3.2 to python 3
Ben Croston <ben@fuzzyduckbrewery.co.uk>
parents:
1
diff
changeset
|
15 'Programming Language :: Python :: 3', |
0 | 16 'Topic :: Printing'] |
17 | |
18 long_description = open('README').read() | |
19 | |
1 | 20 if sys.platform.lower().startswith('win'): |
0 | 21 requires = ['win32print'] |
8 | 22 try: |
23 import win32print | |
24 except: | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
15
diff
changeset
|
25 raise Exception('Requires the win32print module from the pywin32 package.\nDownload from http://pypi.python.org/pypi/pywin32/') |
0 | 26 else: |
27 requires = [] | |
28 | |
29 setup(name = 'zebra', | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
15
diff
changeset
|
30 version = '0.0.3a', |
0 | 31 py_modules = ['zebra'], |
32 author = 'Ben Croston', | |
33 author_email = 'ben@croston.org', | |
34 maintainer = 'Ben Croston', | |
35 maintainer_email = 'ben@croston.org', | |
8 | 36 url = 'http://www.wyre-it.co.uk/zebra/', |
0 | 37 description = 'A package to communicate with (Zebra) label printers using EPL2', |
38 long_description = long_description, | |
39 platforms = 'Windows, Unix', | |
40 classifiers = classifiers, | |
41 license = 'MIT', | |
42 cmdclass = {'build_py': build_py}, | |
43 requires = requires, | |
44 ) | |
45 |