lal_cuda._internal.package module

This module provides a package class for polling the meta data describing a Python package.

class lal_cuda._internal.package.package(path_call)[source]

Bases: object

This class provides the package object, storing package parameters which describe the package.

Generate an instance of the package class.

Parameters:path_call – this needs to be the FULL (i.e. absolute) path to a file or directory living somewhere in the package
collect_package_files()[source]

Generate a list of non-code files to be included in the package.

By default, all files in the ‘data’ directory in the package root will be added.

Returns:a list of absolute paths.
collect_package_scripts()[source]

Generate a list of script files associated with this package.

By default, all files in the ‘scripts’ directory in the package root will be added.

Returns:a list of absolute paths.
class lal_cuda._internal.package.package_file(path_package_parent)[source]

Bases: object

Class for reading and writing package .json files.

Intended to be used with the open_package_file context manager.

Create an instance of the package_file class.

Parameters:path_package_parent – The path to the directory hosting the package’s setup.py file.
open()[source]

Open the package .json file. Intended to be accessed through the open_package_file class using a with block.

Returns:None
close()[source]

Close the package .json file.

Returns:None
load()[source]

Load an opened project .json file.

Returns:None
class lal_cuda._internal.package.open_package_file(path_call)[source]

Bases: object

Context manager for reading a package .json files.

Intended for use with a with block.

Create an instance of the open_package_file context manager.

Parameters:path_call – Context expression