1 from setuptools
import setup
, Extension
2 from Cython
.Build
import cythonize
5 for line
in open("include/slib/general.h").readlines():
6 if line
.find("SBLLIB_VERSION") != -1:
7 version
= line
.split()[-1]
8 elif line
.find("SBLLIB_MINOR") != -1:
9 version
+= "." + line
.split()[-1]
10 elif line
.find("SBLLIB_PATCHLEVEL") != -1:
11 version
+= "." + line
.split()[-1]
17 sources
= ["sbl.pyx"],
18 libraries
= ["sbl", "m"]
25 ext_modules
=cythonize(