Mercurial > hg > zebra
annotate setup.py @ 15:cc41931a7ded
Works in py 2.6
author | Ben Croston <ben@croston.org> |
---|---|
date | Mon, 15 Aug 2011 18:38:59 +0100 |
parents | 19fd067db7ca |
children | a9dacd180597 |
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', | |
8 | 14 'Programming Language :: Python', |
15 | 15 'Programming Language :: Python :: 2.6', |
0 | 16 'Programming Language :: Python :: 2.7', |
5
639d9699e53c
Change python 3.2 to python 3
Ben Croston <ben@fuzzyduckbrewery.co.uk>
parents:
1
diff
changeset
|
17 'Programming Language :: Python :: 3', |
0 | 18 'Topic :: Printing'] |
19 | |
20 long_description = open('README').read() | |
21 | |
1 | 22 if sys.platform.lower().startswith('win'): |
0 | 23 requires = ['win32print'] |
8 | 24 try: |
25 import win32print | |
26 except: | |
27 raise Exception('Requires the win32print module from the pywin32 package') | |
0 | 28 else: |
29 requires = [] | |
30 | |
31 setup(name = 'zebra', | |
8 | 32 version = '0.0.2a', |
0 | 33 py_modules = ['zebra'], |
34 author = 'Ben Croston', | |
35 author_email = 'ben@croston.org', | |
36 maintainer = 'Ben Croston', | |
37 maintainer_email = 'ben@croston.org', | |
8 | 38 url = 'http://www.wyre-it.co.uk/zebra/', |
0 | 39 description = 'A package to communicate with (Zebra) label printers using EPL2', |
40 long_description = long_description, | |
41 platforms = 'Windows, Unix', | |
42 classifiers = classifiers, | |
43 license = 'MIT', | |
44 cmdclass = {'build_py': build_py}, | |
45 requires = requires, | |
46 ) | |
47 |