transonic.compiler

Use Pythran to create extensions

User API

transonic.compiler.wait_for_all_extensions()[source]

Wait until all compilation processes are done

Internal API

transonic.compiler.make_hex(src)[source]

Produce a hash from a sting

class transonic.compiler.SchedulerPopen(parallel=True)[source]

Bases: object

Limit the number of compilations performed in parallel

wait_for_all_extensions(self)[source]

Wait until all compilation processes are done

transonic.compiler.compile_extension(path: Union[pathlib.Path, str], backend: str, name_ext_file: str, native=False, xsimd=False, openmp=False, str_accelerator_flags: Union[str, NoneType] = None, parallel=False, force=False)[source]

Functions

compile_extension(path, str], backend, …)

has_to_build(output_file, input_file)

Check if a file has to be (re)built

make_hex(src)

Produce a hash from a sting

modification_date(filename)

Get the modification date of a file

wait_for_all_extensions()

Wait until all compilation processes are done

Classes

SchedulerPopen([parallel])

Limit the number of compilations performed in parallel