Changeset 9517


Ignore:
Timestamp:
Jan 27, 2015, 11:58:50 PM (10 years ago)
Author:
steve
Message:

Working on setup.py (still need to get the directories right)

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/setup.py

    r9514 r9517  
    1515    config.add_data_dir('test')
    1616
    17     util_dir = os.path.abspath('../utilities')
     17    print ('************************')
     18    print (__file__)
     19    print (parent_package)
     20    print (top_path)
     21    print ('************************')
     22   
     23    anuga_dir = os.path.abspath(join('..',os.path.dirname(__file__)))
     24    util_dir = join(anuga_dir,'utilities')
    1825   
    1926    config.add_extension('neighbour_mesh_ext',
  • trunk/anuga_core/source/anuga/setup.py

    r7865 r9517  
    1 """ Dummy file - setup would be a script to install ANUGA. """
    2 pass
     1from __future__ import division, print_function, absolute_import
     2
     3import sys
     4
     5
     6def configuration(parent_package='',top_path=None):
     7
     8    from numpy.distutils.misc_util import Configuration
     9
     10    config = Configuration('anuga',parent_package,top_path)
     11    config.add_subpackage('abstract_2d_finite_volumes')
     12    config.add_subpackage('advection')
     13    config.add_subpackage('alpha_shape')
     14    config.add_subpackage('caching')
     15    config.add_subpackage('coordinate_transforms')
     16    config.add_subpackage('culvert_flows')
     17    config.add_subpackage('damage_modelling')
     18    config.add_subpackage('file')
     19    config.add_subpackage('file_conversion')
     20    config.add_subpackage('fit_interpolate')
     21    config.add_subpackage('geometry')
     22    config.add_subpackage('geospatial_data')
     23    config.add_subpackage('lib')
     24    config.add_subpackage('load_mesh')
     25    config.add_subpackage('mesh_engine')
     26    config.add_subpackage('operators')
     27    config.add_subpackage('parallel')
     28    config.add_subpackage('pmesh')
     29    config.add_subpackage('shallow_water')
     30    config.add_subpackage('structures')
     31    config.add_subpackage('tsunami_source')
     32    config.add_subpackage('utilities')
     33    config.add_subpackage('validation_utilities')
     34    config.add_subpackage('visualiser')   
     35    config.make_config_py()
     36    return config
     37
     38if __name__ == '__main__':
     39    from numpy.distutils.core import setup
     40    setup(**configuration(top_path='').todict())
Note: See TracChangeset for help on using the changeset viewer.