source: wxmtxy/trunk/src/setup.py @ 632

Last change on this file since 632 was 632, checked in by jemian, 12 years ago

continuing...

  • 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.5 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: 2011-09-09 17:16:30 +0000 (Fri, 09 Sep 2011) $
17# $Author: jemian $
18# $Revision: 632 $
19# $URL: wxmtxy/trunk/src/setup.py $
20# $Id: setup.py 632 2011-09-09 17:16:30Z 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
31from moxy import 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    'moxy.py',
57    'root.py',
58    'pair.py',
59    'tab.py',
60    'row.py',
61    'moxy_xml.py',
62    'pvsetup.py',
63    'moxy_axis.py',
64    'version.py',
65    '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         = version.__target_name__
82        self.version      = version.__version__
83        self.company_name = version.__company_name__
84        self.copyright    = version.__copyright__
85        self.license      = version.__license__
86
87
88# see: http://wiki.python.org/moin/Distutils/Tutorial
89setup(
90    name             = version.__target_name__,
91    version          = version.__version__,
92    description      = version.__summary__,
93    long_description = version.__long_description__,
94    author           = version.__author__,
95    author_email     = version.__author_email__,
96    license          = version.__license__,
97    url              = version.__url__,
98    scripts          = scripts,
99    data_files       = data_files,
100)
Note: See TracBrowser for help on using the repository browser.