Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move MSYS2 to GitHub Actions #4642

Merged
merged 10 commits into from
Jun 13, 2020
Merged

Move MSYS2 to GitHub Actions #4642

merged 10 commits into from
Jun 13, 2020

Conversation

nulano
Copy link
Contributor

@nulano nulano commented May 23, 2020

For #3606 and #4495 (comment).

Move MSYS2 from AppVeyor to faster GHA, now that it is available.

Changes proposed in this pull request:

TODO: libtiff is failing to open files for some reason (I tried both 4.1.0 and 4.0.10), disabled for now.
Looking at the MSYS2 repo, they don't seem to have a patch for libtiff, yet somehow that version passes tests. Edit: https://trac.wxwidgets.org/ticket/17286 may be related.

@@ -660,6 +661,7 @@ def test_variation_get(self):
{"name": b"Size", "minimum": 0, "maximum": 300, "default": 0}
]

@pytest.mark.skipif(is_mingw(), reason="epsilon too high for meaningful test")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what is causing the difference, but I am getting epsilon around 33 for both variation tests. Checking manually, I see there is a significantly different kerning after the first letter, but the output looks correct to me.

Note: MSYS2 is currently using FreeType version 2.10.2.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you attach images for each case?

Copy link
Contributor Author

@nulano nulano May 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

test_variation_set_by_name (epsilon 31.5340 on line 686 of PR):
a.png (MSYS):
a

b.png (target - variation_adobe.png):
b

test_variation_set_by_axes (epsilon 39.6856 on line 720 of PR):
a.png (MSYS):
a

b.png (target - variation_adobe_axes.png):
b

Basic and Raqm layout are pixel identical. In fact, it looks like there is a bug in the tests where the used layout_engine is not being explicitly set and defaults to Raqm in both cases.

# Conflicts:
#	.appveyor.yml
#	.github/workflows/test-windows.yml
Tests/helper.py Outdated Show resolved Hide resolved
@nulano
Copy link
Contributor Author

nulano commented Jun 13, 2020

I decided to test Cygwin, and aside from Raqm (which was not found) and two test which should have been skipped, everything passes on this PR. It turns out that libraqm-0 is the correct name for Cygwin, but _WIN32 is not defined on Cygwin. Adding that name to the dlopen branch finds the file, but for some reason Pillow is still refusing to use it.

@hugovk hugovk merged commit 3bbcd7b into python-pillow:master Jun 13, 2020
@hugovk
Copy link
Member

hugovk commented Jun 13, 2020

Thank you!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python setup.py install: Jpeg2KDecode.c: undefined reference to `opj_stream_create'
2 participants