Skip to content
Snippets Groups Projects
Select Git revision
  • 738663bf10b50a871a9e37374e9c128cc6e9fc86
  • master default protected
  • v2.0.17
  • v2.0.16
  • v2.0.15
  • v2.0.14
  • v2.0.13
  • v2.0.12
  • v2.0.11
  • v2.0.10
  • v2.0.9
  • v2.0.8
  • v2.0.7
  • v2.0.6
  • v2.0.5
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v2.0.0b1
21 results

setup.py

Blame
  • setup.py 2.09 KiB
    #!/usr/bin/env python
    # vim: set fileencoding=utf-8 :
    # Andre Anjos <andre.anjos@idiap.ch>
    # Mon 16 Apr 08:18:08 2012 CEST
    
    bob_packages = ['bob.core', 'bob.io.base']
    
    from setuptools import setup, find_packages, dist
    dist.Distribution(dict(setup_requires=['bob.extension', 'bob.blitz'] + bob_packages))
    from bob.blitz.extension import Extension, build_ext
    
    from bob.extension.utils import load_requirements
    build_requires = load_requirements()
    
    # Define package version
    version = open("version.txt").read().rstrip()
    
    packages = ['boost', 'matio >= 1.3.0']
    boost_modules = ['system']
    
    setup(
    
        name='bob.io.matlab',
        version=version,
        description='Enable bob.io.base to handle Matlab(R) files',
        url='http://github.com/bioidiap/bob.io.matlab',
        license='BSD',
        author='Andre Anjos',
        author_email='andre.anjos@idiap.ch',
    
        long_description=open('README.rst').read(),
    
        packages=find_packages(),
        include_package_data=True,
        zip_safe=False,
    
        setup_requires = build_requires,
        install_requires = build_requires,
    
    
    
        ext_modules = [
          Extension("bob.io.matlab.version",
            [
              "bob/io/matlab/version.cpp",
            ],
            packages = packages,
            boost_modules = boost_modules,
            bob_packages = bob_packages,
            version = version,
          ),
    
          Extension("bob.io.matlab._library",
            [
              "bob/io/matlab/bobskin.cpp",
              "bob/io/matlab/utils.cpp",
              "bob/io/matlab/file.cpp",
              "bob/io/matlab/main.cpp",
            ],
            packages = packages,
            boost_modules = boost_modules,
            bob_packages = bob_packages,
            version = version,
          ),
        ],
    
        cmdclass = {
          'build_ext': build_ext
        },
    
        classifiers = [
          'Framework :: Bob',
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Natural Language :: English',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Environment :: Plugins',
        ],
    
      )