Commit a067f46c authored by rna's avatar rna Committed by Andreas Schmidt
Browse files

Fix setup.py.

parent 8e7a1bae
from setuptools import setup from setuptools import setup
from distutils.extension import Extension from distutils.extension import Extension
from Cython.Build import cythonize from Cython.Build import cythonize
import os import os, errno
import versioneer import versioneer
os.environ["CC"] = "gcc-5" os.environ["CC"] = "gcc-5"
os.environ["CXX"] = "g++-5" os.environ["CXX"] = "g++-5"
ext = Extension(name='prrt', sources=["prrt/*.pyx"]) ext = Extension(name='prrt', sources=["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) ext_modules = cythonize(ext, gdb_debug=True)
setup( setup(
name='prrt', name='prrt',
version=versioneer.get_version(), version=versioneer.get_version(),
......
Supports Markdown
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