Commit 43b221f7 authored by Andreas Schmidt's avatar Andreas Schmidt

~= properly cythonize with setuptools

parent 28f50e31
Pipeline #4628 failed with stages
in 2 minutes and 12 seconds
include requirements.txt
recursive-include src *
recursive-include prrt *
include versioneer.py
include prrt/_version.py
include _version.py
......@@ -14,4 +14,4 @@ matplotlib = "==3.1.1"
ruamel-yaml = "==0.16.5"
scikit-learn = "==0.21.3"
graphviz = "==0.12"
prrtpy = {editable = true, path = "./"}
prrt = {editable = true, path = "./"}
from setuptools import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from setuptools import setup, Extension
import os, errno
import versioneer
ext = Extension(name='prrt', language="c", sources=["prrt/*.pyx"])
ext = Extension(name='prrt', language="c", sources=["prrt/prrt.pyx"])
try:
os.remove(os.path.join(os.path.dirname(os.path.realpath(__file__)), "prrt/prrt.c"))
except OSError as e:
if e.errno != errno.ENOENT:
raise
ext_modules = cythonize(ext, gdb_debug=True)
setup(
name='prrt',
version=versioneer.get_version(),
......@@ -39,6 +34,5 @@ setup(
keywords='prrt protocol',
cmdclass=versioneer.get_cmdclass(),
include_dirs=["./prrt"],
ext_modules=ext_modules
ext_modules=[ext],
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment