Skip to content
Snippets Groups Projects
Commit 298afc1b authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Remove generated file createindexlistcython.c

parent cc64d377
No related branches found
No related tags found
No related merge requests found
Pipeline #27732 waiting for manual action
...@@ -13,3 +13,4 @@ _build ...@@ -13,3 +13,4 @@ _build
_local_tmp _local_tmp
RELEASE-VERSION RELEASE-VERSION
test-report test-report
pystencils/boundaries/createindexlistcython.c
Source diff could not be displayed: it is too large. Options to address this: view the blob.
import setuptools
import distutils import distutils
import io import io
import os import os
...@@ -6,10 +5,12 @@ import sys ...@@ -6,10 +5,12 @@ import sys
from contextlib import redirect_stdout from contextlib import redirect_stdout
from importlib import import_module from importlib import import_module
if '--use-cython' in sys.argv: import setuptools
try:
import cython # noqa
USE_CYTHON = True USE_CYTHON = True
sys.argv.remove('--use-cython') except ImportError:
else:
USE_CYTHON = False USE_CYTHON = False
quick_tests = [ quick_tests = [
...@@ -58,12 +59,10 @@ def readme(): ...@@ -58,12 +59,10 @@ def readme():
def cython_extensions(*extensions): def cython_extensions(*extensions):
from distutils.extension import Extension from distutils.extension import Extension
ext = '.pyx' if USE_CYTHON else '.c' ext = '.pyx'
result = [Extension(e, [e.replace('.', '/') + ext]) for e in extensions] result = [Extension(e, [e.replace('.', '/') + ext]) for e in extensions]
if USE_CYTHON: from Cython.Build import cythonize
from Cython.Build import cythonize return cythonize(result, language_level=3)
result = cythonize(result, language_level=3)
return result
try: try:
...@@ -91,7 +90,7 @@ setuptools.setup(name='pystencils', ...@@ -91,7 +90,7 @@ setuptools.setup(name='pystencils',
'backends/cuda_known_functions.txt', 'backends/cuda_known_functions.txt',
'backends/opencl1.1_known_functions.txt']}, 'backends/opencl1.1_known_functions.txt']},
ext_modules=cython_extensions("pystencils.boundaries.createindexlistcython"), ext_modules=cython_extensions("pystencils.boundaries.createindexlistcython") if USE_CYTHON else [],
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Framework :: Jupyter', 'Framework :: Jupyter',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment