source: TI12-security/trunk/python/setup.py @ 1711

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

SessionMgr_services_server.py: moved to SessionMgr? server package.
ndg.security.server/ndg/security/init.py: doesn't need to be a namespace
package
ndg.security.common/ndg/security/common/AttAuthorityClient.py: separated
AttAuthorityClient?* classes from SecurityClient? to the common package as
the CredWallet? needs it. CredWallet? is itself in common because it's used
by the SessionMgr? in the server package and must also be available in the
client package in case client app writers don't want to use the SessionMgr?
to keep wallet info.
ndg.security.common/ndg/security/common/CredWallet.py: modified import test -
now checks for availability of new AttAuthorityClient? module in common
package.
setup.py, setup.cfg: these are needed for making the egg that installs the
whole of the security system, server, client and common.

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
21
22reposID = "$Id$"
23
24# Get latest SubVersion revision for use with release ID
25_svnRev = "$Revision$"
26if "Revision" in _svnRev:
27    _version = 'DevPostAlpha'
28else:
29    _version = "DevPostAlpha-" + _svnRev
30
31# Packages needed for NDG Security
32# Note commented out ones fail with PyPI - use explicit link instead
33# TODO: subdivide these into server and client specific and comon dependencies
34_pkgDependencies = [
35    'ElementTree',
36    'cElementTree',
37#    'm2crypto', # build fails - find way to make it link with /usr/local/NDG openssl installation
38    'ZSI',
39#    '4Suite', don't need to include it as ZSI egg will get this instead
40#    'Twisted',
41#    'TwistedWeb',
42#    'ZopeInterface',
43    'pycrypto',
44    'SQLObject',
45#    'MySQL-python', - gcc: unrecognized option `-restrict'
46#    'PyXMLSec',
47#    'PyXML'
48]
49
50# Sledge hammer approach needed with some packages as they won't install from their PyPI name -
51# instead give the explicit URL.  This may cause problems later!
52_pkgDependencyLinks = [
53    "http://www.zope.org/Products/ZopeInterface/3.0.1final/ZopeInterface-3.0.1.tgz",
54    "http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?use_mirror=kent",
55    "http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2",
56    "http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2",
57]
58
59#_pkgs = ['ndg',
60#         'ndg.security',
61#         'ndg.security.server',
62#         'ndg.security.client']
63#
64#_namespacePkgs = ['ndg',
65#                 'ndg.security',
66#                 'ndg.security.server',
67#                 'ndg.security.client']
68import pdb;pdb.set_trace()
69_serverPkgs = ['ndg.security.server.%s' % \
70         pkg for pkg in find_packages('ndg/security/server')]
71_clientPkgs = ['ndg.security.client.%s' % \
72         pkg for pkg in find_packages('ndg/security/client')]
73_pkg = ['ndg.security.server']
74_namespacePkgs = _pkgs
75
76_entryPoints = \
77{
78    'console_scripts': ['ndgSessionClient = ndg.security.client.ndgSessionClient:main']
79}
80
81setupKw = \
82{
83    'name':                     'ndg-security',
84    'version':                  '0.7.2',
85    'description':              'NERC DataGrid Security Utilities',
86    'long_description':         'Software for securing NDG resources',
87    'author':                   'Philip Kershaw',
88    'author_email':             'P.J.Kershaw@rl.ac.uk',
89    'maintainer':               'Philip Kershaw',
90    'maintainer_email':         'P.J.Kershaw@rl.ac.uk',
91    'url':                      'http://proj.badc.rl.ac.uk/ndg',
92    'install_requires':         _pkgDependencies,
93    'dependency_links':         _pkgDependencyLinks,
94#    'packages':                find_packages('ndg'),
95    'packages':                     _pkgs,
96    'namespace_packages':       _namespacePkgs,
97    # This flag will include all files under SVN control or included in
98    # MANIFEST.in.
99    #'include_package_data':    True,
100    # Finer grained control of data file inclusion can be achieved with
101    # these parameters.  See the setuptools docs.
102    #'package_data':            {}
103    #'exclude_package_data':    {}
104    'entry_points':        _entryPoints,
105    #'tSest_suite':                'ndg.utils.test.suite',
106}
107setup(**setupKw)
Note: See TracBrowser for help on using the repository browser.