comparison setup.py @ 1:317e6f82c733

-
author Ben Croston <ben@croston.org>
date Tue, 30 Aug 2011 22:47:02 +0100
parents 6a61cfdf6930
children 43595981978d
comparison
equal deleted inserted replaced
0:6a61cfdf6930 1:317e6f82c733
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 import distribute_setup 2 import distribute_setup
3 distribute_setup.use_setuptools() 3 distribute_setup.use_setuptools()
4 from setuptools import setup, find_packages 4 from setuptools import setup, find_packages
5 import platform
5 6
6 classifiers = ['Development Status :: 3 - Alpha', 7 classifiers = ['Development Status :: 3 - Alpha',
7 'Operating System :: Microsoft :: Windows', 8 'Operating System :: Microsoft :: Windows',
8 'Operating System :: Unix', 9 'Operating System :: Unix',
9 "Operating System :: MacOS :: MacOS X", 10 "Operating System :: MacOS :: MacOS X",
12 'Programming Language :: Python :: 3', 13 'Programming Language :: Python :: 3',
13 'Topic :: Software Development', 14 'Topic :: Software Development',
14 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware', 15 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
15 'Topic :: Internet :: WWW/HTTP :: HTTP Servers'] 16 'Topic :: Internet :: WWW/HTTP :: HTTP Servers']
16 17
17 import platform
18 if platform.python_version().startswith('2'): 18 if platform.python_version().startswith('2'):
19 # python 2.x 19 # python 2.x
20 packages = ['wibble.client','wibble.server'] 20 packages = find_packages()
21 install_requires = ['webob>=1.0.0'] 21 install_requires = ['webob>=1.0.0']
22 else: 22 else:
23 # assume python 3.x 23 # assume python 3.x
24 packages = ['wibble.client'] 24 packages = find_packages(exclude=['wibble.server'])
25 install_requires = [] 25 install_requires = []
26 26
27 setup(name = 'Wibble', 27 setup(name = 'Wibble',
28 version = '0.0.1a', 28 version = '0.0.1a',
29 packages = packages, 29 packages = packages,