Skip to content
Snippets Groups Projects
Select Git revision
  • b74d979f666501ceddc4120a3220e85e2e002f74
  • master default protected
  • clandmark
  • v2.1.12
  • v2.1.11
  • v2.1.10
  • v2.1.9
  • v2.1.8
  • v2.1.7
  • v2.1.6
  • v2.1.5
  • v2.1.4
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v2.0.0b1
  • v1.0.10
  • v1.0.9
23 results

setup.py

Blame
  • setup.py 2.12 KiB
    #!/usr/bin/env python
    # vim: set fileencoding=utf-8 :
    # Andre Anjos <andre.anjos@idiap.ch>
    # Thu 20 Sep 2012 14:43:19 CEST
    
    """Bindings for flandmark
    """
    
    bob_packages = ['bob.core', 'bob.io.base', 'bob.sp', 'bob.ip.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']
    boost_modules = ['system']
    
    setup(
    
        name="bob.ip.flandmark",
        version=version,
        description="Flandmark keypoint localization library",
        license="BSD",
        author='Andre Anjos',
        author_email='andre.anjos@idiap.ch',
        long_description=open('README.rst').read(),
        url='https://gitlab.idiap.ch/bob/bob.ip.flandmark',
    
        packages=find_packages(),
        include_package_data=True,
        zip_safe=False,
    
        setup_requires = build_requires,
        install_requires = build_requires,
    
        ext_modules=[
          Extension("bob.ip.flandmark.version",
            [
              "bob/ip/flandmark/version.cpp",
            ],
            bob_packages = bob_packages,
            version = version,
            packages = packages,
            boost_modules = boost_modules,
          ),
    
          Extension("bob.ip.flandmark._library",
            [
              "bob/ip/flandmark/cpp/flandmark_detector.cpp",
              "bob/ip/flandmark/cpp/liblbp.cpp",
              "bob/ip/flandmark/flandmark.cpp",
              "bob/ip/flandmark/main.cpp",
            ],
            bob_packages = bob_packages,
            version = version,
            packages = packages,
            boost_modules = boost_modules,
          ),
        ],
    
        cmdclass = {
          'build_ext': build_ext
        },
    
        classifiers = [
          'Framework :: Bob',
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
          'Natural Language :: English',
          'Programming Language :: Python',
          'Topic :: Scientific/Engineering :: Artificial Intelligence',
        ],
    
    )