Пример #1
0
Файл: setup.py Проект: rhoef/afw
              'outfile': join('cat', 'cat_rc.py'),
              'pyrccbin': join('C:\\', 'Python27', 'Lib', 'site-packages',
                               'PyQt5', 'pyrcc5.exe')}

help_opts = {'infile': join('doc', 'annotationtool.qhcp'),
             'outfile':
             join('cat', 'gui', 'helpbrowser', 'annotationtool.qhc'),
             'qcollectiongeneator': 'qcollectiongenerator'}

setup(name='CellAnnotator',
      version=version.version,
      description=('Interactive Tool for fast and intuitive'
                   ' classifier training'),
      author='Rudolf Hoefler',
      author_email='*****@*****.**',
      packages = build_helpers.find_submodules("./cat", "cat"),
      data_files=[(join('share','CellAnnotator'), glob.glob('./qrc/*.ico'))],
      package_data = {'cat': ['gui/*.ui', 'gui/sidebar/*.ui',
                              'gui/segmentation/*.ui',
                              'gui/helpbrowser/*.ui',
                              'plots/*.ui',
                              'gui/helpbrowser/annotationtool.qhc',
                              'gui/helpbrowser/annotationtool.qch'],},
      scripts = ['CellAnnotator.py', 'postinstall.py'],
      cmdclass = {'build_rcc': build_helpers.BuildRcc,
                  'build_help': build_helpers.BuildHelp,
                  'build': build_helpers.Build},
      options = {'build_rcc': rcc_opts,
                 'build_help': help_opts,
                 'bdist_wininst':
                     {'install_script': 'postinstall.py'}})
Пример #2
0
help_opts = {'infile': join('doc', 'manual.qhcp'),
             'outfile': join('resources', 'doc', 'manual.qhc'),
             'qcollectiongeneator': 'qcollectiongenerator'}

ccore = Extension('cecog.ccore._cecog',
                  sources = [join('csrc','src', 'cecog.cxx')],
                  libraries = ['vigraimpex', 'boost_python'],
                  include_dirs = build_helpers.CC_INCLUDES,
                  extra_object = ['tiff'],
                  extra_compile_args = ['-O3', '-fPIC'],
                  language = 'c++')


# python package to distribute
packages = build_helpers.find_submodules("./cecog", "cecog")
scripts = [join('scripts', 'CecogAnalyzer.py')]

dfiles = build_helpers.get_data_files(build_helpers.TARGET_BUNDLE)
# no ui files in package data for py2app
uifiles = build_helpers.find_uifiles('./cecog', build_helpers.TARGET_BUNDLE)
dfiles.append(uifiles)

setup(app = scripts,
      data_files = dfiles,
      options = {"py2app": py2app_opts,
                 "build_help": help_opts,
                 "build_rcc": pyrcc_opts},
      cmdclass = {'build_rcc': build_helpers.BuildRcc,
                  'build_help': build_helpers.BuildHelp,
                  'build': build_helpers.Build},
Пример #3
0
    'qcollectiongeneator': 'qcollectiongenerator'
}

# python package to distribute
dfiles = build_helpers.get_data_files("./cat")
# no ui files in package data for py2app
uifiles = build_helpers.find_uifiles('./cat')
dfiles.append(uifiles)

setup(
    app=['CellAnnotator.py'],
    #name='CellAnnotator',
    version=version.version,
    description=('Interactive Tool for fast and intuitive'
                 ' classifier training'),
    author='Rudolf Hoefler',
    author_email='*****@*****.**',
    packages=build_helpers.find_submodules("./cat", "cat"),
    data_files=dfiles,
    options={
        "py2app": py2app_opts,
        "build_help": help_opts,
        "build_rcc": pyrcc_opts
    },
    cmdclass={
        'build_rcc': build_helpers.BuildRcc,
        'build_help': build_helpers.BuildHelp,
        'build': build_helpers.Build
    },
    setup_requires=['py2app'])
Пример #4
0
help_opts = {
    'infile': join('doc', 'manual.qhcp'),
    'outfile': join('resources', 'doc', 'manual.qhc'),
    'qcollectiongeneator': 'qcollectiongenerator'
}

ccore = Extension('cecog.ccore._cecog',
                  sources=[join('csrc', 'src', 'cecog.cxx')],
                  libraries=['vigraimpex', 'boost_python'],
                  include_dirs=build_helpers.CC_INCLUDES,
                  extra_object=['tiff'],
                  extra_compile_args=['-O3', '-fPIC'],
                  language='c++')

# python package to distribute
packages = build_helpers.find_submodules("./cecog", "cecog")
scripts = [join('scripts', 'CecogAnalyzer.py')]

dfiles = build_helpers.get_data_files(build_helpers.TARGET_BUNDLE)
# no ui files in package data for py2app
uifiles = build_helpers.find_uifiles('./cecog', build_helpers.TARGET_BUNDLE)
dfiles.append(uifiles)

setup(app=scripts,
      data_files=dfiles,
      options={
          "py2app": py2app_opts,
          "build_help": help_opts,
          "build_rcc": pyrcc_opts
      },
      cmdclass={