How To Install python3-dijitso on Debian 10

Learn how to install python3-dijitso on Debian 10 with this tutorial. python3-dijitso is distributed just-in-time building of shared libraries (Python 3)

Introduction

In this tutorial we learn how to install python3-dijitso on Debian 10.

What is python3-dijitso

python3-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 3.

There are three methods to install python3-dijitso on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-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 python3-dijitso using apt-get by running the following command:

sudo apt-get -y install python3-dijitso

Install python3-dijitso Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-dijitso using apt by running the following command:

sudo apt -y install python3-dijitso

Install python3-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 python3-dijitso using aptitude by running the following command:

sudo aptitude -y install python3-dijitso

How To Uninstall python3-dijitso on Debian 10

To uninstall only the python3-dijitso package we can use the following command:

sudo apt-get remove python3-dijitso

Uninstall python3-dijitso And Its Dependencies

To uninstall python3-dijitso and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python3-dijitso

Remove python3-dijitso Configurations and Data

To remove python3-dijitso configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python3-dijitso

Remove python3-dijitso configuration, data, and all of its dependencies

We can use the following command to remove python3-dijitso configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-dijitso

Dependencies

python3-dijitso have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-dijitso package on Debian 10 using different package management tools: apt, apt-get and aptitude.