File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1146,8 +1146,11 @@ def do_custom_build(self):
1146
1146
os .path .isfile (tarball_cache_path )):
1147
1147
if get_file_hash (tarball_cache_path ) == LOCAL_FREETYPE_HASH :
1148
1148
try :
1149
- # fail on Lpy, oh well
1150
- os .makedirs ('build' , exist_ok = True )
1149
+ os .makedirs ('build' )
1150
+ except OSError :
1151
+ # Don't care if it exists.
1152
+ pass
1153
+ try :
1151
1154
shutil .copy (tarball_cache_path , tarball_path )
1152
1155
print ('Using cached tarball: {}'
1153
1156
.format (tarball_cache_path ))
@@ -1186,8 +1189,11 @@ def do_custom_build(self):
1186
1189
raise IOError ("Failed to download freetype" )
1187
1190
if get_file_hash (tarball_path ) == LOCAL_FREETYPE_HASH :
1188
1191
try :
1189
- # this will fail on LPy, oh well
1190
- os .makedirs (tarball_cache_dir , exist_ok = True )
1192
+ os .makedirs (tarball_cache_dir )
1193
+ except OSError :
1194
+ # Don't care if it exists.
1195
+ pass
1196
+ try :
1191
1197
shutil .copy (tarball_path , tarball_cache_path )
1192
1198
print ('Cached tarball at: {}'
1193
1199
.format (tarball_cache_path ))
You can’t perform that action at this time.
0 commit comments