Skip to content

Commit

Permalink
have meson conditionally generate c file in source directory when doi…
Browse files Browse the repository at this point in the history
…ng coverage.
  • Loading branch information
jcapriot committed Mar 11, 2024
1 parent 00435b1 commit 29bd20a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ jobs:
run: |
mamba install --quiet --yes pip numpy scipy cython mkl=2023 pytest pytest-cov mkl-devel pkg-config meson-python meson ninja setuptools_scm
- name: Generate cython c # sources for coverage
run: |
cd pydiso
cython mkl_solver.pyx
- name: Install Our Package
run: |
python -m pip install --no-build-isolation --verbose --editable . --config-setting=compile-args=-v --config-settings=setup-args="-Dcy_line_trace=true"
Expand Down
2 changes: 2 additions & 0 deletions pydiso/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ cython_c_args = [numpy_nodepr_api, use_math_defines]
cy_line_trace = get_option('cy_line_trace')
if cy_line_trace
cython_c_args += ['-DCYTHON_TRACE_NOGIL=1']
cython_file = join_paths(meson.current_source_dir(), 'mkl_solver.pyx')
run_command('cython', cython_file)
endif

cython_cpp_args = cython_c_args
Expand Down

0 comments on commit 29bd20a

Please sign in to comment.