@@ -189,7 +189,7 @@ class Ports:
189189 @staticmethod
190190 def get_include_dir (* parts ):
191191 dirname = cache .get_include_dir (* parts )
192- shared .safe_ensure_dirs (dirname )
192+ utils .safe_ensure_dirs (dirname )
193193 return dirname
194194
195195 @staticmethod
@@ -215,7 +215,7 @@ def install_headers(src_dir, pattern='*.h', target=None):
215215 assert os .path .exists (dest )
216216 if target :
217217 dest = os .path .join (dest , target )
218- shared .safe_ensure_dirs (dest )
218+ utils .safe_ensure_dirs (dest )
219219 matches = glob .glob (os .path .join (src_dir , pattern ))
220220 assert matches , f'no headers found to install in { src_dir } '
221221 for f in matches :
@@ -275,7 +275,7 @@ def build_port(src_dir, output_path, port_name, includes=[], flags=[], cxxflags=
275275 @staticmethod
276276 def get_dir (* parts ):
277277 dirname = os .path .join (config .PORTS , * parts )
278- shared .safe_ensure_dirs (dirname )
278+ utils .safe_ensure_dirs (dirname )
279279 return dirname
280280
281281 @staticmethod
@@ -373,7 +373,7 @@ def retrieve():
373373
374374 def unpack ():
375375 logger .info (f'unpacking port: { name } ' )
376- shared .safe_ensure_dirs (fullname )
376+ utils .safe_ensure_dirs (fullname )
377377 shutil .unpack_archive (filename = fullpath , extract_dir = fullname )
378378 utils .write_file (marker , url + '\n ' )
379379
0 commit comments