##// END OF EJS Templates
setup: Ensure target directory exists with building rust extension...
Cédric Krier -
r50851:ff4df095 default
parent child Browse files
Show More
@@ -1454,11 +1454,13 b' class RustStandaloneExtension(RustExtens'
1454 target = [target_dir]
1454 target = [target_dir]
1455 target.extend(self.name.split('.'))
1455 target.extend(self.name.split('.'))
1456 target[-1] += DYLIB_SUFFIX
1456 target[-1] += DYLIB_SUFFIX
1457 target = os.path.join(*target)
1458 os.makedirs(os.path.dirname(target), exist_ok=True)
1457 shutil.copy2(
1459 shutil.copy2(
1458 os.path.join(
1460 os.path.join(
1459 self.rusttargetdir, self.dylibname + self.rustdylibsuffix()
1461 self.rusttargetdir, self.dylibname + self.rustdylibsuffix()
1460 ),
1462 ),
1461 os.path.join(*target),
1463 target,
1462 )
1464 )
1463
1465
1464
1466
General Comments 0
You need to be logged in to leave comments. Login now