~ubuntu-branches/ubuntu/karmic/python-scipy/karmic

« back to all changes in this revision

Viewing changes to Lib/gplt/setup_gplt.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T. Chen (new)
  • Date: 2005-03-16 02:15:29 UTC
  • Revision ID: james.westby@ubuntu.com-20050316021529-xrjlowsejs0cijig
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import os, sys
 
4
from scipy_distutils.misc_util import get_path, default_config_dict
 
5
 
 
6
def configuration(parent_package='',parent_path=None):
 
7
    package = 'gplt'
 
8
    local_path = get_path(__name__,parent_path)
 
9
    config = default_config_dict(package,parent_package)
 
10
 
 
11
    if sys.platform == 'win32':
 
12
        data = ['wgnuplot.exe', 'gnuplot_helper.exe']
 
13
        data = [os.path.join(local_path,x) for x in data]
 
14
        config['data_files'].append((os.path.join(parent_package,'gplt'),data))
 
15
    return config
 
16
 
 
17
if __name__ == '__main__':
 
18
    from scipy_distutils.core import setup
 
19
    setup(**configuration())