[Python-checkins] r56170 - python/trunk/PCbuild8/build.bat

mark.hammond python-checkins at python.org
Wed Jul 4 04:03:10 CEST 2007


Author: mark.hammond
Date: Wed Jul  4 04:03:10 2007
New Revision: 56170

Modified:
   python/trunk/PCbuild8/build.bat
Log:
copy built files to the PCBuild directory, where tools like
distutils or external build processes can find them.


Modified: python/trunk/PCbuild8/build.bat
==============================================================================
--- python/trunk/PCbuild8/build.bat	(original)
+++ python/trunk/PCbuild8/build.bat	Wed Jul  4 04:03:10 2007
@@ -14,4 +14,15 @@
 
 set cmd=devenv pcbuild.sln %build% "%conf%|%platf%"
 echo %cmd%
-%cmd%
\ No newline at end of file
+%cmd%
+
+rem Copy whatever was built to the canonical 'PCBuild' directory.
+rem This helps extensions which use distutils etc.
+rem (Don't check if the build was successful - we expect a few failures
+rem due to missing libs)
+echo Copying built files to ..\PCBuild
+if not exist %platf%%conf%\. (echo %platf%%conf% does not exist - nothing copied & goto xit)
+if not exist ..\PCBuild\. (echo ..\PCBuild does not exist - nothing copied & goto xit)
+xcopy /q/y %platf%%conf%\* ..\PCBuild\.
+
+:xit


More information about the Python-checkins mailing list