summaryrefslogtreecommitdiffstats
path: root/PCbuild/build.bat
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-10-24 06:34:22 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-10-24 06:34:22 (GMT)
commit677744b3861f446ede2db16fba2e55c3764aa85f (patch)
treea4c50652b4ce88cfc51e500fd88777a49a42441f /PCbuild/build.bat
parent0e316f688ef2499fe31ea7cf8e4884cf22863b0d (diff)
downloadcpython-677744b3861f446ede2db16fba2e55c3764aa85f.zip
cpython-677744b3861f446ede2db16fba2e55c3764aa85f.tar.gz
cpython-677744b3861f446ede2db16fba2e55c3764aa85f.tar.bz2
Closes #25456: Copy Tcl/Tk DLLs to build directory on Windows
This removes the need to add externals/tcltk[64]/bin to PATH to be able to import tkinter. Also documents the necessity for the DLLs to be on PATH or in python.exe's directory.
Diffstat (limited to 'PCbuild/build.bat')
-rw-r--r--PCbuild/build.bat6
1 files changed, 6 insertions, 0 deletions
diff --git a/PCbuild/build.bat b/PCbuild/build.bat
index f3bc1e3..0c482f5 100644
--- a/PCbuild/build.bat
+++ b/PCbuild/build.bat
@@ -82,6 +82,9 @@ if '%build_tkinter%'=='true' (
nmake -f makefile.vc MACHINE=%machine% OPTS=%options% INSTALLDIR="%tcltkdir%" install-binaries install-libraries
popd
)
+ if not exist "%builddir%tcl86t%tcl_dbg_ext%.dll" (
+ xcopy "%tcltkdir%\bin\tcl86t%tcl_dbg_ext%.dll" "%builddir%"
+ )
if not exist "%tcltkdir%\bin\tk86t%tcl_dbg_ext%.dll" (
pushd "%tkdir%\win"
@@ -90,6 +93,9 @@ if '%build_tkinter%'=='true' (
nmake -f makefile.vc MACHINE=%machine% OPTS=%options% INSTALLDIR="%tcltkdir%" TCLDIR="%tcldir%" install-binaries install-libraries
popd
)
+ if not exist "%builddir%tk86t%tcl_dbg_ext%.dll" (
+ xcopy "%tcltkdir%\bin\tk86t%tcl_dbg_ext%.dll" "%builddir%"
+ )
if not exist "%tcltkdir%\lib\tix8.4.3\tix84%tcl_dbg_ext%.dll" (
pushd "%tixdir%\win"