Changeset 1444


Ignore:
Timestamp:
Oct 15, 2013 9:10:11 PM (9 years ago)
Author:
jemian
Message:

refactor

Location:
bcdaqwidgets/trunk
Files:
1 added
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • bcdaqwidgets/trunk/docs/source/src/demos.rst

    r1443 r1444  
    1010    :members:
    1111
     12vlinac
     13------------
     14
     15.. automodule:: bcdaqwidgets_demos.vlinac
     16    :members:
     17
    1218pyside_probe
    1319---------------
     
    1521.. automodule:: bcdaqwidgets_demos.pyside_probe
    1622    :members:
    17 
    18 vlinac
    19 ------------
    20 
    21 .. automodule:: bcdaqwidgets_demos.vlinac
    22     :members:
  • bcdaqwidgets/trunk/setup.py

    r1443 r1444  
    2727requires = ['Sphinx>=0.6']
    2828
     29packages = {}
     30for pkg in ('bcdaqwidgets', 'bcdaqwidgets_demos', 'motorqt_demo'):
     31    packages[pkg]       = os.path.join('src', pkg)
     32
     33console_scripts = []
     34for launcher, method_path in {
     35    'pvview': 'bcdaqwidgets.pvview:main',
     36    #'pyside_probe': 'bcdaqwidgets_demos.pyside_probe:main',
     37    'motor_qt': 'motorqt_demo.motor_qt:main',
     38    'multimotor': 'motorqt_demo.multimotor:main',
     39                 }.items():
     40    console_scripts.append(launcher + ' = ' + method_path)
     41
    2942setup(
    3043        name=bcdaqwidgets.__project__,
     
    3548        author_email=bcdaqwidgets.__author_email__,
    3649        url=bcdaqwidgets.__url__,
    37         packages=['bcdaqwidgets', 'bcdaqwidgets_demos', ],
     50        packages=packages.keys(),
    3851        license = bcdaqwidgets.__license__,
    39         package_dir={
    40             'bcdaqwidgets':        os.path.join('src', 'bcdaqwidgets'),
    41             'bcdaqwidgets_demos':  os.path.join('src', 'bcdaqwidgets_demos'),
    42         },
     52        package_dir=packages,
    4353        platforms='any',
    4454        zip_safe=False,
     
    5767        ],
    5868      entry_points={
    59           # create & install launchers in <python>/bin
    60           'console_scripts':[
    61               'pvview = bcdaqwidgets_demos.pvview:main',
    62               'pyside_probe = bcdaqwidgets_demos.pyside_probe:main',
    63           ]
     69          # create & install console_scripts in <python>/bin
     70          'console_scripts': console_scripts,
    6471      },
    6572     )
  • bcdaqwidgets/trunk/src/motorqt_demo/starter.pyw

    r1403 r1444  
    55'''
    66
     7import mainwindow
     8
     9if __name__ == '__main__':
     10    mainwindow.main()
    711
    812########### SVN repository information ###################
     
    1317# $Id: mainwindow.py 1189 2013-02-06 00:26:21Z jemian $
    1418########### SVN repository information ###################
    15 
    16 
    17 import mainwindow
    18 
    19 
    20 if __name__ == '__main__':
    21     mainwindow.main()
Note: See TracChangeset for help on using the changeset viewer.