|
1
|
# -*- coding: utf-8 -*-
|
|
2
|
from setuptools import setup, Extension
|
|
3
|
|
|
4
|
morfeusz2 = Extension('_morfeusz2',
|
|
5
|
libraries=['morfeusz2'],
|
|
6
|
library_dirs=['${CMAKE_CURRENT_BINARY_DIR}/..'],
|
|
7
|
include_dirs=['${CMAKE_CURRENT_SOURCE_DIR}/..'],
|
|
8
9
10
|
sources=['${CMAKE_CURRENT_BINARY_DIR}/${SWIG_PYTHON_OUTFILE}'])
if __name__ == '__main__':
|
|
11
|
setup(name='morfeusz2',
|
|
12
13
|
author='${CPACK_PACKAGE_VENDOR}',
author_email='${CPACK_PACKAGE_CONTACT}',
|
|
14
|
description='Python bindings for Morfeusz',
|
|
15
|
version='${PYMORFEUSZ_VERSION}',
|
|
16
|
package_dir={ '': '${CMAKE_CURRENT_BINARY_DIR}'},
|
|
17
18
|
py_modules = ['morfeusz2'],
ext_modules = [morfeusz2])
|