2020-07-18 21:48:28 +02:00
|
|
|
Index: matplotlib-3.3.0/setupext.py
|
2020-05-18 11:10:22 +02:00
|
|
|
===================================================================
|
2020-07-18 21:48:28 +02:00
|
|
|
--- matplotlib-3.3.0.orig/setupext.py
|
|
|
|
+++ matplotlib-3.3.0/setupext.py
|
|
|
|
@@ -526,7 +526,7 @@ class FreeType(SetupPackage):
|
|
|
|
default_libraries=['freetype'])
|
|
|
|
ext.define_macros.append(('FREETYPE_BUILD_TYPE', 'system'))
|
|
|
|
else:
|
|
|
|
- src_path = Path('build', f'freetype-{LOCAL_FREETYPE_VERSION}')
|
|
|
|
+ src_path = Path(f'freetype-{LOCAL_FREETYPE_VERSION}')
|
2020-05-18 11:10:22 +02:00
|
|
|
# Statically link to the locally-built freetype.
|
|
|
|
# This is certainly broken on Windows.
|
|
|
|
ext.include_dirs.insert(0, str(src_path / 'include'))
|
2020-07-18 21:48:28 +02:00
|
|
|
@@ -543,7 +543,7 @@ class FreeType(SetupPackage):
|
|
|
|
if options.get('system_freetype'):
|
2020-05-18 11:10:22 +02:00
|
|
|
return
|
|
|
|
|
2020-07-18 21:48:28 +02:00
|
|
|
- src_path = Path('build', f'freetype-{LOCAL_FREETYPE_VERSION}')
|
|
|
|
+ src_path = Path(f'freetype-{LOCAL_FREETYPE_VERSION}')
|
2020-05-18 11:10:22 +02:00
|
|
|
|
|
|
|
# We've already built freetype
|
|
|
|
if sys.platform == 'win32':
|
2020-07-18 21:48:28 +02:00
|
|
|
@@ -557,7 +557,6 @@ class FreeType(SetupPackage):
|
2020-05-18 11:10:22 +02:00
|
|
|
|
|
|
|
# do we need to download / load the source from cache?
|
|
|
|
if not src_path.exists():
|
|
|
|
- os.makedirs('build', exist_ok=True)
|
|
|
|
|
2020-07-18 21:48:28 +02:00
|
|
|
tarball = f'freetype-{LOCAL_FREETYPE_VERSION}.tar.gz'
|
|
|
|
target_urls = [
|