[reportlab-users] [PATCH] fix building on certain RHEL-derived distributions

Robin Becker robin at reportlab.com
Tue Aug 30 07:20:53 EDT 2022


Hi James,

I will use this patch, but I think it better to use

if isdir(subdir) instead of if exists(subdir)

The former seems to be true only if subdir is a dir or a link to a dir. The latter will try to append a file if that exists.


> diff -r 4f30137c136e setup.py
...........
> 
> @@ -304,6 +305,9 @@
>           if mif:
>               d = dirname(mif)
>               I = [dirname(d), d]
> +            subdir = pjoin(d, 'freetype2')]
> +            if exists(subdir):
> +                I.append(subdir)
>               ftv = freetypeVersion(findFile(d,'freetype.h'),'22')
>           else:
>               print('!!!!! cannot find ft2build.h')
> 
..........
-- 
Robin Becker


More information about the reportlab-users mailing list