1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """Distribution Utilities setup program for NDG Security Package |
---|
4 | |
---|
5 | NERC Data Grid Project |
---|
6 | |
---|
7 | P J Kershaw 24/04/06 |
---|
8 | |
---|
9 | Copyright (C) 2006 CCLRC & NERC |
---|
10 | |
---|
11 | This software may be distributed under the terms of the Q Public License, |
---|
12 | version 1.0 or later. |
---|
13 | """ |
---|
14 | # Bootstrap setuptools if necessary. |
---|
15 | from ez_setup import use_setuptools |
---|
16 | use_setuptools() |
---|
17 | |
---|
18 | from setuptools import setup, find_packages |
---|
19 | |
---|
20 | import os, sys |
---|
21 | |
---|
22 | reposID = "$Id:$" |
---|
23 | |
---|
24 | |
---|
25 | # Packages needed for NDG Security |
---|
26 | # Note commented out ones fail with PyPI - use explicit link instead |
---|
27 | # TODO: subdivide these into server and client specific and comon dependencies |
---|
28 | _pkgDependencies = [ |
---|
29 | 'ZSI', |
---|
30 | 'pycrypto', |
---|
31 | 'SQLObject', |
---|
32 | # 'MySQL-python', - gcc: unrecognized option `-restrict' |
---|
33 | ] |
---|
34 | |
---|
35 | # Python 2.5 includes ElementTree by default |
---|
36 | if sys.version_info[0] == 2 and sys.version_info[1] < 5: |
---|
37 | _pkgDependencies.extend(['ElementTree', 'cElementTree']) |
---|
38 | |
---|
39 | import pdb;pdb.set_trace() |
---|
40 | # Sledge hammer approach needed with some packages as they won't install from their PyPI name - |
---|
41 | # instead give the explicit URL. This may cause problems later! |
---|
42 | _pkgDependencyLinks = [ |
---|
43 | # Custom M2Crypto for use with Python MyProxy client |
---|
44 | "http://proj.badc.rl.ac.uk/ndg/browser/TI12-security/branches/Dependencies/m2crypto.tar.gz", |
---|
45 | "ftp://ftp.4suite.org/pub/4Suite/4Suite-XML-1.0.tar.gz", |
---|
46 | "http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?use_mirror=kent", |
---|
47 | # Twisted won't install as an egg |
---|
48 | # "http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2", |
---|
49 | # "http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2", |
---|
50 | ] |
---|
51 | |
---|
52 | |
---|
53 | setupKw = \ |
---|
54 | { |
---|
55 | 'name': 'ndg.security.common', |
---|
56 | 'version': '0.7.2', |
---|
57 | 'description': 'NERC DataGrid Security common Utilities', |
---|
58 | 'long_description': 'Software for securing NDG resources', |
---|
59 | 'author': 'Philip Kershaw', |
---|
60 | 'author_email': 'P.J.Kershaw@rl.ac.uk', |
---|
61 | 'maintainer': 'Philip Kershaw', |
---|
62 | 'maintainer_email': 'P.J.Kershaw@rl.ac.uk', |
---|
63 | 'url': 'http://proj.badc.rl.ac.uk/ndg', |
---|
64 | 'install_requires': _pkgDependencies, |
---|
65 | 'dependency_links': _pkgDependencyLinks, |
---|
66 | 'packages': find_packages(), |
---|
67 | 'namespace_packages': ['ndg', 'ndg.security'], |
---|
68 | # This flag will include all files under SVN control or included in |
---|
69 | # MANIFEST.in. |
---|
70 | #'include_package_data': True, |
---|
71 | # Finer grained control of data file inclusion can be achieved with |
---|
72 | # these parameters. See the setuptools docs. |
---|
73 | #'package_data': {} |
---|
74 | #'exclude_package_data': {} |
---|
75 | 'entry_points': None, |
---|
76 | 'test_suite': 'ndg.security.test', |
---|
77 | 'zip_safe': False |
---|
78 | } |
---|
79 | setup(**setupKw) |
---|