How To Install python-dijitso on Debian 9
Introduction
In this tutorial we learn how to install python-dijitso
on Debian 9.
What is python-dijitso
python-dijitso is:
Dijitso was written to improve a core component of the FEniCS framework, namely the just in time compilation of C++ code that is generated from Python modules, but is only called from within a C++ library, and thus do not need wrapping in a nice Python interface.
The main approach of dijitso is to use ctypes to import the dynamic shared library directly with no attempt at wrapping it in a Python interface.
As long as the compiled code can provide a simple factory function to a class implementing a predefined C++ interface, there is no limit to the complexity of that interface as long as it is only called from C++ code, If you want a Python interface to your generated code, dijitso is probably not the answer.
Although dijitso serves a very specific role within the FEniCS project, it does not depend on other FEniCS components.
The parallel support depends on the mpi4py interface, although mpi4py is not actually imported within the dijitso module so it would be possible to mock the communicator object with a similar interface.
This package installs the library for Python 2.
There are three methods to install python-dijitso
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-dijitso Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-dijitso
using apt-get
by running the following command:
sudo apt-get -y install python-dijitso
Install python-dijitso Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-dijitso
using apt
by running the following command:
sudo apt -y install python-dijitso
Install python-dijitso Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-dijitso
using aptitude
by running the following command:
sudo aptitude -y install python-dijitso
How To Uninstall python-dijitso on Debian 9
To uninstall only the python-dijitso
package we can use the following command:
sudo apt-get remove python-dijitso
Uninstall python-dijitso And Its Dependencies
To uninstall python-dijitso
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-dijitso
Remove python-dijitso Configurations and Data
To remove python-dijitso
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-dijitso
Remove python-dijitso configuration, data, and all of its dependencies
We can use the following command to remove python-dijitso
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-dijitso
Dependencies
python-dijitso have the following dependencies:
References
Summary
In this tutorial we learn how to install python-dijitso
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.