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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.common/setup.py@2283
Revision 2283, 3.1 KB checked in by pjkersha, 12 years ago (diff)

ndg.security.server/setup.py:

  • added correct zope.interface dependency
  • changed egg name ndg.security.server to ndg_security_server otherwise it causes problems for easy_install to

find it when set as a dependency.

ndg.security.common/setup.py:

  • likewise to the above, changed name to ndg_security_common

setup.py:

  • simplified setup setting only the ndg security eggs as dependencies.

ndg.security.client/setup.py:

  • as above - simplified to set only the ndg security eggs as dependencies.

ndg.security.client/setup.cfg:

  • set tag to _dews
Line 
1#!/usr/bin/env python
2
3"""Distribution Utilities setup program for NDG Security Package
4
5NERC Data Grid Project
6
7P J Kershaw 24/04/06
8
9Copyright (C) 2006 CCLRC & NERC
10
11This software may be distributed under the terms of the Q Public License,
12version 1.0 or later.
13"""
14# Bootstrap setuptools if necessary.
15from ez_setup import use_setuptools
16use_setuptools()
17
18from setuptools import setup, find_packages
19
20import os, sys
21
22__revision__ = "$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 >= 2.0_rc3',
30    '4Suite-XML >= 1.0rc3',
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
38credReposDbSupport = False
39if credReposDbSupport:
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, 4):
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    # ZSI - use this link to ensure correct dependency download for PyXML
57    "http://www.python.org/pypi/ZSI",
58   
59    # PyPI doesn't have PyXML > 0.8.3 so give soureforge location instead
60    "http://downloads.sourceforge.net/pyxml",
61   
62    # Twisted won't install as an egg
63#    "http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2",
64#    "http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2",
65]
66
67
68setup(
69    name =                      'ndg_security_common',
70    version =                   '0.7.2',
71    description =               
72'''NERC DataGrid Security virtual package containing common utilities used
73noth by server and client packages''',
74    long_description =          'Software for securing NDG resources',
75    author =                    'Philip Kershaw',
76    author_email =              'P.J.Kershaw@rl.ac.uk',
77    maintainer =                'Philip Kershaw',
78    maintainer_email =          'P.J.Kershaw@rl.ac.uk',
79    url =                       'http://proj.badc.rl.ac.uk/ndg',
80    license =               'Q Public License, version 1.0 or later',
81    install_requires =          _pkgDependencies,
82    dependency_links =          _pkgDependencyLinks,
83    packages =                  find_packages(),
84    namespace_packages =        ['ndg', 'ndg.security'],
85    # This flag will include all files under SVN control or included in
86    # MANIFEST.in.
87    #'include_package_data =    True,
88    # Finer grained control of data file inclusion can be achieved with
89    # these parameters.  See the setuptools docs.
90    #'package_data =            {}
91    #'exclude_package_data =    {}
92    entry_points =         None,
93    test_suite =                   'ndg.security.test',
94    zip_safe =             False
95)
Note: See TracBrowser for help on using the repository browser.