diff --git a/ci/azure/azure_template_posix.yml b/ci/azure/azure_template_posix.yml index 33e315f98..4b2ccfd86 100644 --- a/ci/azure/azure_template_posix.yml +++ b/ci/azure/azure_template_posix.yml @@ -46,7 +46,14 @@ jobs: BUILD_FLAGS: '-Csetup-args=-Dcython-coverage=true' cython.coverage: true PYTEST_PATTERN: "(not slow)" - python313_latest_coverage: + python313_clang: + python.version: '3.13' + CC: clang-20 + use.clang: true + python313_debug: + python.version: '3.13' + BUILD_FLAGS: '-Csetup-args=-Dbuildtype=debug -Cbuild-dir=build-dbg' + python313_latest: python.version: '3.13' python314_latest: python.version: '3.14' @@ -56,8 +63,6 @@ jobs: python_312_no_coverage: python.version: '3.12' PYPI: true - # TODO: Enable debug - RANDOMGEN_DEBUG: true test.wheel: true coverage: false ${{ if eq(parameters.name, 'macOS') }}: @@ -107,6 +112,12 @@ jobs: displayName: 'List Configuration (PyPI)' condition: ne(variables['use.conda'], 'true') + - script: | + sudo apt update + sudo apt install clang-20 lldb-20 clangd-20 + displayName: 'Install Clang' + condition: eq(variables['use.clang'], 'true') + - script: | python -m pip install pip --upgrade python -c "import platform;print(platform.uname())" diff --git a/randomgen/meson.build b/randomgen/meson.build index 31b502720..d9df94332 100644 --- a/randomgen/meson.build +++ b/randomgen/meson.build @@ -40,12 +40,6 @@ npyrandom_lib = cc.find_library('npyrandom', dirs: npyrandom_path) # Needed to trick Cython, it won't do a relative import outside a package _cython_tree = [fs.copyfile('__init__.py')] -# TODO: Check these flags -# TODO: Enable cython coverage in CI -# "language_level": "3", -# "binding": True, -# "linetrace": CYTHON_COVERAGE, - _pcg64_def = [] _blabla_def = [] if get_option('pcg64-force-emulated') diff --git a/randomgen/rdrand.pyx b/randomgen/rdrand.pyx index 7cf6b3ce2..537d0b076 100644 --- a/randomgen/rdrand.pyx +++ b/randomgen/rdrand.pyx @@ -52,7 +52,6 @@ cdef uint64_t rdrand_uint64(void* st) noexcept nogil: cdef uint32_t rdrand_uint32(void *st) noexcept nogil: - # TODO: This is lazy return rdrand_uint64(st) cdef double rdrand_double(void* st) noexcept nogil: diff --git a/tools/practrand-driver.py b/tools/practrand-driver.py index 9174fd601..16b0fffc0 100644 --- a/tools/practrand-driver.py +++ b/tools/practrand-driver.py @@ -364,7 +364,7 @@ def main(): if __name__ == "__main__": try: main() - except (BrokenPipeError, OSError): + except OSError: logging.log(logging.INFO, "Pipe broken, assuming complete") sys.stderr.close()