Documentation for Release 2024.2
Installing chaste_codegen
This page describes installation of chaste_codegen. For usage information see Code Generation from CellML.
chaste_codegen is a Python 3 tool with a number of requirements:
python3
python3-venv
python3-pip
When using the Chaste Ubuntu package, the prerequisites, should be installed for you automatically.
Installing chaste_codegen with an internet connection
Note
The Chaste build process automatically creates a virtual environment and installs
chaste_codegen from PyPI into
<chaste_build_directory>/codegen_python3_venv
.
If required, a manual copy of chaste_codegen can be installed as follows:
where </path/to/new/venv>
is the path to the directory the virtual Python 3
environment with chaste_codegen is placed in. This directory must not exist prior
to creating the environment, but you can name it anything you like.
Installing chaste_codegen without an internet connection
On systems that are isolated from the internet, chaste_codegen cannot be installed directly from PyPI. The following steps would enable a manual installation and allow building Chaste.
Create a build directory and change into it e.g.
Create and activate a virtual environment as follows:
You should now see something like:
To see what packages are currently installed, run
pip
, setuptools
and wheel
are likely to already be installed and you may
not need to reinstall them.
Manually download appropriate versions of the following packages from PyPI and transfer them to the isolated system.
Install the packages manually in the order above, with the virtual environment activated:
- Uncompress the archive if needed.
- Change into the directory containing
setup.py
- If there are any installation instructions contained in the documentation,
follow them. Otherwise, use
python3 setup.py install
See Also