diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 18:55:03 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 18:55:03 +0000 |
commit | 951cdad1a9b0a15b673bf56aecc1fef5066061f3 (patch) | |
tree | f307f0f2ebf404526fcc671958e8ea836b53baf9 /distutils/examples/setup_module_pure_data.py | |
parent | c261078e9c2d8fd958bf8b3758cdd07add5fc2e3 (diff) | |
download | numpy-951cdad1a9b0a15b673bf56aecc1fef5066061f3.tar.gz |
renamed directories
Diffstat (limited to 'distutils/examples/setup_module_pure_data.py')
-rw-r--r-- | distutils/examples/setup_module_pure_data.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/distutils/examples/setup_module_pure_data.py b/distutils/examples/setup_module_pure_data.py new file mode 100644 index 000000000..a5cffa822 --- /dev/null +++ b/distutils/examples/setup_module_pure_data.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +from os.path import join +from glob import glob +from scipy_distutils.core import setup +from scipy_distutils.misc_util import default_config_dict, get_path + +def configuration(parent_package='',parent_path=None): + package_name = 'module' + config = default_config_dict(package_name, parent_package) + + local_path = get_path(__name__,parent_path) + install_path = join(*config['name'].split('.')) + + config['data_files'].append((install_path, + [join(local_path,'images.zip')])) + + config['data_files'].append((join(install_path,'images'), + glob(join(local_path,'images','*.png')))) + + return config + +if __name__ == '__main__': + setup(**configuration(parent_path='')) |