Skip to content

Commit 10f015e

Browse files
author
Vincent Moens
committed
[CI] Fix Cairo-2 Chess import error
ghstack-source-id: c2bcbfc Pull Request resolved: #2743
1 parent ffa99b2 commit 10f015e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/unittest/linux_libs/scripts_chess/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ dependencies:
2020
- chess
2121
- transformers
2222
- cairosvg
23+
- pycairo

.github/unittest/linux_libs/scripts_chess/setup_env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12+
yum install cairo-devel -y
13+
1214
# Avoid error: "fatal: unsafe repository"
1315

1416
git config --global --add safe.directory '*'
@@ -46,4 +48,7 @@ cat "${this_dir}/environment.yml"
4648

4749
pip install pip --upgrade
4850

51+
conda install anaconda::cmake -y
52+
conda install conda-forge::cairo -y
53+
4954
conda env update --file "${this_dir}/environment.yml" --prune

0 commit comments

Comments
 (0)