1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 12:08:52 -05:00
catima/pymodule/setup.py
2021-06-18 17:09:39 +02:00

30 lines
848 B
Python

from pathlib import Path
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
DIR = Path(__file__).parents[0]
SRC = [str((DIR/'pycatima.cpp').resolve())]#+[str(fname.resolve()) for fname in DIR.glob('../*.cpp')]
#SRCG = [str(fname.resolve()) for fname in DIR.glob('../global/*.c')]
#SRC += SRCG
print (SRC)
example_module = Pybind11Extension(
'pycatima',
SRC,
include_dirs=['../build/include','../global'],
library_dirs=['../build/lib','../build','../build/Release'],
libraries=['catima']
)
setup(
name='pycatima',
version=1.6,
author='Andrej Prochazka',
author_email='hrocho@vodacionline.sk',
description='python interface to catima library',
url='https://github.com/hrosiak/catima',
ext_modules=[example_module],
cmdclass={"build_ext": build_ext},
)