@@ -599,6 +599,15 @@ def main():
599599ns .source = ns .source or (Path (__file__ ).resolve ().parent .parent .parent )
600600ns .build = ns .build or Path (sys .executable ).parent
601601ns .doc_build = ns .doc_build or (ns .source / "Doc" / "build" )
602+ if ns .copy and not ns .copy .is_absolute ():
603+ ns .copy = (Path .cwd ()/ ns .copy ).resolve ()
604+ if not ns .temp :
605+ # Put temp on a Dev Drive for speed if we're copying to one.
606+ # If not, the regular temp dir will have to do.
607+ if ns .copy and getattr (os .path ,"isdevdrive" ,lambda d :False )(ns .copy ):
608+ ns .temp = ns .copy .with_name (ns .copy .name + "_temp" )
609+ else :
610+ ns .temp = Path (tempfile .mkdtemp ())
602611if not ns .source .is_absolute ():
603612ns .source = (Path .cwd ()/ ns .source ).resolve ()
604613if not ns .build .is_absolute ():
@@ -617,21 +626,11 @@ def main():
617626else :
618627ns .arch = "amd64"
619628
620- if ns .copy and not ns .copy .is_absolute ():
621- ns .copy = (Path .cwd ()/ ns .copy ).resolve ()
622629if ns .zip and not ns .zip .is_absolute ():
623630ns .zip = (Path .cwd ()/ ns .zip ).resolve ()
624631if ns .catalog and not ns .catalog .is_absolute ():
625632ns .catalog = (Path .cwd ()/ ns .catalog ).resolve ()
626633
627- if not ns .temp :
628- # Put temp on a Dev Drive for speed if we're copying to one.
629- # If not, the regular temp dir will have to do.
630- if ns .copy and getattr (os .path ,"isdevdrive" ,lambda d :False )(ns .copy ):
631- ns .temp = ns .copy .with_name (ns .copy .name + "_temp" )
632- else :
633- ns .temp = Path (tempfile .mkdtemp ())
634-
635634configure_logger (ns )
636635
637636log_info (