|
|
@ -1,7 +1,8 @@ |
|
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# |
|
|
|
# T2 SDE: package/.../python/python.conf |
|
|
|
# Filename: package/.../python/python.conf |
|
|
|
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2004 Clifford Wolf |
|
|
|
# Copyright (C) 1998 - 2004 Clifford Wolf |
|
|
|
# |
|
|
|
# |
|
|
@ -11,7 +12,7 @@ |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
python_postmake() { |
|
|
|
python_postmake() { |
|
|
|
cat > $root/etc/profile.d/python <<-EOT |
|
|
|
cat > $root/etc/profile.d/python <<-EOT |
|
|
@ -33,8 +34,6 @@ hook_add postmake 5 "python_postmake" |
|
|
|
# hardcoded path idocy |
|
|
|
# hardcoded path idocy |
|
|
|
fix_python_for_64bit() { |
|
|
|
fix_python_for_64bit() { |
|
|
|
sed -i 's,/lib\([[:blank:]]\),/lib64\1,g' Modules/Setup.dist |
|
|
|
sed -i 's,/lib\([[:blank:]]\),/lib64\1,g' Modules/Setup.dist |
|
|
|
ln -svnf ../lib/python${ver:0:3} $root/$libdir/python${ver:0:3} |
|
|
|
|
|
|
|
ln -svnf ../lib/python $root/$libdir/python |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[[ $libdir = *lib64 ]] && hook_add preconf 9 "fix_python_for_64bit" |
|
|
|
[[ $libdir = *lib64 ]] && hook_add preconf 9 "fix_python_for_64bit" |
|
|
|