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

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

Updates to server and common egg setup scripts to allow fresh python installation. server setup tested
but still missing some dependencies. Dependencies need splitting between client, server and common
packages.

RevLine 
[817]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"""
[1639]14# Bootstrap setuptools if necessary.
15from ez_setup import use_setuptools
16use_setuptools()
17
18from setuptools import setup, find_packages
19
[817]20import os
21
[1641]22reposID = "$Id$"
[1640]23
[1639]24# Get latest SubVersion revision for use with release ID
[1641]25_svnRev = "$Revision$"
[1642]26if "Revision" in _svnRev:
27    _version = 'DevPostAlpha'
28else:
29    _version = "DevPostAlpha-" + _svnRev
[1639]30
31# Packages needed for NDG Security
[1647]32# Note commented out ones fail with PyPI - use explicit link instead
[1639]33# TODO: subdivide these into server and client specific and comon dependencies
34_pkgDependencies = [
35    'ElementTree',
36    'cElementTree',
[1701]37#    'm2crypto', # build fails - find way to make it link with /usr/local/NDG openssl installation
[1639]38    'ZSI',
[1647]39#    '4Suite', don't need to include it as ZSI egg will get this instead
40#    'Twisted',
41#    'TwistedWeb',
42#    'ZopeInterface',
[1653]43    'pycrypto',
[1647]44    'SQLObject',
45#    'MySQL-python', - gcc: unrecognized option `-restrict'
46#    'PyXMLSec',
47#    'PyXML'
48]
[1639]49
[1647]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]
[1642]58
[1779]59_pkgs = ['ndg.security.common.%s' % \
60         pkg for pkg in find_packages('ndg/security/common')]
[1778]61_namespacePkgs = ['ndg', 'ndg.security']
[1647]62
[1639]63setupKw = \
[817]64{
[1779]65    'name':                     'ndg.security.common',
[1654]66    'version':                  '0.7.2',
[1779]67    'description':              'NERC DataGrid Security common Utilities',
[1639]68    'long_description':         'Software for securing NDG resources',
69    'author':                   'Philip Kershaw',
70    'author_email':             'P.J.Kershaw@rl.ac.uk',
[1642]71    'maintainer':               'Philip Kershaw',
72    'maintainer_email':         'P.J.Kershaw@rl.ac.uk',
[1639]73    'url':                      'http://proj.badc.rl.ac.uk/ndg',
74    'install_requires':         _pkgDependencies,
[1647]75    'dependency_links':         _pkgDependencyLinks,
[1653]76#    'packages':                find_packages('ndg'),
[1701]77    'packages':                     _pkgs,
78    'namespace_packages':       _namespacePkgs,
[1639]79    # This flag will include all files under SVN control or included in
80    # MANIFEST.in.
[1653]81    #'include_package_data':    True,
[1639]82    # Finer grained control of data file inclusion can be achieved with
83    # these parameters.  See the setuptools docs.
84    #'package_data':            {}
85    #'exclude_package_data':    {}
[1653]86    'entry_points':        _entryPoints,
[1701]87    #'tSest_suite':                'ndg.utils.test.suite',
[817]88}
[1639]89setup(**setupKw)
Note: See TracBrowser for help on using the repository browser.