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

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

python/ndg.security.server/setup.py: fixed to correctly install but still problems
with dependencies to resolve e.g. correct install of M2Crypto

python/ndg.security.common/setup.py: initial working version - needs more testing to
iron out bugs.

python/ndg.security.common/ndg/security/common/CredWallet.py: make explicit import from
ndg.security.common.AttAuthority? otherwise seems to cause problems when importing
from egg installed package.

python/ndg.security.common/setup.cfg: remove refs to NDG for include and lib dir paths.

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
[2165]22reposID = "$Id:$"
[1640]23
[1639]24
25# Packages needed for NDG Security
[1647]26# Note commented out ones fail with PyPI - use explicit link instead
[1639]27# TODO: subdivide these into server and client specific and comon dependencies
28_pkgDependencies = [
29    'ElementTree',
30    'cElementTree',
[1701]31#    'm2crypto', # build fails - find way to make it link with /usr/local/NDG openssl installation
[1639]32    'ZSI',
[1647]33#    'Twisted',
34#    'TwistedWeb',
[1653]35    'pycrypto',
[1647]36    'SQLObject',
37#    'MySQL-python', - gcc: unrecognized option `-restrict'
38#    'PyXML'
39]
[1639]40
[1647]41# Sledge hammer approach needed with some packages as they won't install from their PyPI name -
42# instead give the explicit URL.  This may cause problems later!
43_pkgDependencyLinks = [
[2165]44    "ftp://ftp.4suite.org/pub/4Suite/4Suite-XML-1.0.tar.gz",
[1647]45    "http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?use_mirror=kent",
[2165]46#    "http://tmrc.mit.edu/mirror/twisted/Web/0.5/TwistedWeb-0.5.0.tar.bz2",
47#    "http://tmrc.mit.edu/mirror/twisted/Twisted/2.2/TwistedSumo-2006-02-12.tar.bz2",
[1647]48]
[1642]49
[1647]50
[1639]51setupKw = \
[817]52{
[1779]53    'name':                     'ndg.security.common',
[1654]54    'version':                  '0.7.2',
[1779]55    'description':              'NERC DataGrid Security common Utilities',
[1639]56    'long_description':         'Software for securing NDG resources',
57    'author':                   'Philip Kershaw',
58    'author_email':             'P.J.Kershaw@rl.ac.uk',
[1642]59    'maintainer':               'Philip Kershaw',
60    'maintainer_email':         'P.J.Kershaw@rl.ac.uk',
[1639]61    'url':                      'http://proj.badc.rl.ac.uk/ndg',
62    'install_requires':         _pkgDependencies,
[1647]63    'dependency_links':         _pkgDependencyLinks,
[2165]64    'packages':                 find_packages(),
65    'namespace_packages':       ['ndg', 'ndg.security'],
[1639]66    # This flag will include all files under SVN control or included in
67    # MANIFEST.in.
[1653]68    #'include_package_data':    True,
[1639]69    # Finer grained control of data file inclusion can be achieved with
70    # these parameters.  See the setuptools docs.
71    #'package_data':            {}
72    #'exclude_package_data':    {}
[2165]73    'entry_points':        None,
74    'test_suite':                  'ndg.security.test',
75    'zip_safe':            False
[817]76}
[1639]77setup(**setupKw)
Note: See TracBrowser for help on using the repository browser.