| 1 |
|
| 2 |
|
| 3 |
Installation Instructions (Linux) |
| 4 |
================================= |
| 5 |
|
| 6 |
Although, there are currently no RPM, DEB or other common packages to install DisplayCAL |
| 7 |
directly under Linux, some distros supply recent DisplayCAL versions in their package |
| 8 |
management systems. Please search for them first. |
| 9 |
|
| 10 |
Otherwise you can install DisplayCAL under Linux pretty easily. |
| 11 |
|
| 12 |
Prerequisites |
| 13 |
------------- |
| 14 |
|
| 15 |
In Linux, you can install DisplayCAL into a virtual environment through PyPI or build |
| 16 |
it from source. Currently we support Python 3.9 to Python 3.14. |
| 17 |
|
| 18 |
To install DisplayCAL there are some prerequisites: |
| 19 |
|
| 20 |
* Assorted C/C++ builder tools |
| 21 |
* dbus |
| 22 |
* glib 2.0 or glibc |
| 23 |
* gtk-3 |
| 24 |
* libXxf86vm |
| 25 |
* pkg-config |
| 26 |
* python3-devel |
| 27 |
|
| 28 |
Please install these from your package manager. |
| 29 |
|
| 30 |
```shell |
| 31 |
# Debian installs |
| 32 |
apt-get install build-essential dbus libglib2.0-dev pkg-config libgtk-3-dev libxxf86vm-dev python3-dev python3-venv |
| 33 |
|
| 34 |
# Fedora core installs |
| 35 |
dnf install gcc glibc-devel dbus pkgconf gtk3-devel libXxf86vm-devel python3-devel python3-virtualenv |
| 36 |
``` |
| 37 |
|
| 38 |
> [!NOTE] |
| 39 |
> Note, if your system's default python is outside the supported range you will need to |
| 40 |
> install a supported version and its related devel package. |
| 41 |
|
| 42 |
Install through PyPI |
| 43 |
-------------------- |
| 44 |
|
| 45 |
Installing through PyPI is straight forward. We highly suggest using a virtual |
| 46 |
environment and not installing it to the system python: |
| 47 |
|
| 48 |
Create a virtual environment: |
| 49 |
|
| 50 |
```shell |
| 51 |
cd ~ |
| 52 |
python -m venv venv-displaycal |
| 53 |
source venv-displaycal/bin/activate |
| 54 |
pip install displaycal |
| 55 |
``` |
| 56 |
|
| 57 |
and now you can basically run `displaycal`: |
| 58 |
|
| 59 |
```shell |
| 60 |
displaycal |
| 61 |
``` |
| 62 |
|
| 63 |
If you close the current terminal and run a new one, you need to activate the virtual |
| 64 |
environment before calling `displaycal`: |
| 65 |
|
| 66 |
```shell |
| 67 |
source ~/venv-displaycal/bin/activate |
| 68 |
displaycal |
| 69 |
``` |
| 70 |
|
| 71 |
Build From Source (Makefile Workflow) |
| 72 |
------------------------------------- |
| 73 |
|
| 74 |
To test the latest code you can build DisplayCAL from its source. To do that: |
| 75 |
|
| 76 |
Pull the source: |
| 77 |
|
| 78 |
```shell |
| 79 |
cd ~ |
| 80 |
git clone https://github.com/eoyilmaz/displaycal-py3 |
| 81 |
cd ./displaycal-py3/ |
| 82 |
``` |
| 83 |
|
| 84 |
At this stage you may want to switch to the ``develop`` branch to test some new features |
| 85 |
or possibly fixed issues over the ``main`` branch. |
| 86 |
|
| 87 |
```shell |
| 88 |
git checkout develop |
| 89 |
``` |
| 90 |
|
| 91 |
Then you can build and install DisplayCAL using: |
| 92 |
|
| 93 |
```shell |
| 94 |
make venv build install |
| 95 |
``` |
| 96 |
|
| 97 |
The build step assumes your system has a `python3` binary available that is |
| 98 |
within the correct range. If your system `python3` is not supported and you |
| 99 |
installed a new one, you can try passing it to the build command: |
| 100 |
|
| 101 |
```shell |
| 102 |
$ SYSTEM_PYTHON=python3.11 make venv build install |
| 103 |
``` |
| 104 |
|
| 105 |
If this errors out for you, you can follow the |
| 106 |
[Build From Source (Manual)](#build-from-source-manual) section below. |
| 107 |
|
| 108 |
Otherwise, this should install DisplayCAL. To run the UI: |
| 109 |
|
| 110 |
```shell |
| 111 |
make launch |
| 112 |
``` |
| 113 |
|
| 114 |
Build From Source (Manual) |
| 115 |
-------------------------- |
| 116 |
|
| 117 |
If the `makefile` workflow doesn't work for you for some reason, you can setup the |
| 118 |
virtual environment manually. Ensure the python binary you're using is supported: |
| 119 |
|
| 120 |
```shell |
| 121 |
python3 -m venv .venv |
| 122 |
source .venv/bin/activate |
| 123 |
pip install -r requirements.txt -r requirements-dev.txt |
| 124 |
python -m build |
| 125 |
pip install dist/displaycal-*.whl |
| 126 |
``` |
| 127 |
|
| 128 |
This should install DisplayCAL. To run the UI: |
| 129 |
|
| 130 |
```shell |
| 131 |
displaycal |
| 132 |
``` |