diff options
Diffstat (limited to 'packages/python')
-rw-r--r-- | packages/python/python-2.5.1/sitecustomize.py | 6 | ||||
-rw-r--r-- | packages/python/python-gst/python-path.patch | 35 | ||||
-rw-r--r-- | packages/python/python-gst_0.10.10.bb (renamed from packages/python/python-gst_0.10.8.bb) | 2 | ||||
-rw-r--r-- | packages/python/python-lightmediascanner_svn.bb | 12 | ||||
-rw-r--r-- | packages/python/python-pyqt_4.3.3.bb | 1 | ||||
-rw-r--r-- | packages/python/python-sqlalchemy_0.4.2p3.bb | 12 | ||||
-rw-r--r-- | packages/python/python_2.5.1.bb | 2 |
7 files changed, 52 insertions, 18 deletions
diff --git a/packages/python/python-2.5.1/sitecustomize.py b/packages/python/python-2.5.1/sitecustomize.py index b5e78d3200..4c0ba3f0da 100644 --- a/packages/python/python-2.5.1/sitecustomize.py +++ b/packages/python/python-2.5.1/sitecustomize.py @@ -7,11 +7,11 @@ # * load command line history on startup # * save command line history on exit -HISTORY_FILENAME = "/tmp/python-history-file.txt" +import os def __exithandler(): try: - readline.write_history_file( HISTORY_FILENAME ) + readline.write_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) ) except IOError: pass @@ -22,7 +22,7 @@ def __registerExitHandler(): def __enableReadlineSupport(): readline.parse_and_bind("tab: complete") try: - readline.read_history_file( "/tmp/python-history-file.txt" ) + readline.read_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) ) except IOError: pass diff --git a/packages/python/python-gst/python-path.patch b/packages/python/python-gst/python-path.patch index 465d5b180a..6cbad8cc5f 100644 --- a/packages/python/python-gst/python-path.patch +++ b/packages/python/python-gst/python-path.patch @@ -1,24 +1,33 @@ -Index: gst-python-0.10.7/acinclude.m4 +Index: gst-python-0.10.10/acinclude.m4 =================================================================== ---- gst-python-0.10.7.orig/acinclude.m4 2007-03-02 14:10:28.652128590 +0100 -+++ gst-python-0.10.7/acinclude.m4 2007-03-02 14:41:00.106728708 +0100 -@@ -43,12 +43,19 @@ +--- gst-python-0.10.10.orig/acinclude.m4 ++++ gst-python-0.10.10/acinclude.m4 +@@ -43,16 +43,20 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) dnl deduce PYTHON_INCLUDES +-py_prefix=`$PYTHON -c "import sys; print sys.prefix"` +-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` +-if $PYTHON-config --help 2>/dev/null; then +- PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null` + +AC_ARG_WITH(python-includes, -+ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval) ++ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval) +if test x$py_exec_prefix != x; then -+PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}" -+else - py_prefix=`$PYTHON -c "import sys; print sys.prefix"` - py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` - PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" - if test "$py_prefix" != "$py_exec_prefix"; then - PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" ++ PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}" + else +- PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" +- if test "$py_prefix" != "$py_exec_prefix"; then +- PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" +- fi ++ py_prefix=`$PYTHON -c "import sys; print sys.prefix"` ++ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` ++ PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" ++if test "$py_prefix" != "$py_exec_prefix"; then ++ PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" ++ fi fi -+fi ++ AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS="$CPPFLAGS" diff --git a/packages/python/python-gst_0.10.8.bb b/packages/python/python-gst_0.10.10.bb index 224d24b59a..cc1a19574e 100644 --- a/packages/python/python-gst_0.10.8.bb +++ b/packages/python/python-gst_0.10.10.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Python Gstreamer bindings" SECTION = "devel/python" LICENSE = "LGPL" DEPENDS = "gstreamer gst-plugins-base python-pygobject" -PR = "ml1" +PR = "ml0" SRC_URI = "http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.bz2 \ file://python-path.patch;patch=1" diff --git a/packages/python/python-lightmediascanner_svn.bb b/packages/python/python-lightmediascanner_svn.bb new file mode 100644 index 0000000000..27d0bb62f1 --- /dev/null +++ b/packages/python/python-lightmediascanner_svn.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "Python bindings to the Lightweight media scanner" +SECTION = "devel/python" +HOMEPAGE = "http://lms.garage.maemo.org/" +AUTHOR = "Gustavo Barbieri" +LICENSE = "LGPL" +DEPENDS = "lightmediascanner" +PV = "0.1.0+svn${SRCREV}" + +SRC_URI = "svn://garage.maemo.org/svn/lms/;module=python-lightmediascanner;proto=https" +S = "${WORKDIR}/python-lightmediascanner" + +inherit distutils diff --git a/packages/python/python-pyqt_4.3.3.bb b/packages/python/python-pyqt_4.3.3.bb index 2fd6fcc38b..9dd2040a5b 100644 --- a/packages/python/python-pyqt_4.3.3.bb +++ b/packages/python/python-pyqt_4.3.3.bb @@ -4,6 +4,7 @@ AUTHOR = "Phil Thomson @ riverbank.co.uk" SECTION = "devel/python" PRIORITY = "optional" LICENSE = "GPL" +DEPENDS = "sip-native python-sip" RDEPENDS = "python-core" SRCNAME = "pyqt" PR = "ml1" diff --git a/packages/python/python-sqlalchemy_0.4.2p3.bb b/packages/python/python-sqlalchemy_0.4.2p3.bb new file mode 100644 index 0000000000..2a797eb439 --- /dev/null +++ b/packages/python/python-sqlalchemy_0.4.2p3.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL" +HOMEPAGE = "http://www.sqlalchemy.org/" +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "MIT" +SRCNAME = "SQLAlchemy" +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/sqlalchemy/${SRCNAME}-${PV}.tar.gz" +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools diff --git a/packages/python/python_2.5.1.bb b/packages/python/python_2.5.1.bb index b274b0d7f9..668c2a7833 100644 --- a/packages/python/python_2.5.1.bb +++ b/packages/python/python_2.5.1.bb @@ -7,7 +7,7 @@ DEPENDS = "python-native readline zlib gdbm openssl sqlite3 tcl tk" DEPENDS_sharprom = "python-native readline zlib gdbm openssl" # NOTE: Keep the digit in sync with BASEREV in contrib/generate-manifest-2.5.py -PR = "ml7" +PR = "ml8" PYTHON_MAJMIN = "2.5" |