Commit a2d529b4 authored by Martin Bauer's avatar Martin Bauer
Browse files

Fix pystencils include order problem in setup.py

If this line
from setuptools import find_packages, setup
is run after
from distutils.extension import Extension

a wrong Extension class is used
parent 64734915
......@@ -3,7 +3,6 @@ import io
import os
import sys
from contextlib import redirect_stdout
from distutils.extension import Extension
from importlib import import_module
from setuptools import find_packages, setup
......@@ -59,6 +58,7 @@ def readme():
def cython_extensions(*extensions):
from distutils.extension import Extension
ext = '.pyx' if USE_CYTHON else '.c'
result = [Extension(e, [e.replace('.', '/') + ext]) for e in extensions]
if USE_CYTHON:
......
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