Re: [PATCH] fix building on certain RHEL-derived distributions
Robin Becker <[email protected]> Tue, 30 Aug 2022 12:20:53 +0100
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
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