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

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

python/ndg.security.server/setup.py: try adding conf to server egg.
python/ndg.security.server/setup.cfg: get rid of NDG dir refs
python/conf/sqlObjectCredReposProperties.xml: previously omitted - add now so conf dir
can be moved to server pacakge.

  • 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
22reposID = "$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    'ElementTree',
29    'cElementTree',
30#    'm2crypto', # build fails - find way to make it link with /usr/local/NDG openssl installation
31    'ZSI',
32#    '4Suite',
33#    'Twisted',
34#    'TwistedWeb',
35#    'ZopeInterface',
36    'pycrypto',
37    'SQLObject',
38#    'MySQL-python', - gcc: unrecognized option `-restrict'
39#    'PyXMLSec',
40#    'PyXML'
41]
42
43# Sledge hammer approach needed with some packages as they won't install from their PyPI name -
44# instead give the explicit URL.  This may cause problems later!
45_pkgDependencyLinks = [
46    "ftp://ftp.4suite.org/pub/4Suite/4Suite-XML-1.0.tar.gz",
47    "http://www.zope.org/Products/ZopeInterface/3.0.1final/ZopeInterface-3.0.1.tgz",
48    "http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?use_mirror=kent",
49#    "http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2",
50#    "http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2",
51]
52
53_pkgs = ['ndg.security.server.%s' % \
54         pkg for pkg in \
55         find_packages(os.path.join('ndg', 'security', 'server'))]
56_pkgs.append('../conf')
57import pdb;pdb.set_trace()
58_entryPoints = None
59
60setupKw = \
61{
62    'name':                     'ndg.security.server',
63    'version':                  '0.7.2',
64    'description':              'NERC DataGrid Security Services',
65    'long_description':         'Server side component for securing NDG resources',
66    'author':                   'Philip Kershaw',
67    'author_email':             'P.J.Kershaw@rl.ac.uk',
68    'maintainer':               'Philip Kershaw',
69    'maintainer_email':         'P.J.Kershaw@rl.ac.uk',
70    'url':                      'http://proj.badc.rl.ac.uk/ndg',
71    'install_requires':         _pkgDependencies,
72    'dependency_links':         _pkgDependencyLinks,
73    'packages':                     _pkgs,
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': {'conf':['*.xml']},
81    #'exclude_package_data':    {}
82    'entry_points':        _entryPoints,
83    #'test_suite':                 'ndg.security.test',
84}
85setup(**setupKw)
Note: See TracBrowser for help on using the repository browser.