File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
source-code/cython/JuliaSet Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ $(JULIA_LIB): $(PYX_FILES)
9
9
10
10
clean :
11
11
python setup.py clean
12
- rm -f $(C_FILES ) $(JULIA_LIB )
12
+ $(RM ) -f $(C_FILES ) $(JULIA_LIB )
13
+ $(RM ) -r build/
Original file line number Diff line number Diff line change 4
4
from distutils .extension import Extension
5
5
from Cython .Distutils import build_ext
6
6
7
+ extensions = [
8
+ Extension ('julia_cython' , ['julia_cython.pyx' ]),
9
+ Extension ('julia_cython_omp' , ['julia_cython_omp.pyx' ],
10
+ extra_compile_args = ['-fopenmp' ],\
11
+ extra_link_args = ['-fopenmp' ])
12
+ ]
13
+
14
+ for extension in extensions :
15
+ extension .cython_directives = {'language_level' : "3" }
16
+
7
17
setup (
8
18
cmdclass = {'build_ext' : build_ext },
9
- ext_modules = [Extension ('julia_cython' , ['julia_cython.pyx' ]),
10
- Extension ('julia_cython_omp' , ['julia_cython_omp.pyx' ],
11
- extra_compile_args = ['-fopenmp' ],\
12
- extra_link_args = ['-fopenmp' ])]
19
+ ext_modules = extensions ,
13
20
)
You can’t perform that action at this time.
0 commit comments