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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/setup.py@2283
Revision 2283, 3.1 KB checked in by pjkersha, 13 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
  • 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#    data_files =            [('share',
83#                              [os.path.join('share', 'ndg-aa'),
84#                               os.path.join('share', 'ndg-ca'),
85#                               os.path.join('share', 'ndg-gk'),
86#                               os.path.join('share', 'ndg-log'),
87#                               os.path.join('share', 'ndg-sm')])
88#                              ],
89    test_suite =                    'ndg.security.test',
90    zip_safe =              False
91)
Note: See TracBrowser for help on using the repository browser.