Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils
Commits
5797d4ed
Commit
5797d4ed
authored
Nov 10, 2020
by
Stephan Seitz
Committed by
Markus Holzer
Nov 10, 2020
Browse files
Delete generated file createindexlistcython.c
parent
2e853dc8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5797d4ed
...
...
@@ -13,3 +13,4 @@ _build
_local_tmp
RELEASE-VERSION
test-report
pystencils/boundaries/createindexlistcython.c
pystencils/boundaries/createindexlistcython.c
deleted
100644 → 0
View file @
2e853dc8
This diff is collapsed.
Click to expand it.
setup.py
View file @
5797d4ed
import
setuptools
import
distutils
import
io
import
os
...
...
@@ -6,10 +5,12 @@ import sys
from
contextlib
import
redirect_stdout
from
importlib
import
import_module
if
'--use-cython'
in
sys
.
argv
:
import
setuptools
try
:
import
cython
# noqa
USE_CYTHON
=
True
sys
.
argv
.
remove
(
'--use-cython'
)
else
:
except
ImportError
:
USE_CYTHON
=
False
quick_tests
=
[
...
...
@@ -58,12 +59,10 @@ def readme():
def
cython_extensions
(
*
extensions
):
from
distutils.extension
import
Extension
ext
=
'.pyx'
if
USE_CYTHON
else
'.c'
ext
=
'.pyx'
result
=
[
Extension
(
e
,
[
e
.
replace
(
'.'
,
'/'
)
+
ext
])
for
e
in
extensions
]
if
USE_CYTHON
:
from
Cython.Build
import
cythonize
result
=
cythonize
(
result
,
language_level
=
3
)
return
result
from
Cython.Build
import
cythonize
return
cythonize
(
result
,
language_level
=
3
)
try
:
...
...
@@ -91,7 +90,7 @@ setuptools.setup(name='pystencils',
'backends/cuda_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
=
[
'Development Status :: 4 - Beta'
,
'Framework :: Jupyter'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment