From ddd2ceae63eb8510abb0a48c3fec3b4eb77a3977 Mon Sep 17 00:00:00 2001 From: Dirk Vanden Boer Date: Thu, 27 Feb 2020 21:03:43 +0100 Subject: [PATCH] Update SConstruct Fixed framework presence check to avoid TypeError: TypeError: a bytes-like object is required, not 'str': --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 5c1cf1262..35b68f73c 100644 --- a/SConstruct +++ b/SConstruct @@ -691,7 +691,7 @@ def parse_config(context, config, checks='--libs --cflags'): # and thus breaks knowledge below that gdal worked # TODO - upgrade our scons logic to support Framework linking if env['PLATFORM'] == 'Darwin': - if value and '-framework GDAL' in value: + if value and b'-framework GDAL' in value: env['LIBS'].append('gdal') if os.path.exists('/Library/Frameworks/GDAL.framework/unix/lib'): env['LIBPATH'].insert(0,'/Library/Frameworks/GDAL.framework/unix/lib')