pyjac.pywrap.pywrap_gen module

Module for generating Python wrapper around pyJac code.

pyjac.pywrap.pywrap_gen.generate_setup(setupfile, home_dir, build_dir, out_dir, libname)[source]

Helper method to fill in the template .in files

Parameters:
  • setupfile (str) – Filename of existing setup file
  • home_dir (str) – Home directory path
  • build_dir (str) – Build directory path
  • out_dir (str) – Output directory path
  • libname (str) – Library name
Returns:

Return type:

None

pyjac.pywrap.pywrap_gen.distutils_dir_name(dname)[source]

Returns the name of a distutils build directory

Parameters:dname (str) – Base directory name
Returns:
Return type:Name of a distutils build directory
pyjac.pywrap.pywrap_gen.generate_wrapper(lang, source_dir, out_dir=None, auto_diff=False)[source]

Generates a Python wrapper for the given language and source files

Parameters:
  • lang ({'cuda', 'c', 'tchem'}) – Programming language of pyJac (cuda, c) or TChem
  • source_dir (str) – Directory path of source files.
  • out_dir (Optional[str]) – Directory path for output files
  • auto_diff (Optional[bool]) – Optional; if True, build autodifferentiation library
Returns:

Return type:

None