From 04ccc446b2a279ff71bb60ac2994d5171a7f45c7 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Fri, 10 Jun 2005 19:30:13 +0000 Subject: [PATCH] Get it right eventually --- doc/makepanda/makepanda.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/makepanda/makepanda.py b/doc/makepanda/makepanda.py index b051b9535c..da97320c5c 100755 --- a/doc/makepanda/makepanda.py +++ b/doc/makepanda/makepanda.py @@ -695,12 +695,15 @@ for version,key1,key2,subdir in MAXVERSIONS: ## ######################################################################## -if (OMIT.count("PYTHON")==0) and (sys.platform != "win32"): - if (os.path.isdir("/usr/include/python2.5")): PYTHONSDK = "/usr/include/python2.5" - elif (os.path.isdir("/usr/include/python2.4")): PYTHONSDK = "/usr/include/python2.4" - elif (os.path.isdir("/usr/include/python2.3")): PYTHONSDK = "/usr/include/python2.3" - elif (os.path.isdir("/usr/include/python2.2")): PYTHONSDK = "/usr/include/python2.2" - else: sys.exit("Cannot find the python SDK") +if (OMIT.count("PYTHON")==0): + if (sys.platform != "win32"): + PYTHONSDK="thirdparty/win-python" + else: + if (os.path.isdir("/usr/include/python2.5")): PYTHONSDK = "/usr/include/python2.5" + elif (os.path.isdir("/usr/include/python2.4")): PYTHONSDK = "/usr/include/python2.4" + elif (os.path.isdir("/usr/include/python2.3")): PYTHONSDK = "/usr/include/python2.3" + elif (os.path.isdir("/usr/include/python2.2")): PYTHONSDK = "/usr/include/python2.2" + else: sys.exit("Cannot find the python SDK") ######################################################################## ##