Ignore:
Timestamp:
08/12/06 13:15:18 (14 years ago)
Author:
spascoe
Message:

Moved import statements out of init.py.

File:
1 edited

Legend:

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

    r1841 r1843  
    99from setuptools import setup, find_packages 
    1010 
    11 # 'python setup.py test' imports modules in the package before it runs the test_suite 
    12 # This screws up any attempt to set NDG_HOME and put a suitable ndg.conf in it for testing. 
    13 # I'm hoping this will solve the problem. 
    1411from setuptools.command.test import test 
    1512class ndgTest(test): 
     
    2825 
    2926    def finalize_options(self): 
    30         test.initialize_options(self) 
     27        test.finalize_options(self) 
    3128        if not self.test_home: 
    3229            self.test_home = './test_ndg_home' 
     
    3835        if os.path.exists(self.test_home): 
    3936            shutil.rmtree(self.test_home) 
    40             os.mkdir(self.test_home) 
     37        os.mkdir(self.test_home) 
    4138        # Set NDG_HOME to be picked up by ndg.utils.config 
    4239        os.environ['NDG_HOME'] = self.test_home 
    4340 
     41        # At this point it is safe to import the configuration. 
    4442        # get global configuration (this will read /etc/ndg.conf) 
    4543        from ndg.utils.config import config 
     
    5957        # Run the tests 
    6058        return test.run(self) 
     59 
    6160 
    6261setup( 
Note: See TracChangeset for help on using the changeset viewer.