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