source: TI12-security/trunk/python/ndg.security.common/setup.py @ 4611

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.common/setup.py@4611
Revision 4611, 2.8 KB checked in by pjkersha, 11 years ago (diff)
  • Updates to egg dependencies - remove packages that are no longer needed
  • incremented to overall version 1.0.0 ready for new release.
  • Property svn:keywords set to Id
Line 
1#!/usr/bin/env python
2
3"""Distribution Utilities setup program for NDG Security Package
4
5NERC Data Grid Project
6"""
7__author__ = "P J Kershaw"
8__date__ = "24/04/06"
9__copyright__ = "(C) 2007 STFC & NERC"
10__license__ = \
11"""This software may be distributed under the terms of the Q Public
12License, version 1.0 or later."""
13__contact__ = "Philip.Kershaw@stfc.ac.uk"
14__revision__ = '$Id$'
15
16# Bootstrap setuptools if necessary.
17from ez_setup import use_setuptools
18use_setuptools()
19
20from setuptools import setup, find_packages
21
22import os, sys
23
24# Packages needed for NDG Security
25# Note commented out ones fail with PyPI - use explicit link instead
26# TODO: subdivide these into server and client specific and comon dependencies
27_pkgDependencies = [
28    'PyXML', # include as a separate dependency to force correct download link
29    'ZSI',
30    '4Suite-XML',
31    'pycrypto',
32    'M2Crypto'
33    ]
34
35# TODO: configure an option so that database support can be set for the
36# Credential Repository.  MySQL package may need to be in its own option
37# eventually
38credentialRepositoryDbSupport = False
39if credentialRepositoryDbSupport:
40    _pkgDependencies += [
41    'SQLObject',
42    'MySQL-python', # TODO: fix gcc error: unrecognized option `-restrict'
43]
44
45# Python 2.5 includes ElementTree by default
46if sys.version_info[0:2] < (2, 5):
47    _pkgDependencies += ['ElementTree', 'cElementTree']
48
49# Sledge hammer approach needed with some packages as they won't install from
50# their PyPI name - instead give explicit URLs to search.  This may cause
51# problems later!
52_pkgDependencyLinks = [
53    # Custom M2Crypto for use with Python MyProxy client
54    "http://ndg.nerc.ac.uk/dist"
55]
56
57
58setup(
59    name =                      'ndg_security_common',
60    version =                   '1.0.0',
61    description = \
62'''NERC DataGrid Security virtual package containing common utilities used
63noth by server and client packages''',
64    long_description =          'Software for securing NDG resources',
65    author =                    'Philip Kershaw',
66    author_email =              'Philip.Kershaw@stfc.ac.uk',
67    maintainer =                'Philip Kershaw',
68    maintainer_email =          'Philip.Kershaw@stfc.ac.uk',
69    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/Security',
70    license =               'Q Public License, version 1.0 or later',
71    install_requires =          _pkgDependencies,
72    dependency_links =          _pkgDependencyLinks,
73    packages =                  find_packages(),
74    namespace_packages =        ['ndg', 'ndg.security'],
75    # This flag will include all files under SVN control or included in
76    # MANIFEST.in.
77    #include_package_data =     True,
78    # Finer grained control of data file inclusion can be achieved with
79    # these parameters.  See the setuptools docs.
80    #package_data =             {}
81    #exclude_package_data =     {}
82    entry_points =         None,
83    test_suite =                   'ndg.security.test',
84    zip_safe =             False
85)
Note: See TracBrowser for help on using the repository browser.