Index: matplotlib-3.3.0/setupext.py =================================================================== --- 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}') # Statically link to the locally-built freetype. # This is certainly broken on Windows. ext.include_dirs.insert(0, str(src_path / 'include')) @@ -543,7 +543,7 @@ class FreeType(SetupPackage): if options.get('system_freetype'): return - src_path = Path('build', f'freetype-{LOCAL_FREETYPE_VERSION}') + src_path = Path(f'freetype-{LOCAL_FREETYPE_VERSION}') # We've already built freetype if sys.platform == 'win32': @@ -557,7 +557,6 @@ class FreeType(SetupPackage): # do we need to download / load the source from cache? if not src_path.exists(): - os.makedirs('build', exist_ok=True) tarball = f'freetype-{LOCAL_FREETYPE_VERSION}.tar.gz' target_urls = [