Mercurial > hg > zebra
comparison setup.py @ 26:20f6df6d3f42
- Fix for empty printer list
- Updated to 0.0.4a
- Altered to use pip
author | Ben Croston <ben@croston.org> |
---|---|
date | Sat, 16 Nov 2013 17:17:15 +0000 |
parents | 0da94dcfdd55 |
children | 7c132e01c281 |
comparison
equal
deleted
inserted
replaced
25:fc1a7cf3f92c | 26:20f6df6d3f42 |
---|---|
18 'Topic :: Printing'] | 18 'Topic :: Printing'] |
19 | 19 |
20 long_description = open('README').read() | 20 long_description = open('README').read() |
21 | 21 |
22 if sys.platform.lower().startswith('win'): | 22 if sys.platform.lower().startswith('win'): |
23 requires = ['win32print'] | 23 install_requires = 'win32print' |
24 try: | |
25 import win32print | |
26 except: | |
27 raise Exception('Requires the win32print module from the pywin32 package.\nDownload from http://pypi.python.org/pypi/pywin32/') | |
28 else: | 24 else: |
29 requires = [] | 25 install_requires = None |
30 | 26 |
31 setup(name = 'zebra', | 27 setup(name = 'zebra', |
32 version = '0.0.3a', | 28 version = '0.0.4a', |
33 py_modules = ['zebra'], | 29 py_modules = ['zebra'], |
34 author = 'Ben Croston', | 30 author = 'Ben Croston', |
35 author_email = 'ben@croston.org', | 31 author_email = 'ben@croston.org', |
36 maintainer = 'Ben Croston', | 32 maintainer = 'Ben Croston', |
37 maintainer_email = 'ben@croston.org', | 33 maintainer_email = 'ben@croston.org', |
40 long_description = long_description, | 36 long_description = long_description, |
41 platforms = 'Windows, Unix, MacOSX', | 37 platforms = 'Windows, Unix, MacOSX', |
42 classifiers = classifiers, | 38 classifiers = classifiers, |
43 license = 'MIT', | 39 license = 'MIT', |
44 cmdclass = {'build_py': build_py}, | 40 cmdclass = {'build_py': build_py}, |
45 requires = requires, | 41 install_requires = install_requires |
46 ) | 42 ) |
47 | 43 |