Skip to content

Latest commit

 

History

History
174 lines (124 loc) · 4.4 KB

install_instructions_macos.md

File metadata and controls

174 lines (124 loc) · 4.4 KB

Installation Instructions (MacOS)

Install with Installer

We now have a proper installer for MacOS and this is the preffered way of running DisplayCAL under MacOS (unless you want to test the latest code).

Install through PyPI or Build From Source

In macOS, you can install DisplayCAL into an virtual environment through PyPI or build it from source. Currently we support Python 3.8 to Python 3.13.

Prerequisites

Install the dependencies through brew:

brew install glib gtk+3 [email protected]

Note

Note, if your system's default python is outside the supported range you will need to install a supported version and its related devel package.

Install through PyPI

Installing through PyPI is straight forward. We highly suggest using a virtual environment and not installing it to the system python:

Create a virtual environment:

cd ~
python -m venv venv-displaycal
source venv-diplaycal/bin/activate
pip install displaycal

and now you can basically run displaycal:

displaycal

If you close the current terminal and run a new one, you need to activate the virtual environment before calling displaycal:

source ~/venv-diplaycal/bin/activate
displaycal

Build From Source (Makefile Workflow)

To test the latest code you can build DisplayCAL from its source. To do that:

Pull the source:

cd ~
git clone https://github.com/eoyilmaz/displaycal-py3
cd ./displaycal-py3/

At this stage you may want to switch to the develop branch to test some new features or possibly fixed issues over the main branch.

git checkout develop

Then you can build and install DisplayCAL using:

make venv build install

The build step assumes your system has a python3 binary available that is within the correct range. If your system python3 is not supported and you installed a new one, you can try passing it to the build command:

$ SYSTEM_PYTHON=python3.11 make venv build install

If this errors out for you, you can follow the Build From Source (Manual) section below.

Otherwise, this should install DisplayCAL. To run the UI:

make launch

Build From Source (Manual)

If the makefile workflow doesn't work for you for some reason, you can setup the virtual environment manually. Ensure the python binary you're using is supported:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
python3 -m build
pip install dist/DisplayCAL-3.9.*.whl

This should install DisplayCAL. To run the UI:

displaycal

Building DisplayCAL.app

You can build a proper macOS app to make it easier to run the application.

Fristly install the requirements if you didn't already done it before:

brew install glib gtk+3 [email protected]

Clone the source of DisplayCAL, build and install it:

cd ~
git clone https://www.github.com/eoyilmaz/displaycal-py3
cd displaycal-py3
make venv build install
source ./.venv/bin/activate

Now you can generate the app:

python3 setup.py py2app

That should generate a folder with the name py2app.macosx-14.0-arm64-py3.13 under the dist folder which should contain another folder with the name DisplayCAL-3.9.14 which should contain the DisplayCAL.app package.

You can use this directly, by putting it under the /Applications of your system.

Creating a dmg Image

You can generate a dmg image so that it is more compact and inline with how the other macOS applications are distributed.

First put a link to the Applications folder for people to easily drag & drop the app in to their system Applications folder:

cd ~/displaycal-py3/dist/py2app.macosx-14.0-arm64-py3.13/DisplayCAL-3.9.14
ln -s /Applications

Use Disk Utility.app to generate a dmg file, by using the File -> New Image -> Image From Folder... menu and selecting the ~/displaycal-py3/dist/py2app.macosx-14.0-arm64-py3.13/DisplayCAL-3.9.14 folder.

Now you can rename the dmg file to DisplayCAL-3.9.14_macOS_arm64.dmg or DisplayCAL-3.9.14_macOS_x86.dmg depending on your macOS architecture.