# How to build Mac OS X Tryton Client?

**URL:** <https://discuss.tryton.org/t/how-to-build-mac-os-x-tryton-client/2166>\
**Category:** Developer\
**Created:** [January 10, 2020, 11:07am UTC](https://discuss.tryton.org/t/how-to-build-mac-os-x-tryton-client/2166 "2020-01-10T11:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [January 10, 2020, 11:07am UTC](https://discuss.tryton.org/t/how-to-build-mac-os-x-tryton-client/2166/1 "2020-01-10T11:07:27Z")

</div>

Tested with High Sierra (10.13.6)

- Install [brew](https://brew.sh/), an alternative package manager for Mac OS X.
- Open terminal and install the following packages:

```auto
brew install PyGObject3 GooCanvas adwaita-icon-theme gtkspell3 --force-bottle
pip3 install babel 'GooCalendar>=0.4' cx_Freeze

```

- Alter `sys.prefix` in `~/.pythonrc.py`:

```auto
printf "\nimport sys\nsys.prefix = '/usr/local'\n" >> ~/.pythonrc.py

```

- Get the Tryton client [source package](http://www.tryton.org/download#source) or [clone](http://hg.tryton.org/tryton) from [mercurial](https://mercurial.selenic.com/) repository.

- Fix file permission:

```auto
chmod +x setup-freeze.py

```

- Make Darwin installer:

```auto
sh make-darwin-installer.sh

```

- The `tryton-X.Y.Z.dmg` is created in the current directory.

- Optional: Install the Tryton client with pip3:

```auto
cd tryton
pip3 install .

```

- Optional: Test the Tryton client:

```auto
tryton

```
