piel.cli
#
Subpackages#
Submodules#
Package Contents#
Functions#
Gets the piel installation directory. |
|
|
CLI Interface for piel There are available many helper commands to help you set up your |
Gets the piel installation directory. |
|
|
Returns a pathlib.Path to be able to perform operations accordingly internally. |
|
Runs a subprocess and prints the command. Raises an exception if the subprocess fails. |
Gets the piel installation directory. |
|
|
CLI Interface for piel There are available many helper commands to help you set up your |
|
Development related commands. |
|
Verifies and builds the documentation. |
|
Generates the poetry2nix flakes file. Requires nix to be installed. |
|
Enters the custom piel nix environment with all the supported tools installed and configured packages. |
|
CLI Interface for piel There are available many helper commands to help you set up your |
Appends a line to .bashrc if it does not exist. |
|
|
Runs a subprocess and prints the command. |
|
Runs a subprocess and prints the command. Raises an exception if the subprocess fails. |
Gets the piel installation directory. |
|
Gets the piel home directory. |
|
Installs the nix package manager. |
|
|
CLI that installs both the openlane2 python interface and the OpenROAD binaries. |
|
CLI that installs both the openlane2 python interface and the OpenROAD binaries. |
|
Enters the custom piel nix environment with all the supported tools installed and configured packages. |
|
Creates and activates the piel virtual environment. |
Attributes#
- get_python_install_directory()[source]#
Gets the piel installation directory.
- Returns:
The piel installation directory.
- Return type:
pathlib.Path
- main(args=None)#
CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.
- get_piel_install_directory()#
Gets the piel installation directory.
- return_path(input_path: piel.types.piel_path_types, as_piel_module: bool = False) pathlib.Path [source]#
Returns a pathlib.Path to be able to perform operations accordingly internally.
This allows us to maintain compatibility between POSIX and Windows systems. When the as_piel_module flag is enabled, it will analyse whether the input path can be treated as a piel module, and treat the returned path as a module would be treated. This comes useful when analysing data generated in this particular structure accordingly.
Usage:
return_path(‘path/to/file’)
- Parameters:
input_path (str) – Input path.
- Returns:
Pathlib path.
- Return type:
pathlib.Path
- echo_and_check_subprocess(command: list, **kwargs)[source]#
Runs a subprocess and prints the command. Raises an exception if the subprocess fails.
- Parameters:
command –
**kwargs –
Returns:
- get_python_install_directory()[source]#
Gets the piel installation directory.
- Returns:
The piel installation directory.
- Return type:
pathlib.Path
- main(args=None)#
CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.
- develop()#
Development related commands.
- build_documentation(args=None)#
Verifies and builds the documentation.
- generate_poetry2nix_flake(args=None)#
Generates the poetry2nix flakes file. Requires nix to be installed.
Returns:
- build_piel_cachix_command(args=None)#
Enters the custom piel nix environment with all the supported tools installed and configured packages. Runs the nix-shell command on the piel/environment/nix/ directory.
- main(args=None)#
CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.
- append_to_bashrc_if_does_not_exist(line: str)[source]#
Appends a line to .bashrc if it does not exist.
- Parameters:
line –
Returns:
- default_openlane2_directory#
- echo_and_run_subprocess(command: list, **kwargs)[source]#
Runs a subprocess and prints the command.
- Parameters:
command –
**kwargs –
Returns:
- echo_and_check_subprocess(command: list, **kwargs)[source]#
Runs a subprocess and prints the command. Raises an exception if the subprocess fails.
- Parameters:
command –
**kwargs –
Returns:
- get_python_install_directory()[source]#
Gets the piel installation directory.
- Returns:
The piel installation directory.
- Return type:
pathlib.Path
- get_piel_home_directory()[source]#
Gets the piel home directory.
- Returns:
The piel home directory.
- Return type:
pathlib.Path
- install_nix()#
Installs the nix package manager.
- install_openlane(openlane2_directory: pathlib.Path = default_openlane2_directory)#
CLI that installs both the openlane2 python interface and the OpenROAD binaries.
- activate_openlane_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)#
CLI that installs both the openlane2 python interface and the OpenROAD binaries.
- activate_piel_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)#
Enters the custom piel nix environment with all the supported tools installed and configured packages. Runs the nix-shell command on the piel/environment/nix/ directory.