Blame view

morfeusz/python/setup.py.in 751 Bytes
Michał Lenart authored
1
# -*- coding: utf-8 -*-
Michał Lenart authored
2
from setuptools import setup, Extension
Michał Lenart authored
3
Michał Lenart authored
4
morfeusz2 = Extension('_morfeusz2',
Michał Lenart authored
5
                    libraries=['morfeusz2'],
Michał Lenart authored
6
                    library_dirs=['${CMAKE_CURRENT_BINARY_DIR}/..'],
Michał Lenart authored
7
                    include_dirs=['${CMAKE_CURRENT_SOURCE_DIR}/..'],
Michał Lenart authored
8
9
10
                    sources=['${CMAKE_CURRENT_BINARY_DIR}/${SWIG_PYTHON_OUTFILE}'])

if __name__ == '__main__':
Michał Lenart authored
11
    setup(name='morfeusz2',
Michał Lenart authored
12
13
          author='${CPACK_PACKAGE_VENDOR}',
          author_email='${CPACK_PACKAGE_CONTACT}',
Michał Lenart authored
14
          description='Python bindings for Morfeusz',
Michał Lenart authored
15
          version='${PYMORFEUSZ_VERSION}',
Michał Lenart authored
16
          package_dir={ '': '${CMAKE_CURRENT_BINARY_DIR}'},
Michał Lenart authored
17
18
          py_modules = ['morfeusz2'],
          ext_modules = [morfeusz2])