Skip to content

Commit a9df220

Browse files
committed
Improve the buildInstaller.bat to not have local paths
1 parent 714bd23 commit a9df220

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ Release_Archive/
3535
installer/build/
3636
installer/temp/
3737
Thumbs.db
38+
installer/buildPaths.bat

installer/buildInstaller.bat

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
:: Or, if you just want to build the installer for PythonScript with an existing python27.dll,
55
:: set PYTHONBUILDDIR to a path containing a PCBuild directory, which contains the python27.dll
66

7-
IF [%PYTHONBUILDDIR%] == [] (
8-
SET PYTHONBUILDDIR=l:\code\cpython
9-
)
7+
8+
SET ORIGINALDIR=%CD%
9+
10+
CD /d %~dp0
11+
12+
IF NOT EXIST "buildPaths.bat" (
13+
echo You need to copy/rename buildPaths.bat.orig to buildPaths.bat, and edit it to your local configuration
14+
goto error
15+
)
16+
17+
CALL buildPaths.bat
1018

1119
SET PYTHONSCRIPTVERSION=1.0.0.0
1220

@@ -82,3 +90,6 @@ goto end
8290
echo Error!
8391

8492
:end
93+
94+
CD /d %ORIGINALDIR%
95+

installer/buildPaths.bat.orig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:: Edit the path below to your local path for (built) Python2.7 source tree, or set the PYTHONBUILDDIR variable before calling
2+
3+
IF [%PYTHONBUILDDIR%] == [] (
4+
SET PYTHONBUILDDIR=l:\code\cpython
5+
)

0 commit comments

Comments
 (0)