-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
maint: setupext.py for freetype had a Catch case for missing ft2build.h #12321
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
Conversation
The error was that the path was constructed manually with '\'. This is now fixed to use os.path.join Signed-off-by: Nick Papior <nickpapior@gmail.com>
@@ -906,7 +906,7 @@ def check(self): | |||
try: | |||
check_include_file(get_include_dirs(), 'ft2build.h', 'freetype') | |||
except CheckFailed: | |||
check_include_file(get_include_dirs(), 'freetype2\\ft2build.h', 'freetype') | |||
check_include_file(get_include_dirs(), os.path.join('freetype2', 'ft2build.h'), 'freetype') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block should only be executed if sys.platform
is windows, but I guess the change is reasonable. Does it fix a known bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it may also be executed IFF you don't have ft2build.h
installed in /usr/include
. I.e. if you install freetype in a non-default location and you want to link it using setup.cfg
and basedirlist
, then you have problems because freetype installs the headers in the freetype2/
directory
Where does this need backporting to? Can an approver milestone? |
Backporting all the way to 2.2.x as this fixes a build issue. |
…atch case for missing ft2build.h
…atch case for missing ft2build.h
…321-on-v2.2.x Backport PR #12321 on branch v2.2.x (maint: setupext.py for freetype had a Catch case for missing ft2build.h)
…321-on-v3.0.x Backport PR #12321 on branch v3.0.x (maint: setupext.py for freetype had a Catch case for missing ft2build.h)
The error was that the path was constructed manually with '\'. This is now fixed
to use os.path.join
A very minor change in setupext.py
PR Summary
PR Checklist