Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 740e1dc

Browse files
committed
Issue #17896: Move Windows external lib sources from .. to externals.
2 parents 048345d + 4b2b1de commit 740e1dc

9 files changed

Lines changed: 13 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ tags
8080
TAGS
8181
.coverage
8282
coverage/
83+
externals/
8384
htmlcov/

.hgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Programs/_freeze_importlib
9393
Programs/_testembed
9494
.coverage
9595
coverage/
96+
externals/
9697
htmlcov/
9798
*.gcda
9899
*.gcno

Lib/tkinter/_fix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def convert_path(s):
4848

4949
prefix = os.path.join(sys.base_prefix,"tcl")
5050
if not os.path.exists(prefix):
51-
# devdir/../tcltk/lib
52-
prefix = os.path.join(sys.base_prefix, os.path.pardir, "tcltk", "lib")
51+
# devdir/externals/tcltk/lib
52+
prefix = os.path.join(sys.base_prefix, "externals", "tcltk", "lib")
5353
prefix = os.path.abspath(prefix)
5454
# if this does not exist, no further search is needed
5555
if os.path.exists(prefix):

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,9 @@ Tools/Demos
13851385
Windows
13861386
-------
13871387

1388+
- Issue #17896: The Windows build scripts now expect external library sources
1389+
to be in ``PCbuild\..\externals`` rather than ``PCbuild\..\..``.
1390+
13881391
- Issue #17717: The Windows build scripts now use a copy of NASM pulled from
13891392
svn.python.org to build OpenSSL.
13901393

PCbuild/get_externals.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
setlocal
33
rem Simple script to fetch source for external libraries
44

5-
pushd "%~dp0..\.."
5+
if not exist "%~dp0..\externals" mkdir "%~dp0..\externals"
6+
pushd "%~dp0..\externals"
67

78
if "%SVNROOT%"=="" set SVNROOT=http://svn.python.org/projects/external/
89

PCbuild/pyproject.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PyDllName>python35$(PyDebugExt)</PyDllName>
1717
<PythonExe>$(OutDir)python$(PyDebugExt).exe</PythonExe>
1818
<KillPythonExe>$(OutDir)kill_python$(PyDebugExt).exe</KillPythonExe>
19-
<externalsDir>..\..</externalsDir>
19+
<externalsDir>..\externals</externalsDir>
2020
<sqlite3Dir>$(externalsDir)\sqlite-3.8.3.1</sqlite3Dir>
2121
<bz2Dir>$(externalsDir)\bzip2-1.0.6</bz2Dir>
2222
<lzmaDir>$(externalsDir)\xz-5.0.5</lzmaDir>

PCbuild/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ painless as possible, called "get_externals.bat" and located in this
278278
directory. This script extracts all the external sub-projects from
279279
http://svn.python.org/projects/external
280280
via Subversion (so you'll need svn.exe on your PATH) and places them
281-
in ..\.. (relative to this directory).
281+
in ..\externals (relative to this directory).
282282

283283
It is also possible to download sources from each project's homepage,
284284
though you may have to change folder names or pass the names to MSBuild

Tools/buildbot/test-amd64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
setlocal
44
rem The following line should be removed before #20035 is closed
5-
set TCL_LIBRARY=%~dp0..\..\..\tcltk64\lib\tcl8.6
5+
set TCL_LIBRARY=%~dp0..\..\externals\tcltk64\lib\tcl8.6
66

77
call "%~dp0..\..\PCbuild\rt.bat" -d -q -x64 -uall -rwW -n --timeout=3600 %*

Tools/buildbot/test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
setlocal
44
rem The following line should be removed before #20035 is closed
5-
set TCL_LIBRARY=%~dp0..\..\..\tcltk\lib\tcl8.6
5+
set TCL_LIBRARY=%~dp0..\..\externals\tcltk\lib\tcl8.6
66

77
call "%~dp0..\..\PCbuild\rt.bat" -d -q -uall -rwW -n --timeout=3600 %*

0 commit comments

Comments
 (0)