From 1dc5aab1e8db5ee1989d5c0d6bc421fa20be0888 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 14 Oct 2009 17:08:58 +0000 Subject: [PATCH] Closes: 450015 --- makepanda/installpanda.py | 2 +- makepanda/makepanda.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/makepanda/installpanda.py b/makepanda/installpanda.py index ccfe012deb..f5015b7238 100644 --- a/makepanda/installpanda.py +++ b/makepanda/installpanda.py @@ -100,7 +100,7 @@ def WriteKeysFile(fname, info): def InstallPanda(destdir="", prefix="/usr", outputdir="built"): if (not prefix.startswith("/")): prefix = "/" + prefix - PPATH=get_python_lib() + PPATH=get_python_lib(1) oscmd("mkdir -p "+destdir+prefix+"/bin") oscmd("mkdir -p "+destdir+prefix+"/include") oscmd("mkdir -p "+destdir+prefix+"/share/panda3d") diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index e27bfc6602..629157ec09 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -4244,6 +4244,7 @@ Description: The Panda3D free 3D engine # the user will be required to install Maya in order # to install the resulting RPM. INSTALLER_SPEC_FILE=""" +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: The Panda3D free 3D engine Name: panda3d Version: VERSION @@ -4271,6 +4272,7 @@ The Panda3D engine. /etc/ld.so.conf.d/panda3d.conf /usr/bin /usr/%_lib +%{python_sitelib} /usr/include/panda3d """