|
60 | 60 | if path.splitext(file)[1] == ".pyx": |
61 | 61 | pyx_file = path.relpath(path.join(root, file), setup_path) |
62 | 62 | module = path.splitext(pyx_file)[0].replace("/", ".") |
63 | | - extensions.append(Extension(module, [pyx_file], include_dirs=compilation_includes, extra_compile_args=compilation_args, define_macros=macros),) |
| 63 | + extensions.append( |
| 64 | + Extension( |
| 65 | + module, |
| 66 | + [pyx_file], |
| 67 | + include_dirs=compilation_includes, |
| 68 | + extra_compile_args=compilation_args, |
| 69 | + define_macros=macros, |
| 70 | + ), |
| 71 | + ) |
64 | 72 |
|
65 | 73 | if profile: |
66 | 74 | cython_directives["profile"] = True |
67 | 75 |
|
68 | 76 | # generate .c files from .pyx |
69 | | - extensions = cythonize(extensions, nthreads=multiprocessing.cpu_count(), force=force, compiler_directives=cython_directives, annotate=annotate) |
| 77 | + extensions = cythonize( |
| 78 | + extensions, |
| 79 | + nthreads=multiprocessing.cpu_count(), |
| 80 | + force=force, |
| 81 | + compiler_directives=cython_directives, |
| 82 | + annotate=annotate |
| 83 | + ) |
70 | 84 |
|
71 | 85 | else: |
72 | 86 |
|
|
78 | 92 | if path.splitext(file)[1] == ".c": |
79 | 93 | c_file = path.relpath(path.join(root, file), setup_path) |
80 | 94 | module = path.splitext(c_file)[0].replace("/", ".") |
81 | | - extensions.append(Extension(module, [c_file], include_dirs=compilation_includes, extra_compile_args=compilation_args, define_macros=macros),) |
| 95 | + extensions.append( |
| 96 | + Extension( |
| 97 | + module, |
| 98 | + [c_file], |
| 99 | + include_dirs=compilation_includes, |
| 100 | + extra_compile_args=compilation_args, |
| 101 | + define_macros=macros, |
| 102 | + ), |
| 103 | + ) |
82 | 104 |
|
83 | 105 | # parse the package version number |
84 | 106 | with open(path.join(path.dirname(__file__), 'raysect/VERSION')) as version_file: |
|
0 commit comments