1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00
catima/pymodule/setup.py

30 lines
848 B
Python
Raw Normal View History

2021-05-19 10:17:29 -04:00
from pathlib import Path
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
DIR = Path(__file__).parents[0]
2021-05-19 13:08:59 -04:00
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
2021-05-19 10:17:29 -04:00
print (SRC)
example_module = Pybind11Extension(
'pycatima',
SRC,
2021-05-19 13:08:59 -04:00
include_dirs=['../build/include','../global'],
2021-05-19 13:15:53 -04:00
library_dirs=['../build/lib','../build','../build/Release'],
2021-05-19 13:08:59 -04:00
libraries=['catima']
2021-05-19 10:17:29 -04:00
)
setup(
name='pycatima',
2022-03-23 10:35:57 -04:00
version=1.7,
2021-05-19 10:17:29 -04:00
author='Andrej Prochazka',
author_email='hrocho@vodacionline.sk',
description='python interface to catima library',
2021-05-19 16:04:11 -04:00
url='https://github.com/hrosiak/catima',
2021-05-19 10:17:29 -04:00
ext_modules=[example_module],
cmdclass={"build_ext": build_ext},
)