source: wxmtxy/trunk/setup.py @ 184

Last change on this file since 184 was 184, checked in by jemian, 13 years ago

keywords

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Revision Author HeadURL Id
File size: 2.6 KB
Line 
1#!/usr/bin/env python
2
3#*************************************************************************
4# Copyright (c) 2009-2010 The University of Chicago, as Operator of Argonne
5#     National Laboratory.
6# Copyright (c) 2009-2010 The Regents of the University of California, as
7#     Operator of Los Alamos National Laboratory.
8# This file is distributed subject to a Software License Agreement found
9# in the file LICENSE that is included with this distribution.
10#*************************************************************************
11
12'''
13configuration for the distutils installation method
14
15########### SVN repository information ###################
16# $Date: 2010-06-03 21:04:15 +0000 (Thu, 03 Jun 2010) $
17# $Author: jemian $
18# $Revision: 184 $
19# $URL: wxmtxy/trunk/setup.py $
20# $Id: setup.py 184 2010-06-03 21:04:15Z jemian $
21########### SVN repository information ###################
22
23  for more help, see:
24  http://wiki.python.org/moin/Distutils/Tutorial
25  http://www.py2exe.org/index.cgi/Tutorial
26  http://www.linux.com/feature/118439
27  http://wiki.python.org/moin/Distutils
28
29'''
30
31import wxmtxy_version
32import pydoc
33from distutils.core import setup
34
35
36graphics_dir = "graphics"
37graphics = [
38        "graphics/delete.bmp",
39        "graphics/set.bmp",
40        "graphics/go.bmp"
41]
42
43examples_dir = "examples"
44examples = [
45        "examples/USAXS_XY.xml",
46        "examples/standard-paddle.txt",
47        "examples/test-settings.xml"
48]
49data_files = [
50        (examples_dir, examples),
51        (graphics_dir, graphics),
52        ('.', 'LICENSE')
53]
54packages = []
55scripts = [
56    'wxmtxy.py',
57    'wxmtxy_root.py',
58    'wxmtxy_pair.py',
59    'wxmtxy_tab.py',
60    'wxmtxy_row.py',
61    'wxmtxy_xml.py',
62    'wxmtxy_pvsetup.py',
63    'wxmtxy_axis.py',
64    'wxmtxy_version.py',
65    'wxmtxy_htmlview.py',
66    'pvConnect.py'
67]
68py2exe_options = {
69    "compressed": 1,
70    "optimize": 2,
71    "ascii": 1,
72    "bundle_files": 1
73}
74# write the Python documentation to HTML files
75pydoc.writedocs('.')
76
77class Target:
78    def __init__(self, **kw):
79        self.__dict__.update(kw)
80        # for the versioninfo resources
81        self.name = wxmtxy_version.__target_name__
82        self.version = wxmtxy_version.__version__
83        self.company_name = wxmtxy_version.__company_name__
84        self.copyright = wxmtxy_version.__copyright__
85        self.license = wxmtxy_version.__license__
86
87
88# see: http://wiki.python.org/moin/Distutils/Tutorial
89setup(
90    name = wxmtxy_version.__target_name__,
91    version = wxmtxy_version.__version__,
92    description = wxmtxy_version.__summary__,
93    long_description = wxmtxy_version.__long_description__,
94    author = wxmtxy_version.__author__,
95    author_email = wxmtxy_version.__author_email__,
96    license = wxmtxy_version.__license__,
97    url = wxmtxy_version.__url__,
98    scripts = scripts,
99    data_files = data_files,
100)
Note: See TracBrowser for help on using the repository browser.