Beispiel #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={
Beispiel #2
0
               "packages": ["h5py","skimage","sklearn", "PIL"],
               "arch": "x86_64",
               "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,
Beispiel #3
0
             '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},
      packages = packages,
      setup_requires=['py2app'],
      ext_modules = [ccore],
Beispiel #4
0
    '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
Beispiel #5
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')],
                  include_dirs=build_helpers.CC_INCLUDES,
                  libraries=['boost_python', 'tiff', 'vigraimpex'],
                  extra_compile_args = ['-O3', '-fPIC'],
                  language = 'c++')

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

setup(scripts = scripts,
      data_files = build_helpers.get_data_files(build_helpers.TARGET_SYS,
                                                mpl_data=False,
                                                qt_plugins=False),
      cmdclass = {'build_rcc': build_helpers.BuildRcc,
                  'build_help': build_helpers.BuildHelp,
                  'build': build_helpers.Build},
      packages = packages,
      package_data = {'cecog': [join('gui', '*.ui'),
                                join('gui', 'helpbrowser', '*.ui')]},
      options = {'build_rcc': pyrcc_opts,
                 'build_help': help_opts},
      ext_modules = [ccore],
      **build_helpers.metadata)
Beispiel #6
0
library_dirs = []

ccore = Extension('cecog.ccore._cecog',
                  sources = [join('csrc','src', 'cecog.cxx')],
                  include_dirs = includes,
                  libraries = libraries,
                  library_dirs = library_dirs,
                  extra_compile_args = ["/bigobj", "/EHsc"],
                  language = 'c++')

# python package to distribute
packages = build_helpers.find_submodules("./cecog", "cecog")

# special casing for system installation or py2exe bundle
if "py2exe" in sys.argv:
    dfiles = build_helpers.get_data_files(build_helpers.TARGET_BUNDLE)
else:
    build_helpers.metadata['name'] = 'cellcognition'
    dfiles = build_helpers.get_data_files(build_helpers.TARGET_SYS,
                                          mpl_data=False)

if "bdist_wininst" in sys.argv:
    from distutils.sysconfig import get_python_lib
    dllpath = find_library("vigraimpex")
    # assuming all dlls in the same directory,
    # lib/site-packages is also windows specific
    dlls = (join("lib", "site-packages", "cecog", "ccore"),
            glob.glob(dllpath.replace("vigraimpex", "*")))
    dfiles.append(dlls)

setup(options = {"py2exe": py2exe_opts,
Beispiel #7
0
    'infile': 'cecog.qrc',
    'outfile': join('cecog', 'cecog_rc.py'),
    'pyrccbin': 'pyrcc4'
}

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

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

setup(scripts=scripts,
      data_files=build_helpers.get_data_files(build_helpers.TARGET_SYS,
                                              mpl_data=False),
      cmdclass={
          'pyrcc': build_helpers.PyRcc,
          'build': build_helpers.Build
      },
      packages=packages,
      options={'pyrcc': pyrcc_opts},
      ext_modules=[ccore],
      **build_helpers.metadata)
Beispiel #8
0
            'cecog.gui',
            'cecog.gui.analyzer',
            'cecog.gui.modules',
            'cecog.gui.widgets',
            'cecog.io',
            'cecog.learning',
            'cecog.multiprocess',
            'cecog.plugin',
            'cecog.plugin.segmentation',
            'cecog.threads',
            'cecog.traits',
            'cecog.traits.analyzer',
            'cecog.util',
            'pdk']

setup(options = {"py2exe": py2exe_opts,
                 'pyrcc': pyrcc_opts},
      cmdclass = {'pyrcc': build_helpers.PyRcc,
                  'build': build_helpers.Build},
      packages = packages,
      package_dir = {'cecog': join('pysrc', 'cecog'),
                     'pdk': join('pysrc', 'pdk')},
      data_files = build_helpers.get_data_files(),
      # zipfile = "data.zip",
      windows = [{'script': join('scripts', 'CecogAnalyzer.py'),
                  'icon_resources': [(1, 'resources\cecog_analyzer_icon.ico')]
                  }],
      console = [{'script': join('scripts', 'cecog_batch.py')}],
      ext_modules = [ccore],
      **build_helpers.metadata)
Beispiel #9
0
            'cecog.extensions',
            'cecog.gui',
            'cecog.gui.analyzer',
            'cecog.gui.modules',
            'cecog.gui.widgets',
            'cecog.io',
            'cecog.learning',
            'cecog.multiprocess',
            'cecog.plugin',
            'cecog.plugin.segmentation',
            'cecog.threads',
            'cecog.traits',
            'cecog.traits.analyzer',
            'cecog.util',
            'pdk']

scripts = [join('scripts', 'CecogAnalyzer.py'), join('scripts', 'cecog_batch.py')]
datadir = join(sys.prefix, 'share', 'cellcognition')

setup(scripts = scripts,
      data_files = build_helpers.get_data_files(mpl_data=False),
      cmdclass = {'pyrcc': build_helpers.PyRcc,
                  'build': build_helpers.Build},
      packages = packages,
      package_dir = {'cecog': join('pysrc', 'cecog'),
                     'pdk': join('pysrc', 'pdk')},
      options = {'pyrcc': pyrcc_opts,
                 'install': {'install_data': datadir}},
      ext_modules = [ccore],
      **build_helpers.metadata)
Beispiel #10
0
    'outfile': join('cecog', 'cecog_rc.py'),
    'pyrccbin': 'pyrcc4'
}

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')]

setup(app=scripts,
      data_files=build_helpers.get_data_files(),
      options={
          "py2app": py2app_opts,
          "pyrcc": pyrcc_opts
      },
      cmdclass={
          'pyrcc': build_helpers.PyRcc,
          'build': build_helpers.Build
      },
      packages=packages,
      setup_requires=['py2app'],
      ext_modules=[ccore],
      **build_helpers.metadata)