source: TI12-security/trunk/python/ndg.security.server/setup.py @ 2298

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

ndg.security.server/setup.py: include .tac and .sh files using the package_data keyword

installServer.py renamed -> ndg-security-install.sh; also replaced system calls with subprocess.call. Needs
testing

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3"""Distribution Utilities setup program for NDG Security Server Package
4
5NERC Data Grid Project
6
7P J Kershaw 24/04/06
8
9Copyright (C) 2007 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
21
22__revision__ = "$Id:$"
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    'ndg_security_common',
29   
30    # Zope interface
31    'zope.interface'
32]
33
34# Installation location for configuration and share files
35#ndgDir = os.environ.get('NDG_DIR') or os.environ.get('NDG_HOME') or \
36#        os.path.join('/', 'etc', 'ndg')
37#
38#dataSubDirs = ('conf', 'share')
39#dataDirs = {}.fromkeys(dataSubDirs)
40#for dir in dataSubDirs:
41#    dataDirs[dir] = os.path.join(ndgDir, dir)
42#   
43#    # Ensure path is set up OK
44#    try:
45#        os.makedirs(dataDirs[dir], 0755)
46#    except OSError, e:
47#        if e.errno != 17:
48#            raise SystemExit, "Error creating data directory: " + str(e)
49#        else:
50#            pass
51   
52setup(
53    name =                      'ndg_security_server',
54    version =                   '0.7.2',
55    description =               'NERC DataGrid Security Services',
56    long_description =          'Server side component for securing NDG resources',
57    author =                    'Philip Kershaw',
58    author_email =              'P.J.Kershaw@rl.ac.uk',
59    maintainer =                'Philip Kershaw',
60    maintainer_email =          'P.J.Kershaw@rl.ac.uk',
61    url =                       'http://proj.badc.rl.ac.uk/ndg',
62    license =               'Q Public License, version 1.0 or later',
63    install_requires =          _pkgDependencies,
64   
65    # Set ndg.security.common dependency.  Also, sledge hammer approach needed
66    # with some packages as they won't install from their PyPI name - instead give
67    # the explicit URL.  This may cause problems later!
68    dependency_links = [
69        "http://ndg.nerc.ac.uk/dist",
70       
71        # Zope Interface
72        "http://www.zope.org/Products/ZopeInterface/" 
73        ],
74
75    # These will have to be installed manually - they won't currently 'eggify'
76    #    http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2
77    #    http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2
78
79    packages =                      find_packages(),
80    namespace_packages =        ['ndg', 'ndg.security'],
81    package_data =          {'ndg.security.server.conf': ['*.xml'],
82                             'ndg.security.server.share': ['*'],
83                             'ndg.security.server.AttAuthority': ['*.tac', 
84                                                                  '*.sh'],
85                             'ndg.security.server.SessionMgr': ['*.tac', 
86                                                                '*.sh'],
87                             'ndg.security.server.ca': ['*.tac', '*.sh']},
88#    data_files =            [('share',
89#                              [os.path.join('share', 'ndg-aa'),
90#                               os.path.join('share', 'ndg-ca'),
91#                               os.path.join('share', 'ndg-gk'),
92#                               os.path.join('share', 'ndg-log'),
93#                               os.path.join('share', 'ndg-sm')])
94#                              ],
95    test_suite =                    'ndg.security.test',
96    zip_safe =              False
97)
Note: See TracBrowser for help on using the repository browser.