Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 1e8ab4d

Browse files
committed
Try git ancestor trick to detect v2 versions
1 parent f25eba3 commit 1e8ab4d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ function pre_build {
2222
build_libpng
2323
build_bzip2
2424
# Use local freetype for versions which support it
25-
if [[ "$BUILD_COMMIT" =~ v2\. ]]; then
25+
local has_local=$(cd matplotlib && set +e; git merge-base --is-ancestor 5ad9b15 HEAD && echo 1)
26+
if [ -n "$has_local" ]; then
2627
export MPLLOCALFREETYPE=1
2728
else
2829
build_freetype

matplotlib

Submodule matplotlib updated 2446 files

0 commit comments

Comments
 (0)