Changeset 1942 for TI03-DataExtractor


Ignore:
Timestamp:
03/01/07 12:02:45 (12 years ago)
Author:
spascoe
Message:

Ammendments that make "python setup.py test" fetch dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI03-DataExtractor/branches/repackaging/server/setup.py

    r1941 r1942  
    88 
    99from setuptools import setup, find_packages 
     10 
     11NDG_EGG_REPOSITORY = 'http://ndg.nerc.ac.uk/dist' 
    1012 
    1113from setuptools.command.test import test 
     
    3133    def run(self): 
    3234        import os, pkg_resources, shutil, ConfigParser 
     35 
     36        # Must do this before importing from ndg.dx.server 
     37        if self.distribution.tests_require: 
     38            self.distribution.fetch_build_eggs(self.distribution.tests_require) 
    3339        from ndg.dx.server.MakeConfig import makeTestHome 
    3440 
     
    5359    namespace_packages = ['ndg', 'ndg.dx'], 
    5460 
     61    dependency_links = [NDG_EGG_REPOSITORY, 
     62                        'http://downloads.sourceforge.net/pyxml'], 
    5563    install_requires = ['ZSI==2.0rc3', 'cdat_lite', 
    5664                        'ndg_utils'], 
     
    7280 
    7381    test_suite = 'ndg.dx.server.test.test_suite', 
    74     tests_require = ['ZSI=2.0rc3', 'cdat_lite', 'ndg_utils'], 
     82    tests_require = ['ZSI==2.0rc3', 'cdat_lite', 'ndg_utils'], 
    7583     
    7684    cmdclass = {'test': ndgTest}, 
Note: See TracChangeset for help on using the changeset viewer.