fabex.utilities.version_utils#

Fabex ‘version_utils.py’ © 2012 Vilem Novak

Functions#

get_fabex_version()

Return the version of the Fabex Extension.

get_numba_version()

Return the version of the numba library.

get_llvmlite_version()

Return the version of the llvmlite library.

opencamlib_version()

Return the version of the OpenCamLib library.

shapely_version()

Return the version of the Shapely library.

Module Contents#

get_fabex_version()[source]#

Return the version of the Fabex Extension.

This function checks for fabex in the module list and reads and returns the number found in the ‘version’ file.

Returns:

The version of Fabex if available, None otherwise.

Return type:

str or None

get_numba_version()[source]#

Return the version of the numba library.

This function attempts to import the numba library and returns its version. If the library is not available, it will return None.

Returns:

The version of numba if available, None otherwise.

Return type:

str or None

get_llvmlite_version()[source]#

Return the version of the llvmlite library.

This function attempts to import the llvmlite library and returns its version. If the library is not available, it will return None.

Returns:

The version of llvmlite if available, None otherwise.

Return type:

str or None

opencamlib_version()[source]#

Return the version of the OpenCamLib library.

This function attempts to import the OpenCamLib library and returns its version. If the library is not available, it will return None. The function first tries to import the library using the name ‘ocl’, and if that fails, it attempts to import it using ‘opencamlib’ as an alias. If both imports fail, it returns None.

Returns:

The version of OpenCamLib if available, None otherwise.

Return type:

str or None

shapely_version()[source]#

Return the version of the Shapely library.

This function attempts to import the Shapely library and returns its version. If the library is not available, it will return None.

Returns:

The version of Shapely if available, None otherwise.

Return type:

str or None