Ignore:
Timestamp:
15/03/07 13:49:07 (13 years ago)
Author:
pjkersha
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/setup.py

    r2270 r2283  
    2020import os 
    2121 
    22 __revision__ = "$Id$" 
     22__revision__ = "$Id:$" 
    2323 
    24 # Get latest SubVersion revision for use with release ID 
    25 _svnRev = "$Revision$" 
    26 if "Revision" in _svnRev: 
    27     _version = 'DevPostAlpha' 
    28 else: 
    29     _version = "DevPostAlpha-" + _svnRev 
    3024 
    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'] 
    68 import 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  
    81 setupKw = \ 
    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 } 
    107 setup(**setupKw) 
     25setup( 
     26    name =                      'ndg_security', 
     27    version =                   '0.7.2', 
     28    description =               'NERC DataGrid Security Utilities', 
     29    long_description =          'Software for securing NDG resources', 
     30    author =                    'Philip Kershaw', 
     31    author_email =              'P.J.Kershaw@rl.ac.uk', 
     32    maintainer =                'Philip Kershaw', 
     33    maintainer_email =          'P.J.Kershaw@rl.ac.uk', 
     34    url =                   'http://proj.badc.rl.ac.uk/ndg', 
     35    install_requires =      ['ndg_security_client', 'ndg_security_server'], 
     36    dependency_links =      ["http://ndg.nerc.ac.uk/dist"], 
     37    packages =              find_packages(), 
     38    namespace_packages =    ['ndg', 'ndg.security'], 
     39) 
Note: See TracChangeset for help on using the changeset viewer.