예제 #1
0
pyrcc_opts = {
    'infile': join('qrc', 'cat_rc.qrc'),
    'outfile': join('cat', 'cat_rc.py'),
    'pyrccbin': 'pyrcc5'
}

help_opts = {
    'infile': join('doc', 'annotationtool.qhcp'),
    'outfile': join('cat', 'gui', 'helpbrowser', 'annotationtool.qhc'),
    '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,
예제 #2
0
파일: setup_mac.py 프로젝트: rhoef/afw
               "matplotlib_backends": ["qt5agg"]}


pyrcc_opts = {'infile': join('qrc', 'cat_rc.qrc'),
              'outfile': join('cat', 'cat_rc.py'),
              'pyrccbin': 'pyrcc5'}

help_opts = {'infile': join('doc', 'annotationtool.qhcp'),
             'outfile':
             join('cat', 'gui', 'helpbrowser', 'annotationtool.qhc'),
             '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'],
      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,
예제 #3
0
파일: setup_mac.py 프로젝트: jni/cecog
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},
      packages = packages,
      setup_requires=['py2app'],
      ext_modules = [ccore],
      **build_helpers.metadata)
예제 #4
0
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
      },
      packages=packages,