jacinle.jit.cext.travis#

Functions

auto_travis(filename[, required_files, ...])

A simple function to automatically run the ./travis.sh script in the current directory.

Functions

auto_travis(filename, required_files=None, required_imports=None, use_glob=True, force_recompile=False)[source]#

A simple function to automatically run the ./travis.sh script in the current directory. The most common usage is to put the following code in your __init__.py file and add auto_travis(__file__) to the end of the file.

Parameters:
  • filename (str) – the __file__ variable of the current module.

  • required_files (Sequence[str] | None) – a list of required files to check. If not provided, use ['**/*.so'].

  • required_imports (Sequence[str] | None) – a list of required modules to import. If not provided, use required_files to check.

  • use_glob (bool) – whether to use glob to check the required files.

  • force_recompile (bool)