Blame view

morfeusz/python/setup.py.in 747 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
morfeusz = Extension('_morfeusz',
Michał Lenart authored
5
6
                    libraries=['morfeusz'],
                    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='pymorfeusz',
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
17
18
          package_dir={ '': '${CMAKE_CURRENT_BINARY_DIR}'},
          py_modules = ['morfeusz'],
          ext_modules = [morfeusz])