[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9747 - in trunk/gnue-common/packaging/osx: . build-env/Resources
From: |
johannes |
Subject: |
[gnue] r9747 - in trunk/gnue-common/packaging/osx: . build-env/Resources |
Date: |
Wed, 11 Jul 2007 04:46:35 -0500 (CDT) |
Author: johannes
Date: 2007-07-11 04:46:35 -0500 (Wed, 11 Jul 2007)
New Revision: 9747
Modified:
trunk/gnue-common/packaging/osx/build-env/Resources/postflight
trunk/gnue-common/packaging/osx/create-build.dist_template
Log:
More work on packaging for OS X
Modified: trunk/gnue-common/packaging/osx/build-env/Resources/postflight
===================================================================
--- trunk/gnue-common/packaging/osx/build-env/Resources/postflight
2007-07-11 08:01:16 UTC (rev 9746)
+++ trunk/gnue-common/packaging/osx/build-env/Resources/postflight
2007-07-11 09:46:35 UTC (rev 9747)
@@ -5,13 +5,14 @@
#
PYTHON=python2.3
-COMPILE=/usr/lib/$PYTHON/compileall.py
-SITELIB="/usr/lib/$PYTHON/site-packages/gnue/"
+SITE=`$PYTHON -c "import site; print site.here"`
+COMPILE="$SITE/compileall.py"
+SITELIB="$SITE/site-packages/gnue"
if which $PYTHON >/dev/null 2>&1 && [ -e "$COMPILE" ];
then
for i in $SITELIB ; do
- $PYTHON -O $COMPILE -q $i
- $PYTHON $COMPILE -q $i
+ $PYTHON -O $COMPILE -q -f $i
+ $PYTHON $COMPILE -q -f $i
done
fi
Modified: trunk/gnue-common/packaging/osx/create-build.dist_template
===================================================================
--- trunk/gnue-common/packaging/osx/create-build.dist_template 2007-07-11
08:01:16 UTC (rev 9746)
+++ trunk/gnue-common/packaging/osx/create-build.dist_template 2007-07-11
09:46:35 UTC (rev 9747)
@@ -46,14 +46,6 @@
cd "$packagedir"
python setup.py install --prefix=/usr --root=$destdir --no-compile
-# ---------------------------------------------------------------------------
-# Make sure to have a gnue.pth file in the Framework
-# ---------------------------------------------------------------------------
-# TODO: Check if this isn't better placed in a postflight script
-cd "$destdir"
-syslnk="System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages"
-mkdir -p $syslnk
-echo "/usr/lib/python2.3/site-packages" > "$syslnk/gnue.pth"
# ---------------------------------------------------------------------------
# Apply the proper permissions to all files of the package
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9747 - in trunk/gnue-common/packaging/osx: . build-env/Resources,
johannes <=