Skip to content

Commit b10340f

Browse files
author
cxgeorge
committed
update for python 2.2
1 parent a8881ac commit b10340f

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

pandatool/src/scripts/builder.pl

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ ()
276276
$ENV{'PATH'}.=$ENV{'WINTOOLS'}."/sdk/python/Tcl/bin:".$ENV{'WINTOOLS'}."/sdk/python/Tcl/lib";
277277

278278
$ENV{'PYTHONPATH'}= $WINBLDROOT."\\direct\\src\\showbase;".$WINBLDROOT."\\panda\\lib;".$WINBLDROOT."\\dtool\\lib;".$WINBLDROOT."\\wintools\\bin;".$WINBLDROOT."\\wintools\\lib;";
279-
$ENV{'PYTHONPATH'}.= $WINBLDROOT."\\wintools\\sdk\\python\\Python-2.0\\Lib;".$WINBLDROOT."\\wintools\\sdk\\python\\Python-2.0\\DLLs;";
279+
$ENV{'PYTHONPATH'}.= $WINBLDROOT."\\wintools\\sdk\\python\\Python-2.2\\Lib;".$WINBLDROOT."\\wintools\\sdk\\python\\Python-2.2\\DLLs;";
280280
# direct/src/showbase/sitecustomize.py will add paths based on CTPROJS
281281
$ENV{'CTPROJS'}="TOONTOWN:personal DIRECT:personal PANDA:personal WINTOOLS:personal DTOOL:personal";
282282

@@ -650,11 +650,6 @@ ()
650650
goto 'DBGTREECOPY';
651651
}
652652

653-
if($DEBUG_GENERATE_PYTHON_CODE_ONLY) {
654-
&gen_python_code();
655-
exit(0);
656-
}
657-
658653
# goto 'SKIP_REMOVE';
659654

660655
SKIP_REMOVE:
@@ -670,6 +665,12 @@ ()
670665
}
671666

672667
$ENV{'PANDA_OPTIMIZE'}='2';
668+
669+
if($DEBUG_GENERATE_PYTHON_CODE_ONLY) {
670+
&gen_python_code();
671+
exit(0);
672+
}
673+
673674
&buildall($INSTALLNUM);
674675
}
675676

@@ -680,6 +681,12 @@ ()
680681
$ENV{'PANDA_BUILD_TYPE'} = 'gmsvc';
681682
}
682683
$ENV{'PANDA_OPTIMIZE'}='3';
684+
685+
if($DEBUG_GENERATE_PYTHON_CODE_ONLY) {
686+
&gen_python_code();
687+
exit(0);
688+
}
689+
683690
&buildall($RELEASENUM);
684691
}
685692

@@ -696,6 +703,11 @@ ()
696703
$ENV{'PANDA_OPTIMIZE'}='1';
697704
}
698705

706+
if($DEBUG_GENERATE_PYTHON_CODE_ONLY) {
707+
&gen_python_code();
708+
exit(0);
709+
}
710+
699711
&buildall($DEBUGNUM);
700712
&make_bsc_file();
701713
delete $ENV{'USE_BROWSEINFO'};

0 commit comments

Comments
 (0)