Skip to contentSkip to conversation

Adding python client APIs for glance, quantum and keystone

RFC PATCH In review David Nyström 3 participants 24 messages Dec 18, 2012 – Dec 20, 2012

lore
Share & tools
lore
#0 lore raw

cover Adding python client APIs for glance, quantum and keystone

Sending these patches as an RFC since it includes a removal of a meta-virt patch on python-2.7.3. Also, some of the common python packages might not be optimal to keep in the meta-virtualization layer, some should perhaps be sent as package updates to oe-core.

David Nyström (16):
Removed meta-virtualization private patch, and using upstream instead Added python-cliff recipe
Added python-cmd2 recipe
Added python-httplib2 recipe
Added python-jsonpatch recipe
Added python-jsonpointer recipe
Added python-jsonschema recipe
Added python-prettytable recipe
Added python-pycrypto recipe
Added python-pyopenssl recipe
Added python-pyparsing recipe
Added python-simplejson recipe
Added python-warlock recipe
Added python-glanceclient recipe
Added python-quantumclient recipe
Added python-keystoneclient recipe

 .../glanceclient/python-glanceclient_git.bb        |   26 ++++
 .../keystoneclient/python-keystoneclient_git.bb    |   24 ++++
 .../quantumclient/python-quantumclient_git.bb      |   23 ++++
 .../01-use-proper-tools-for-cross-build.patch      |  138 --------------------
 recipes-devtools/python/python_2.7.3.bbappend      |    9 --
 .../files/001-remove-distribute-dependency.patch   |   24 ++++
 recipes-python/cliff/python-cliff_1.3.bb           |   29 ++++
 recipes-python/cmd2/python-cmd2_0.6.4.bb           |   20 +++
 recipes-python/httplib2/python-httplib2_0.7.7.bb   |   19 +++
 recipes-python/jsonpatch/python-jsonpatch_0.10.bb  |   20 +++
 .../jsonpointer/python-jsonpointer_0.5.bb          |   16 +++
 recipes-python/jsonschema/python-jsonschema_0.7.bb |   22 ++++
 .../prettytable/python-prettytable_0.6.1.bb        |   18 +++
 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb  |   20 +++
 .../pycrypto/files/001-remove-includes.patch       |   11 ++
 recipes-python/pycrypto/python-pycrypto_2.6.bb     |   46 +++++++
 recipes-python/pyparsing/python-pyparsing_1.5.6.bb |   22 ++++
 .../simplejson/python-simplejson_2.6.2.bb          |   21 +++
 recipes-python/warlock/python-warlock_0.7.0.bb     |   26 ++++
 19 files changed, 387 insertions(+), 147 deletions(-)
 create mode 100644 recipes-cloud/glanceclient/python-glanceclient_git.bb
 create mode 100644 recipes-cloud/keystoneclient/python-keystoneclient_git.bb
 create mode 100644 recipes-cloud/quantumclient/python-quantumclient_git.bb
 delete mode 100644 recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
 delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend
 create mode 100644 recipes-python/cliff/files/001-remove-distribute-dependency.patch
 create mode 100644 recipes-python/cliff/python-cliff_1.3.bb
 create mode 100644 recipes-python/cmd2/python-cmd2_0.6.4.bb
 create mode 100644 recipes-python/httplib2/python-httplib2_0.7.7.bb
 create mode 100644 recipes-python/jsonpatch/python-jsonpatch_0.10.bb
 create mode 100644 recipes-python/jsonpointer/python-jsonpointer_0.5.bb
 create mode 100644 recipes-python/jsonschema/python-jsonschema_0.7.bb
 create mode 100644 recipes-python/prettytable/python-prettytable_0.6.1.bb
 create mode 100644 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb
 create mode 100644 recipes-python/pycrypto/files/001-remove-includes.patch
 create mode 100644 recipes-python/pycrypto/python-pycrypto_2.6.bb
 create mode 100644 recipes-python/pyparsing/python-pyparsing_1.5.6.bb
 create mode 100644 recipes-python/simplejson/python-simplejson_2.6.2.bb
 create mode 100644 recipes-python/warlock/python-warlock_0.7.0.bb
Signature · 1 line
1.7.9.5
#1 lore raw

RFC PATCH 1/16 Removed meta-virtualization private patch, and using upstream instead

---
 .../01-use-proper-tools-for-cross-build.patch      |  138 --------------------
 recipes-devtools/python/python_2.7.3.bbappend      |    9 --
 2 files changed, 147 deletions(-)
 delete mode 100644 recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
 delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend
recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -138
deleted file mode 100644
index 2589bde..0000000
@@ -1,138 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-# We need to ensure our host tools get run during build, not the freshly
-# built cross-tools (this will not work), so we introduce HOSTPYTHON and HOSTPGEN.
-# Signed-Off: Michael 'Mickey' Lauer <[email protected]>
-
-Index: Python-2.7.2/Makefile.pre.in
-===================================================================
---- Python-2.7.2.orig/Makefile.pre.in
-+++ Python-2.7.2/Makefile.pre.in
-@@ -182,6 +182,7 @@ UNICODE_OBJS=   @UNICODE_OBJS@
- 
- PYTHON=		python$(EXE)
- BUILDPYTHON=	python$(BUILDEXE)
-+HOSTPYTHON=	$(BUILDPYTHON)
- 
- # The task to run while instrument when building the profile-opt target
- PROFILE_TASK=	$(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
-@@ -214,7 +215,7 @@ LIBFFI_INCLUDEDIR=	@LIBFFI_INCLUDEDIR@
- ##########################################################################
- # Parser
- PGEN=		Parser/pgen$(EXE)
--
-+HOSTPGEN=	$(PGEN)$(EXE)
- POBJS=		\
- 		Parser/acceler.o \
- 		Parser/grammar1.o \
-@@ -401,14 +402,14 @@ $(BUILDPYTHON):	Modules/python.o $(LIBRA
- 			$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
- 
- platform: $(BUILDPYTHON)
--	$(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-+	$(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
- 
- 
- # Build the shared modules
- sharedmods: $(BUILDPYTHON)
- 	@case $$MAKEFLAGS in \
--	*s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
--	*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
-+	*s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
-+	*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py build;; \
- 	esac
- 
- # Build static library
-@@ -542,7 +543,7 @@ Modules/python.o: $(srcdir)/Modules/pyth
- $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
- Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
- 		-@$(INSTALL) -d Include
--		$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-+		$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
- 		-touch Parser/pgen.stamp
- 
- $(PGEN):	$(PGENOBJS)
-@@ -926,25 +927,25 @@ libinstall:	build_all $(srcdir)/Lib/$(PL
- 	done
- 	$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
- 	PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
--		./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
-+		$(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
- 		-d $(LIBDEST) -f \
- 		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
- 		$(DESTDIR)$(LIBDEST)
- 	PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--		./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
-+		$(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
- 		-d $(LIBDEST) -f \
- 		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
- 		$(DESTDIR)$(LIBDEST)
- 	-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
--		./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
-+		$(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
- 		-d $(LIBDEST)/site-packages -f \
- 		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
- 	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--		./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
-+		$(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
- 		-d $(LIBDEST)/site-packages -f \
- 		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
- 	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--		./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
-+		$(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
- 
- # Create the PLATDIR source directory, if one wasn't distributed..
- $(srcdir)/Lib/$(PLATDIR):
-@@ -1049,7 +1050,7 @@ libainstall:	all python-config
- # Install the dynamically loadable modules
- # This goes into $(exec_prefix)
- sharedinstall: sharedmods
--	$(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
-+	$(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \
- 	   	--prefix=$(prefix) \
- 		--install-scripts=$(BINDIR) \
- 		--install-platlib=$(DESTSHARED) \
-Index: Python-2.7.2/setup.py
-===================================================================
---- Python-2.7.2.orig/setup.py
-+++ Python-2.7.2/setup.py
-@@ -313,6 +313,7 @@ class PyBuildExt(build_ext):
-             self.failed.append(ext.name)
-             self.announce('*** WARNING: renaming "%s" since importing it'
-                           ' failed: %s' % (ext.name, why), level=3)
-+            return
-             assert not self.inplace
-             basename, tail = os.path.splitext(ext_filename)
-             newname = basename + "_failed" + tail
-@@ -369,8 +370,8 @@ class PyBuildExt(build_ext):
- 
-     def detect_modules(self):
-         # Ensure that /usr/local is always used
--        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
--        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+        #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-+        #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-         self.add_multiarch_paths()
- 
-         # Add paths specified in the environment variables LDFLAGS and
-@@ -475,6 +476,9 @@ class PyBuildExt(build_ext):
- 
-         # XXX Omitted modules: gl, pure, dl, SGI-specific modules
- 
-+        lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ]
-+        inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ]
-+        lib_dirs += os.getenv('LIBRARY_PATH', '').split(os.pathsep)
-         #
-         # The following modules are all pretty straightforward, and compile
-         # on pretty much any POSIXish platform.
-@@ -677,8 +681,8 @@ class PyBuildExt(build_ext):
-             elif curses_library:
-                 readline_libs.append(curses_library)
-             elif self.compiler.find_library_file(lib_dirs +
--                                                     ['/usr/lib/termcap'],
--                                                     'termcap'):
-+                                               ['/usr/lib/termcap'],
-+                                               'termcap'):
-                 readline_libs.append('termcap')
-             exts.append( Extension('readline', ['readline.c'],
-                                    library_dirs=['/usr/lib/termcap'],
recipes-devtools/python/python_2.7.3.bbappend deleted +0 -9
deleted file mode 100644
index e39deba..0000000
@@ -1,9 +0,0 @@
-THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
-FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
-
-DEPENDS += " ncurses"
-
-do_compile_prepend() {
-	export LIBRARY_PATH=${STAGING_DIR_TARGET}/lib
-}
-
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [RFC][PATCH 01/16] Removed meta-virtualization private patch, and using upstream instead

Can you clarify "upstream" in the long log of this patch ? It may not be obvious to all readers which upstream you are referencing, oe-core, yocto, python, etc.

Cheers,

Bruce

Quoted 201 lines · David Nyström
---
 .../01-use-proper-tools-for-cross-build.patch      |  138
--------------------
 recipes-devtools/python/python_2.7.3.bbappend      |    9 --
 2 files changed, 147 deletions(-)
 delete mode 100644
recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
 delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend

diff --git a/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch b/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted file mode 100644
index 2589bde..0000000
---
a/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch +++ /dev/null

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -4
@@ -1,138 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-# We need to ensure our host tools get run during build, not the freshly
-# built cross-tools (this will not work), so we introduce HOSTPYTHON and

HOSTPGEN.

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -17
-# Signed-Off: Michael 'Mickey' Lauer <[email protected]>
-
-Index: Python-2.7.2/Makefile.pre.in
-===================================================================
---- Python-2.7.2.orig/Makefile.pre.in
-+++ Python-2.7.2/Makefile.pre.in
-@@ -182,6 +182,7 @@ UNICODE_OBJS=   @UNICODE_OBJS@
-
- PYTHON=               python$(EXE)
- BUILDPYTHON=  python$(BUILDEXE)
-+HOSTPYTHON=   $(BUILDPYTHON)
-
- # The task to run while instrument when building the profile-opt target
- PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc
--with-syscheck
-@@ -214,7 +215,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
-

##########################################################################
- # Parser
- PGEN= Parser/pgen$(EXE)
--
-+HOSTPGEN= $(PGEN)$(EXE)
- POBJS= \

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -4
-               Parser/acceler.o \
-               Parser/grammar1.o \
-@@ -401,14 +402,14 @@ $(BUILDPYTHON):  Modules/python.o $(LIBRA
-                       $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS)

$(LDLAST)
-
- platform: $(BUILDPYTHON)
-- $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig
import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-+ $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from
distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -6
-
-
- # Build the shared modules
- sharedmods: $(BUILDPYTHON)
-       @case $$MAKEFLAGS in \
--      *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'

./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
-- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
-+ *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
$(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
-+ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
$(HOSTPYTHON) -E $(srcdir)/setup.py build;; \

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -17
-       esac
-
- # Build static library
-@@ -542,7 +543,7 @@ Modules/python.o: $(srcdir)/Modules/pyth
- $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
- Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
-               -@$(INSTALL) -d Include
--              $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-+              $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-               -touch Parser/pgen.stamp
-
- $(PGEN):      $(PGENOBJS)
-@@ -926,25 +927,25 @@ libinstall:      build_all $(srcdir)/Lib/$(PL
-       done
-       $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
-       PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
--              ./$(BUILDPYTHON) -Wi -tt

$(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \

(quoted diff) +0 -2
-               -d $(LIBDEST) -f \
-               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data'

\

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -3
-               $(DESTDIR)$(LIBDEST)
-       PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--              ./$(BUILDPYTHON) -Wi -tt -O

$(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -tt -O
$(DESTDIR)$(LIBDEST)/compileall.py \

(quoted diff) +0 -2
-               -d $(LIBDEST) -f \
-               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data'

\

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -3
-               $(DESTDIR)$(LIBDEST)
-       -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
--              ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py

\
-+ $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -4
-               -d $(LIBDEST)/site-packages -f \
-               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--              ./$(BUILDPYTHON) -Wi -t -O

$(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py
\

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -4
-               -d $(LIBDEST)/site-packages -f \
-               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
--              ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram,

lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
-+ $(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram,
lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -32
-
- # Create the PLATDIR source directory, if one wasn't distributed..
- $(srcdir)/Lib/$(PLATDIR):
-@@ -1049,7 +1050,7 @@ libainstall:     all python-config
- # Install the dynamically loadable modules
- # This goes into $(exec_prefix)
- sharedinstall: sharedmods
--      $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
-+      $(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \
-               --prefix=$(prefix) \
-               --install-scripts=$(BINDIR) \
-               --install-platlib=$(DESTSHARED) \
-Index: Python-2.7.2/setup.py
-===================================================================
---- Python-2.7.2.orig/setup.py
-+++ Python-2.7.2/setup.py
-@@ -313,6 +313,7 @@ class PyBuildExt(build_ext):
-             self.failed.append(ext.name)
-             self.announce('*** WARNING: renaming "%s" since importing it'
-                           ' failed: %s' % (ext.name, why), level=3)
-+            return
-             assert not self.inplace
-             basename, tail = os.path.splitext(ext_filename)
-             newname = basename + "_failed" + tail
-@@ -369,8 +370,8 @@ class PyBuildExt(build_ext):
-
-     def detect_modules(self):
-         # Ensure that /usr/local is always used
--        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
--        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+        #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-+        #add_dir_to_list(self.compiler.include_dirs,

'/usr/local/include')

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -12
-         self.add_multiarch_paths()
-
-         # Add paths specified in the environment variables LDFLAGS and
-@@ -475,6 +476,9 @@ class PyBuildExt(build_ext):
-
-         # XXX Omitted modules: gl, pure, dl, SGI-specific modules
-
-+        lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ]
-+        inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ]
-+        lib_dirs += os.getenv('LIBRARY_PATH', '').split(os.pathsep)
-         #
-         # The following modules are all pretty straightforward, and

compile

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -6
-         # on pretty much any POSIXish platform.
-@@ -677,8 +681,8 @@ class PyBuildExt(build_ext):
-             elif curses_library:
-                 readline_libs.append(curses_library)
-             elif self.compiler.find_library_file(lib_dirs +
--

['/usr/lib/termcap'],
-- 'termcap'):
-+ ['/usr/lib/termcap'],
-+ 'termcap'):

recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted +0 -3
-                 readline_libs.append('termcap')
-             exts.append( Extension('readline', ['readline.c'],
-                                    library_dirs=['/usr/lib/termcap'],
recipes-devtools/python/python_2.7.3.bbappend deleted +0 -10
deleted file mode 100644
index e39deba..0000000
@@ -1,9 +0,0 @@
-THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
-FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
-
-DEPENDS += " ncurses"
-
-do_compile_prepend() {
-       export LIBRARY_PATH=${STAGING_DIR_TARGET}/lib
-}
-
--

1.7.9.5

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#3 lore raw

Re: [RFC][PATCH 01/16] Removed meta-virtualization private patch, and using upstream instead

Quoted 7 lines · Bruce Ashfield

Can you clarify "upstream" in the long log of this patch ? It may not be obvious to all readers which upstream you are referencing, oe-core, yocto, python, etc.

Cheers,

Bruce

Yes, will do, in this case I meant poky master.

Quoted 200 lines

On Tue, Dec 18, 2012 at 9:31 AM, David Nyström <[email protected] <mailto:[email protected]>> wrote:

<mailto:[email protected]>>
---
.../01-use-proper-tools-for-cross-build.patch | 138 --------------------
recipes-devtools/python/python_2.7.3.bbappend | 9 --
2 files changed, 147 deletions(-)
delete mode 100644
recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend

diff --git a/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch b/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch deleted file mode 100644
index 2589bde..0000000
--- a/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch +++ /dev/null
@@ -1,138 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-# We need to ensure our host tools get run during build, not the freshly -# built cross-tools (this will not work), so we introduce HOSTPYTHON and HOSTPGEN.
-# Signed-Off: Michael 'Mickey' Lauer <[email protected] <mailto:[email protected]>>
-
-Index: Python-2.7.2/Makefile.pre.in <http://Makefile.pre.in>
-===================================================================
---- Python-2.7.2.orig/Makefile.pre.in <http://Makefile.pre.in>
-+++ Python-2.7.2/Makefile.pre.in <http://Makefile.pre.in>
-@@ -182,6 +182,7 @@ UNICODE_OBJS= @UNICODE_OBJS@
-
- PYTHON= python$(EXE)
- BUILDPYTHON= python$(BUILDEXE)
-+HOSTPYTHON= $(BUILDPYTHON)
-
- # The task to run while instrument when building the profile-opt target
- PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
-@@ -214,7 +215,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
- ##########################################################################
- # Parser
- PGEN= Parser/pgen$(EXE)
--
-+HOSTPGEN= $(PGEN)$(EXE)
- POBJS= \
- Parser/acceler.o \
- Parser/grammar1.o \
-@@ -401,14 +402,14 @@ $(BUILDPYTHON): Modules/python.o $(LIBRA
- $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
-
- platform: $(BUILDPYTHON)
-- $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig
import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-+ $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from
distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
-
-
- # Build the shared modules
- sharedmods: $(BUILDPYTHON)
- @case $$MAKEFLAGS in \
-- *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
-- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
-+ *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
$(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
-+ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)'
$(HOSTPYTHON) -E $(srcdir)/setup.py build;; \
- esac
-
- # Build static library
-@@ -542,7 +543,7 @@ Modules/python.o: $(srcdir)/Modules/pyth
- $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
- Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
- -@$(INSTALL) -d Include
-- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-+ $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
- -touch Parser/pgen.stamp
-
- $(PGEN): $(PGENOBJS)
-@@ -926,25 +927,25 @@ libinstall: build_all $(srcdir)/Lib/$(PL
- done
- $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-- ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
- -d $(LIBDEST) -f \
- -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
- $(DESTDIR)$(LIBDEST)
- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-- ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
- -d $(LIBDEST) -f \
- -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
- $(DESTDIR)$(LIBDEST)
- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-- ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
- -d $(LIBDEST)/site-packages -f \
- -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-- ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
-+ $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
- -d $(LIBDEST)/site-packages -f \
- -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-- ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram,
lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
-+ $(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram,
lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
-
- # Create the PLATDIR source directory, if one wasn't distributed..
- $(srcdir)/Lib/$(PLATDIR):
-@@ -1049,7 +1050,7 @@ libainstall: all python-config
- # Install the dynamically loadable modules
- # This goes into $(exec_prefix)
- sharedinstall: sharedmods
-- $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
-+ $(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \
- --prefix=$(prefix) \
- --install-scripts=$(BINDIR) \
- --install-platlib=$(DESTSHARED) \
-Index: Python-2.7.2/setup.py
-===================================================================
---- Python-2.7.2.orig/setup.py
-+++ Python-2.7.2/setup.py
-@@ -313,6 +313,7 @@ class PyBuildExt(build_ext):
- self.failed.append(ext.name <http://ext.name>)
- self.announce('*** WARNING: renaming "%s" since importing it'
- ' failed: %s' % (ext.name <http://ext.name>,
why), level=3)
-+ return
- assert not self.inplace
- basename, tail = os.path.splitext(ext_filename)
- newname = basename + "_failed" + tail
-@@ -369,8 +370,8 @@ class PyBuildExt(build_ext):
-
- def detect_modules(self):
- # Ensure that /usr/local is always used
-- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+ #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-+ #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
- self.add_multiarch_paths()
-
- # Add paths specified in the environment variables LDFLAGS and
-@@ -475,6 +476,9 @@ class PyBuildExt(build_ext):
-
- # XXX Omitted modules: gl, pure, dl, SGI-specific modules
-
-+ lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ]
-+ inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ]
-+ lib_dirs += os.getenv('LIBRARY_PATH', '').split(os.pathsep)
- #
- # The following modules are all pretty straightforward, and compile
- # on pretty much any POSIXish platform.
-@@ -677,8 +681,8 @@ class PyBuildExt(build_ext):
- elif curses_library:
- readline_libs.append(curses_library)
- elif self.compiler.find_library_file(lib_dirs +
-- ['/usr/lib/termcap'],
-- 'termcap'):
-+ ['/usr/lib/termcap'],
-+ 'termcap'):
- readline_libs.append('termcap')
- exts.append( Extension('readline', ['readline.c'],
- library_dirs=['/usr/lib/termcap'],
diff --git a/recipes-devtools/python/python_2.7.3.bbappend b/recipes-devtools/python/python_2.7.3.bbappend
deleted file mode 100644
index e39deba..0000000
--- a/recipes-devtools/python/python_2.7.3.bbappend
+++ /dev/null
@@ -1,9 +0,0 @@
-THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" -FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" -
-DEPENDS += " ncurses"
-
-do_compile_prepend() {
- export LIBRARY_PATH=${STAGING_DIR_TARGET}/lib
-}
-
--
1.7.9.5

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#4 lore raw

RFC PATCH 2/16 Added python-cliff recipe

In reply to David Nyström
---
 .../files/001-remove-distribute-dependency.patch   |   24 ++++++++++++++++
 recipes-python/cliff/python-cliff_1.3.bb           |   29 ++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 recipes-python/cliff/files/001-remove-distribute-dependency.patch
 create mode 100644 recipes-python/cliff/python-cliff_1.3.bb
recipes-python/cliff/files/001-remove-distribute-dependency.patch new file +24 -0
new file mode 100644
index 0000000..7d6d6df
@@ -0,0 +1,24 @@
+diff -Naur cliff-1.3.old/setup.py cliff-1.3/setup.py
+--- cliff-1.3.old/setup.py	2012-12-18 12:53:53.650202165 +0100
++++ cliff-1.3/setup.py	2012-12-18 12:55:25.046204612 +0100
+@@ -5,10 +5,6 @@
+ # Change docs/source/conf.py too!
+ VERSION = '1.3'
+ 
+-# Bootstrap installation of Distribute
+-import distribute_setup
+-distribute_setup.use_setuptools()
+-
+ from setuptools import setup, find_packages
+ 
+ from distutils.util import convert_path
+@@ -21,8 +17,7 @@
+ except IOError:
+     long_description = ''
+ 
+-install_requires = ['distribute',
+-                    'PrettyTable',
++install_requires = ['PrettyTable',
+                     'cmd2',
+                     ]
+ try:
recipes-python/cliff/python-cliff_1.3.bb new file +29 -0
new file mode 100644
index 0000000..6ea8fa5
@@ -0,0 +1,29 @@
+SUMMARY="Command Line Interface Formulation Framework"
+DESCRIPTION = "cliff is a framework for building command line programs. It uses \
+	    setuptools entry points to provide subcommands, output formatters, and \
+	    other extensions"
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+DEPENDS += "python-prettytable \
+	python-cmd2 \
+	python-argparse \
+	"
+RDEPENDS_${PN} += "python-prettytable \
+	python-cmd2 \
+	"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+SRC_URI = "http://pypi.python.org/packages/source/c/cliff/cliff-${PV}.tar.gz \
+	file://001-remove-distribute-dependency.patch"
+
+SRC_URI[md5sum] = "33ee5562a58f769f6cf0d9742b42d775"
+SRC_URI[sha256sum] = "762ef3046a96676a176e686a2a1cbb7e1db95f754578eca309e3c648c6a16a31"
+
+S = "${WORKDIR}/cliff-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#5 lore raw

RFC PATCH 3/16 Added python-cmd2 recipe

In reply to David Nyström
---
 recipes-python/cmd2/python-cmd2_0.6.4.bb |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 recipes-python/cmd2/python-cmd2_0.6.4.bb
recipes-python/cmd2/python-cmd2_0.6.4.bb new file +20 -0
new file mode 100644
index 0000000..a10c185
@@ -0,0 +1,20 @@
+SUMMARY = "cmd2"
+DESCRIPTION = "Extra features for standard library's cmd module"
+SRCNAME = "cmd2"
+HOMEPAGE = "http://packages.python.org/cmd2/"
+LICENSE = "MIT"
+
+DEPENDS += "python-pyparsing"
+RDEPENDS_${PN} += "python-pyparsing"
+
+LIC_FILES_CHKSUM = "file://setup.py;beginline=21;endline=21;md5=25c0f7ede01b1eab41daf880e5791f05"
+
+PR = "r0"
+
+SRC_URI = "http://pypi.python.org/packages/source/c/cmd2/cmd2-0.6.4.tar.gz \
+	"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+SRC_URI[md5sum] = "60a07255bbcb4342888b1574f46e56ea"
+SRC_URI[sha256sum] = "ff52cb800d931bbd0ce4b05bac0b024cf34ec3a04f66eadcb7d3f7dda42429ba"
+inherit setuptools
\ No newline at end of file
Signature · 1 line
1.7.9.5
#6 lore raw

RFC PATCH 4/16 Added python-httplib2 recipe

In reply to David Nyström
---
 recipes-python/httplib2/python-httplib2_0.7.7.bb |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 recipes-python/httplib2/python-httplib2_0.7.7.bb
recipes-python/httplib2/python-httplib2_0.7.7.bb new file +19 -0
new file mode 100644
index 0000000..1bd2191
@@ -0,0 +1,19 @@
+SUMMARY="HTTP client library"
+DESCRIPTION = "A comprehensive HTTP client library, httplib2.py supports many \
+features left out of other HTTP libraries."
+SECTION = "devel/python"
+LICENSE = "MIT"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://README;beginline=100;endline=121;md5=329279aa355faac89372002a7eefd42f"
+SRC_URI = "http://httplib2.googlecode.com/files/httplib2-${PV}.zip"
+
+SRC_URI[md5sum] = "407ad5c568c4bffa709703f73c63cb71"
+SRC_URI[sha256sum] = "50ef9930d29ec575fa593204511bd5e2c39c32ab1fa09258102fedf083915813"
+
+S = "${WORKDIR}/httplib2-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#7 lore raw

RFC PATCH 5/16 Added python-jsonpatch recipe

In reply to David Nyström
---
 recipes-python/jsonpatch/python-jsonpatch_0.10.bb |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 recipes-python/jsonpatch/python-jsonpatch_0.10.bb
recipes-python/jsonpatch/python-jsonpatch_0.10.bb new file +20 -0
new file mode 100644
index 0000000..f3ea03e
@@ -0,0 +1,20 @@
+SUMMARY="jsonpatch"
+DESCRIPTION = "An implementation of the JSON Patch format"
+SECTION = "devel/python"
+LICENSE = "BSD+"
+PR = "0"
+
+DEPENDS += "python-jsonpointer"
+
+LIC_FILES_CHKSUM = "file://jsonpatch.py;beginline=3;endline=30;md5=5cd7d1fbd6b236ed142e4285624f58fe"
+SRC_URI = "http://pypi.python.org/packages/source/j/jsonpatch/jsonpatch-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "d9a96bdfe208c42415b1749f1b591fa7"
+SRC_URI[sha256sum] = "86409f5c0a8392a277488dd11fc0f603e7241c95cf547b7048e30e69b7f74107"
+
+S = "${WORKDIR}/jsonpatch-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#8 lore raw

RFC PATCH 6/16 Added python-jsonpointer recipe

In reply to David Nyström
---
 .../jsonpointer/python-jsonpointer_0.5.bb          |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 recipes-python/jsonpointer/python-jsonpointer_0.5.bb
recipes-python/jsonpointer/python-jsonpointer_0.5.bb new file +16 -0
new file mode 100644
index 0000000..a5451ba
@@ -0,0 +1,16 @@
+SUMMARY = "python-jsonpointer"
+DESCRIPTION = "Identify specific nodes in a JSON document"
+SECTION = "devel/python"
+HOMEPAGE = "https://github.com/stefankoegl/python-json-pointer"
+LICENSE = "MIT"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://jsonpointer.py;beginline=3;endline=31;md5=5e663c88967b53590856107a043d605c"
+SRC_URI = "http://pypi.python.org/packages/source/j/jsonpointer/jsonpointer-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "41fe4189279b9c6cd35a4131cb2498f2"
+SRC_URI[sha256sum] = "6a27fb4cb590a118d0f8c7e367f902cf553abf5dcb4b7938cdc91cc36e3e4bdf"
+
+S = "${WORKDIR}/jsonpointer-${PV}"
+
+inherit distutils
Signature · 1 line
1.7.9.5
#9 lore raw

RFC PATCH 7/16 Added python-jsonschema recipe

In reply to David Nyström
---
 recipes-python/jsonschema/python-jsonschema_0.7.bb |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 recipes-python/jsonschema/python-jsonschema_0.7.bb
recipes-python/jsonschema/python-jsonschema_0.7.bb new file +22 -0
new file mode 100644
index 0000000..7f6d40b
@@ -0,0 +1,22 @@
+SUMMARY="jsonschema"
+DESCRIPTION = "jsonschema is an implementation of JSON Schema \
+	    (currently in Draft 3 \
+	    <http://tools.ietf.org/html/draft-zyp-json-schema-03>) \
+	    for Python (supporting 2.6+ including Python 3)." 
+SECTION = "devel/python"
+LICENSE = "MIT"
+PR = "0"
+
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=833b6ec380e7cdfcdab8ea6138da2e34"
+SRC_URI = "http://pypi.python.org/packages/source/j/jsonschema/jsonschema-${PV}.zip"
+
+SRC_URI[md5sum] = "b93f9bd7864d7c5c587951efa4c0a80f"
+SRC_URI[sha256sum] = "703b92b969d245b060b37055305110539507dfdc64ac1760b1868ca489c121e0"
+
+S = "${WORKDIR}/jsonschema-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit distutils
Signature · 1 line
1.7.9.5
#10 lore raw

RFC PATCH 8/16 Added python-prettytable recipe

In reply to David Nyström
---
 .../prettytable/python-prettytable_0.6.1.bb        |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 recipes-python/prettytable/python-prettytable_0.6.1.bb
recipes-python/prettytable/python-prettytable_0.6.1.bb new file +18 -0
new file mode 100644
index 0000000..4debf5a
@@ -0,0 +1,18 @@
+SUMMARY="Pretty tables"
+DESCRIPTION = "Print pretty tables in python"
+SECTION = "devel/python"
+LICENSE = "BSD-3-Clause"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=b4f4350335a7117793dfac5e839c125f"
+SRC_URI = "http://pypi.python.org/packages/source/P/PrettyTable/prettytable-${PV}.zip"
+
+SRC_URI[md5sum] = "2ac002f4f944f9468b0df8b4de9e8967"
+SRC_URI[sha256sum] = "3f4c48d80af6d40d5a76dd1650dece386349d6df8b7b096fc8ec39fec21ceba7"
+
+S = "${WORKDIR}/prettytable-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#11 lore raw

RFC PATCH 9/16 Added python-pycrypto recipe

In reply to David Nyström
---
 .../pycrypto/files/001-remove-includes.patch       |   11 +++++
 recipes-python/pycrypto/python-pycrypto_2.6.bb     |   46 ++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 recipes-python/pycrypto/files/001-remove-includes.patch
 create mode 100644 recipes-python/pycrypto/python-pycrypto_2.6.bb
recipes-python/pycrypto/files/001-remove-includes.patch new file +11 -0
new file mode 100644
index 0000000..5b6c0dc
@@ -0,0 +1,11 @@
+--- pycrypto-2.6/setup.py.old	2012-12-11 11:30:55.754674630 +0100
++++ pycrypto-2.6/setup.py	2012-12-11 11:37:53.802685825 +0100
+@@ -370,7 +370,7 @@
+       'ext_modules': plat_ext + [
+             # _fastmath (uses GNU mp library)
+             Extension("Crypto.PublicKey._fastmath",
+-                      include_dirs=['src/','/usr/include/'],
++                      include_dirs=['src/'],
+                       libraries=['gmp'],
+                       sources=["src/_fastmath.c"]),
+ 
recipes-python/pycrypto/python-pycrypto_2.6.bb new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#12 lore raw

RFC PATCH 10/16 Added python-pyopenssl recipe

In reply to David Nyström
---
 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb
recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb new file +20 -0
new file mode 100644
index 0000000..9e2492f
@@ -0,0 +1,20 @@
+SUMMARY="pyOpenSSL"
+DESCRIPTION = "A Python wrapper around the OpenSSL library"
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+RDEPENDS_${PN} += "openssl libssl"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "767bca18a71178ca353dff9e10941929"
+SRC_URI[sha256sum] = "21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b"
+
+S = "${WORKDIR}/pyOpenSSL-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit distutils
Signature · 1 line
1.7.9.5
#13 lore raw

RFC PATCH 11/16 Added python-pyparsing recipe

In reply to David Nyström
---
 recipes-python/pyparsing/python-pyparsing_1.5.6.bb |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 recipes-python/pyparsing/python-pyparsing_1.5.6.bb
recipes-python/pyparsing/python-pyparsing_1.5.6.bb new file +22 -0
new file mode 100644
index 0000000..8f1fa22
@@ -0,0 +1,22 @@
+SUMMARY="Python parsing module"
+DESCRIPTION = "The pyparsing module is an alternative approach to creating and executing \ 
+simple grammars, vs. the traditional lex/yacc approach, or the use of \
+regular expressions.  The pyparsing module provides a library of classes \ 
+that client code uses to construct the grammar directly in Python code."
+SECTION = "devel/python"
+LICENSE = "MIT"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fb46329938e6bc829b256e37d5c1e31a"
+SRC_URI = "http://pypi.python.org/packages/source/p/pyparsing/pyparsing-${PV}.zip"
+
+SRC_URI[md5sum] = "5404de54e6d0ae71ce354d8db3576ac1"
+
+S = "${WORKDIR}/pyparsing-${PV}"
+
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS
+
+inherit distutils
Signature · 1 line
1.7.9.5
#14 lore raw

RFC PATCH 12/16 Added python-simplejson recipe

In reply to David Nyström
---
 .../simplejson/python-simplejson_2.6.2.bb          |   21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-python/simplejson/python-simplejson_2.6.2.bb
recipes-python/simplejson/python-simplejson_2.6.2.bb new file +21 -0
new file mode 100644
index 0000000..5ff26c8
@@ -0,0 +1,21 @@
+SUMMARY="json encoder/decoder"
+DESCRIPTION = "simplejson is a simple, fast, complete, correct and extensible \
+	    JSON <http://json.org> encoder and decoder for Python 2.5+.  It is \
+	    pure Python code with no dependencies, but includes an optional C \
+	    extension for a serious speed boost."
+SECTION = "devel/python"
+LICENSE = "MIT"
+PR = "0"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8a9f8dcfcd28c34daa443e5b1d29813b"
+SRC_URI = "http://pypi.python.org/packages/source/s/simplejson/simplejson-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "9b41cd412dfac7c002aeca61ab0fdfe2"
+SRC_URI[sha256sum] = "1b28d0896a76d4db1ab759204c039ab1ca4bf28bd30d6bf9c79172454e750dd3"
+
+S = "${WORKDIR}/simplejson-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit distutils
Signature · 1 line
1.7.9.5
#15 lore raw

RFC PATCH 13/16 Added python-warlock recipe

In reply to David Nyström
---
 recipes-python/warlock/python-warlock_0.7.0.bb |   26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 recipes-python/warlock/python-warlock_0.7.0.bb
recipes-python/warlock/python-warlock_0.7.0.bb new file +26 -0
new file mode 100644
index 0000000..7c1d6c8
@@ -0,0 +1,26 @@
+SUMMARY="Warlock"
+DESCRIPTION = "Build self-validating python objects using JSON schemas"
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+DEPENDS += "python-jsonschema \
+	python-jsonpatch \
+	"
+
+RDEPENDS_${PN} += "python-jsonschema \
+	       python-jsonpatch \
+	       "
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+SRC_URI = "http://pypi.python.org/packages/source/w/warlock/warlock-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "7567a1df0bbf76a113d945f307d93d9a"
+SRC_URI[sha256sum] = "cc913fe3855f95512d183d158bd0a0f4e1c4b0619041ddb44fd15af8dc86e22a"
+
+S = "${WORKDIR}/warlock-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#16 lore raw

RFC PATCH 14/16 Added python-glanceclient recipe

In reply to David Nyström
---
 .../glanceclient/python-glanceclient_git.bb        |   26 ++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 recipes-cloud/glanceclient/python-glanceclient_git.bb
recipes-cloud/glanceclient/python-glanceclient_git.bb new file +26 -0
new file mode 100644
index 0000000..d9c7472
@@ -0,0 +1,26 @@
+DESCRIPTION = "This is a client library for Glance built on the OpenStack \
+	    Images API. It provides a Python API (the ``glanceclient`` module) \
+	     and a command-line tool (glance)."
+SECTION = "devel/python"
+SRCNAME = "glanceclient"
+LICENSE = "Apache-2"
+PR = "0"
+
+DEPENDS = "gmp"
+RDEPENDS_${PN} = "gmp \
+	python-warlock \
+	python-pyopenssl \
+	python-keystoneclient \
+	python-prettytable \
+	"
+
+FILES_${PN} += "${datadir}/${SRCNAME}"
+
+SRCREV = "c057fe47d6889912b7675aa54102509cd464171a"
+PV = "0.7.0+gitr${SRCREV}"
+SRC_URI = "git://github.com/openstack/python-glanceclient.git;protocol=https"
+S = "${WORKDIR}/git"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
+
+inherit setuptools
Signature · 1 line
1.7.9.5
#17 lore raw

RFC PATCH 15/16 Added python-quantumclient recipe

In reply to David Nyström
---
 .../quantumclient/python-quantumclient_git.bb      |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 recipes-cloud/quantumclient/python-quantumclient_git.bb
recipes-cloud/quantumclient/python-quantumclient_git.bb new file +23 -0
new file mode 100644
index 0000000..bb0aae6
@@ -0,0 +1,23 @@
+DESCRIPTION = "This is the client API library for Quantum."
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+RDEPENDS_${PN} = "python-pyparsing \
+	   python-simplejson \
+	   python-httplib2 \
+	   python-prettytable \
+	   python-cliff \
+	   "
+
+SRCREV = "bc7ba5e19d4e9039146ca37f77a0b232522cddc8"
+PV = "0.2.1+gitr${SRCREV}"
+SRC_URI = "git://github.com/openstack/python-quantumclient.git;protocol=https"
+S = "${WORKDIR}/git"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
\ No newline at end of file
Signature · 1 line
1.7.9.5
#18 lore raw

Re: [RFC][PATCH 15/16] Added python-quantumclient recipe

Quoted 20 lines · David Nyström
---
 .../quantumclient/python-quantumclient_git.bb      |   23
++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 recipes-cloud/quantumclient/

python-quantumclient_git.bb

(quoted diff) +0 -0

python-quantumclient_git.bb
new file mode 100644
index 0000000..bb0aae6

recipes-cloud/quantumclient/python-quantumclient_git.bb new file +4 -0
@@ -0,0 +1,23 @@
+DESCRIPTION = "This is the client API library for Quantum."
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"

recipes-cloud/quantumclient/python-quantumclient_git.bb line 14

Quoted 10 lines
recipes-cloud/quantumclient/python-quantumclient_git.bb new file +10 -0
+
+RDEPENDS_${PN} = "python-pyparsing \
+          python-simplejson \
+          python-httplib2 \
+          python-prettytable \
+          python-cliff \
+          "
+
+SRCREV = "bc7ba5e19d4e9039146ca37f77a0b232522cddc8"
+PV = "0.2.1+gitr${SRCREV}"

I haven't checked yet (swamped by email at the moment), but is the SRCREV you have listed the tag/branch for 0.2.1 ?

If it is, we've been using: PV = "<version>", since adding the gitr + SRCREV
doesn't add any value on top of the version number.

(same question/comment applies to the other client python routines).

Cheers,

Bruce

Quoted 15 lines
recipes-cloud/quantumclient/python-quantumclient_git.bb new file +1 -0
+SRC_URI = "git://

github.com/openstack/python-quantumclient.git;protocol=https"

recipes-cloud/quantumclient/python-quantumclient_git.bb new file +8 -1
+S = "${WORKDIR}/git"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
\ No newline at end of file
--

1.7.9.5

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#19 lore raw

Re: [RFC][PATCH 15/16] Added python-quantumclient recipe

Quoted 41 lines · Bruce Ashfield

On Tue, Dec 18, 2012 at 9:31 AM, David Nyström <[email protected] <mailto:[email protected]>> wrote:

     Signed-off-by: David Nyström <[email protected]
     <mailto:[email protected]>>
     ---
       .../quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>      |   23 ++++++++++++++++++++
       1 file changed, 23 insertions(+)
       create mode 100644 recipes-cloud/quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>

     diff --git a/recipes-cloud/quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>
     b/recipes-cloud/quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>
     new file mode 100644
     index 0000000..bb0aae6
     --- /dev/null
     +++ b/recipes-cloud/quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>
     @@ -0,0 +1,23 @@
     +DESCRIPTION = "This is the client API library for Quantum."
     +SECTION = "devel/python"
     +LICENSE = "Apache-2"
     +PR = "0"
     +
     +RDEPENDS_${PN} = "python-pyparsing \
     +          python-simplejson \
     +          python-httplib2 \
     +          python-prettytable \
     +          python-cliff \
     +          "
     +
     +SRCREV = "bc7ba5e19d4e9039146ca37f77a0b232522cddc8"
     +PV = "0.2.1+gitr${SRCREV}"
Quoted 3 lines

I haven't checked yet (swamped by email at the moment), but is the SRCREV you have listed the tag/branch for 0.2.1 ?

Yes, it is.

Quoted 3 lines

If it is, we've been using: PV = "<version>", since adding the gitr + SRCREV doesn't add any value on top of the version number.

Agree, will fix in whole patchset.

Quoted 29 lines

(same question/comment applies to the other client python routines).

Cheers,

Bruce

     +SRC_URI =
     "git://github.com/openstack/python-quantumclient.git;protocol=https
     <http://github.com/openstack/python-quantumclient.git;protocol=https>"
     +S = "${WORKDIR}/git"
     +
     +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
     +
     +export BUILD_SYS
     +export HOST_SYS
     +
     +inherit setuptools
     \ No newline at end of file
     --
     1.7.9.5

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#20 lore raw

RFC PATCH 16/16 Added python-keystoneclient recipe

In reply to David Nyström
---
 .../keystoneclient/python-keystoneclient_git.bb    |   24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 recipes-cloud/keystoneclient/python-keystoneclient_git.bb
recipes-cloud/keystoneclient/python-keystoneclient_git.bb new file +24 -0
new file mode 100644
index 0000000..3744add
@@ -0,0 +1,24 @@
+SUMMARY = "Python bindings to the OpenStack Identity API (Keystone)"
+DESCRIPTION = "This is a client for the OpenStack Identity API, implemented \
+	    by Keystone. There's a Python API (the keystoneclient module), \
+	    and a command-line script (keystone)"
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+RDEPENDS_${PN} += "python-httplib2 \
+	python-prettytable \
+	python-simplejson \
+	"
+
+SRCREV = "27f0c721174b149c64cc67ff718d007d94fe79aa"
+PV = "0.2.0+gitr${SRCREV}"
+SRC_URI = "git://github.com/openstack/python-keystoneclient.git;protocol=https"
+S = "${WORKDIR}/git"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
\ No newline at end of file
Signature · 1 line
1.7.9.5
#21 lore raw
In reply to David Nyström
Quoted 8 lines · David Nyström

Sending these patches as an RFC since it includes a removal of a meta-virt patch on
python-2.7.3. Also, some of the common python packages might not be optimal to keep in the
meta-virtualization layer, some should perhaps be sent as package updates to oe-core.

I'd agree that it might not be optimal to have some of the python packages in this
layer, since they are more about access libraries, communications wrappers and
security.

The problem with targeting oe-core is that we really need more than just meta-virt
as a user to make them a reasonable candidate for merging. We'd need Richard or Saul to comment on the possibility of merging them to oe-core.

That being said, if it isn't oe-core, the other options seem like the meta-networking
layer, or some of the security layers. The risk with that approach is that we take
what is a currently simple layer dependency list and make it more complicated.

I can't say that I like adding complexity, but if we can't get them into oe-core, then
it makes sense, to try and get them into a common layer that holds similar functionality.

The problem is the timeframe ... if we try and immediately place these in the right
layer(s), then making them available at all will take some time. So from that point
of view, we can drop them in meta-virt and start the conversation about where they
should be in the longer term.

Comments ? I can't say that any of the options really stand out for me :)

Cheers,

Bruce

Quoted 67 lines

David Nyström (16):
Removed meta-virtualization private patch, and using upstream instead Added python-cliff recipe
Added python-cmd2 recipe
Added python-httplib2 recipe
Added python-jsonpatch recipe
Added python-jsonpointer recipe
Added python-jsonschema recipe
Added python-prettytable recipe
Added python-pycrypto recipe
Added python-pyopenssl recipe
Added python-pyparsing recipe
Added python-simplejson recipe
Added python-warlock recipe
Added python-glanceclient recipe
Added python-quantumclient recipe
Added python-keystoneclient recipe

 .../glanceclient/python-glanceclient_git.bb        |   26 ++++
 .../keystoneclient/python-keystoneclient_git.bb    |   24 ++++
 .../quantumclient/python-quantumclient_git.bb      |   23 ++++
 .../01-use-proper-tools-for-cross-build.patch      |  138
--------------------
 recipes-devtools/python/python_2.7.3.bbappend      |    9 --
 .../files/001-remove-distribute-dependency.patch   |   24 ++++
 recipes-python/cliff/python-cliff_1.3.bb           |   29 ++++
 recipes-python/cmd2/python-cmd2_0.6.4.bb           |   20 +++
 recipes-python/httplib2/python-httplib2_0.7.7.bb   |   19 +++
 recipes-python/jsonpatch/python-jsonpatch_0.10.bb  |   20 +++
 .../jsonpointer/python-jsonpointer_0.5.bb          |   16 +++
 recipes-python/jsonschema/python-jsonschema_0.7.bb |   22 ++++
 .../prettytable/python-prettytable_0.6.1.bb        |   18 +++
 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb  |   20 +++
 .../pycrypto/files/001-remove-includes.patch       |   11 ++
 recipes-python/pycrypto/python-pycrypto_2.6.bb     |   46 +++++++
 recipes-python/pyparsing/python-pyparsing_1.5.6.bb |   22 ++++
 .../simplejson/python-simplejson_2.6.2.bb          |   21 +++
 recipes-python/warlock/python-warlock_0.7.0.bb     |   26 ++++
 19 files changed, 387 insertions(+), 147 deletions(-)
 create mode 100644 recipes-cloud/glanceclient/python-glanceclient_git.bb
 create mode 100644 recipes-cloud/keystoneclient/
python-keystoneclient_git.bb
 create mode 100644 recipes-cloud/quantumclient/
python-quantumclient_git.bb
 delete mode 100644
recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
 delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend
 create mode 100644
recipes-python/cliff/files/001-remove-distribute-dependency.patch
 create mode 100644 recipes-python/cliff/python-cliff_1.3.bb
 create mode 100644 recipes-python/cmd2/python-cmd2_0.6.4.bb
 create mode 100644 recipes-python/httplib2/python-httplib2_0.7.7.bb
 create mode 100644 recipes-python/jsonpatch/python-jsonpatch_0.10.bb
 create mode 100644 recipes-python/jsonpointer/python-jsonpointer_0.5.bb
 create mode 100644 recipes-python/jsonschema/python-jsonschema_0.7.bb
 create mode 100644 recipes-python/prettytable/python-prettytable_0.6.1.bb
 create mode 100644 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb
 create mode 100644 recipes-python/pycrypto/files/001-remove-includes.patch
 create mode 100644 recipes-python/pycrypto/python-pycrypto_2.6.bb
 create mode 100644 recipes-python/pyparsing/python-pyparsing_1.5.6.bb
 create mode 100644 recipes-python/simplejson/python-simplejson_2.6.2.bb
 create mode 100644 recipes-python/warlock/python-warlock_0.7.0.bb

--
1.7.9.5

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#22 lore raw
Quoted 33 lines · Bruce Ashfield

On Tue, Dec 18, 2012 at 9:31 AM, David Nyström <[email protected] <mailto:[email protected]>> wrote:

Sending these patches as an RFC since it includes a removal of a meta-virt patch on
python-2.7.3. Also, some of the common python packages might not be optimal to keep in the
meta-virtualization layer, some should perhaps be sent as package updates to oe-core.

I'd agree that it might not be optimal to have some of the python packages in this layer, since they are more about access libraries, communications wrappers and security.

The problem with targeting oe-core is that we really need more than just meta-virt as a user to make them a reasonable candidate for merging. We'd need Richard or Saul to comment on the possibility of merging them to oe-core.

That being said, if it isn't oe-core, the other options seem like the meta-networking
layer, or some of the security layers. The risk with that approach is that we take what is a currently simple layer dependency list and make it more complicated.

I can't say that I like adding complexity, but if we can't get them into oe-core, then
it makes sense, to try and get them into a common layer that holds similar functionality.

Quoted 7 lines

The problem is the timeframe ... if we try and immediately place these in the right layer(s), then making them available at all will take some time. So from that point of view, we can drop them in meta-virt and start the conversation about where they should be in the longer term.

Comments ? I can't say that any of the options really stand out for me :)

I suggest we split the recipes which we don't see direct ownership of (i.e. a common usecase) into recipes-external/* as a first step. Step two would be to find a suitable upstream for each package, with the end goal to have recipes-external empty.

Somewhat OT:
I really see some improvement the way disutils.bbclass/setuptools.bbclass work today,
I've improved create-recipe to understand python source-tarballs, early patch on yocto ML, which makes the tedious task of adding python dependencies somewhat easier. But alot of the metadata available in the python source packages should be able to be automated with bitbake via an inherited bbclass.

RDEPENDS, sub package-split et.c. most of the metadata is already avaiable in dist/setuptools enables packages. The added bonus of automating as much as possible would be a common layout of most packages. Is anyone aware of any previous work in this direction ?

Quoted 105 lines

Cheers,

Bruce

     David Nyström (16):
        Removed meta-virtualization private patch, and using upstream instead
        Added python-cliff recipe
        Added python-cmd2 recipe
        Added python-httplib2 recipe
        Added python-jsonpatch recipe
        Added python-jsonpointer recipe
        Added python-jsonschema recipe
        Added python-prettytable recipe
        Added python-pycrypto recipe
        Added python-pyopenssl recipe
        Added python-pyparsing recipe
        Added python-simplejson recipe
        Added python-warlock recipe
        Added python-glanceclient recipe
        Added python-quantumclient recipe
        Added python-keystoneclient recipe

       .../glanceclient/python-glanceclient_git.bb
     <http://python-glanceclient_git.bb>        |   26 ++++
       .../keystoneclient/python-keystoneclient_git.bb
     <http://python-keystoneclient_git.bb>    |   24 ++++
       .../quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>      |   23 ++++
       .../01-use-proper-tools-for-cross-build.patch      |  138 --------------------
       recipes-devtools/python/python_2.7.3.bbappend      |    9 --
       .../files/001-remove-distribute-dependency.patch   |   24 ++++
       recipes-python/cliff/python-cliff_1.3.bb <http://python-cliff_1.3.bb>
            |   29 ++++
       recipes-python/cmd2/python-cmd2_0.6.4.bb <http://python-cmd2_0.6.4.bb>
            |   20 +++
       recipes-python/httplib2/python-httplib2_0.7.7.bb
     <http://python-httplib2_0.7.7.bb>   |   19 +++
       recipes-python/jsonpatch/python-jsonpatch_0.10.bb
     <http://python-jsonpatch_0.10.bb>  |   20 +++
       .../jsonpointer/python-jsonpointer_0.5.bb
     <http://python-jsonpointer_0.5.bb>          |   16 +++
       recipes-python/jsonschema/python-jsonschema_0.7.bb
     <http://python-jsonschema_0.7.bb> |   22 ++++
       .../prettytable/python-prettytable_0.6.1.bb
     <http://python-prettytable_0.6.1.bb>        |   18 +++
       recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb
     <http://python-pyopenssl_0.13.bb>  |   20 +++
       .../pycrypto/files/001-remove-includes.patch       |   11 ++
       recipes-python/pycrypto/python-pycrypto_2.6.bb
     <http://python-pycrypto_2.6.bb>     |   46 +++++++
       recipes-python/pyparsing/python-pyparsing_1.5.6.bb
     <http://python-pyparsing_1.5.6.bb> |   22 ++++
       .../simplejson/python-simplejson_2.6.2.bb
     <http://python-simplejson_2.6.2.bb>          |   21 +++
       recipes-python/warlock/python-warlock_0.7.0.bb
     <http://python-warlock_0.7.0.bb>     |   26 ++++
       19 files changed, 387 insertions(+), 147 deletions(-)
       create mode 100644 recipes-cloud/glanceclient/python-glanceclient_git.bb
     <http://python-glanceclient_git.bb>
       create mode 100644
     recipes-cloud/keystoneclient/python-keystoneclient_git.bb
     <http://python-keystoneclient_git.bb>
       create mode 100644 recipes-cloud/quantumclient/python-quantumclient_git.bb
     <http://python-quantumclient_git.bb>
       delete mode 100644
     recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
       delete mode 100644 recipes-devtools/python/python_2.7.3.bbappend
       create mode 100644
     recipes-python/cliff/files/001-remove-distribute-dependency.patch
       create mode 100644 recipes-python/cliff/python-cliff_1.3.bb
     <http://python-cliff_1.3.bb>
       create mode 100644 recipes-python/cmd2/python-cmd2_0.6.4.bb
     <http://python-cmd2_0.6.4.bb>
       create mode 100644 recipes-python/httplib2/python-httplib2_0.7.7.bb
     <http://python-httplib2_0.7.7.bb>
       create mode 100644 recipes-python/jsonpatch/python-jsonpatch_0.10.bb
     <http://python-jsonpatch_0.10.bb>
       create mode 100644 recipes-python/jsonpointer/python-jsonpointer_0.5.bb
     <http://python-jsonpointer_0.5.bb>
       create mode 100644 recipes-python/jsonschema/python-jsonschema_0.7.bb
     <http://python-jsonschema_0.7.bb>
       create mode 100644 recipes-python/prettytable/python-prettytable_0.6.1.bb
     <http://python-prettytable_0.6.1.bb>
       create mode 100644 recipes-python/pyOpenSSL/python-pyopenssl_0.13.bb
     <http://python-pyopenssl_0.13.bb>
       create mode 100644 recipes-python/pycrypto/files/001-remove-includes.patch
       create mode 100644 recipes-python/pycrypto/python-pycrypto_2.6.bb
     <http://python-pycrypto_2.6.bb>
       create mode 100644 recipes-python/pyparsing/python-pyparsing_1.5.6.bb
     <http://python-pyparsing_1.5.6.bb>
       create mode 100644 recipes-python/simplejson/python-simplejson_2.6.2.bb
     <http://python-simplejson_2.6.2.bb>
       create mode 100644 recipes-python/warlock/python-warlock_0.7.0.bb
     <http://python-warlock_0.7.0.bb>

     --
     1.7.9.5

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#23 lore raw
Quoted 54 lines · David Nyström
Quoted 23 lines · Bruce Ashfield

On Tue, Dec 18, 2012 at 9:31 AM, David Nyström <[email protected] <mailto:david.c.nystrom@gmail.**com <[email protected]>>> wrote:

Sending these patches as an RFC since it includes a removal of a
meta-virt
patch on
python-2.7.3. Also, some of the common python packages might not be
optimal
to keep in the
meta-virtualization layer, some should perhaps be sent as package
updates to
oe-core.

I'd agree that it might not be optimal to have some of the python packages in this
layer, since they are more about access libraries, communications wrappers and
security.

Quoted 7 lines

The problem with targeting oe-core is that we really need more than just meta-virt
as a user to make them a reasonable candidate for merging. We'd need Richard
or Saul to comment on the possibility of merging them to oe-core.

That being said, if it isn't oe-core, the other options seem like the

Quoted 19 lines

meta-networking
layer, or some of the security layers. The risk with that approach is that we take
what is a currently simple layer dependency list and make it more complicated.

I can't say that I like adding complexity, but if we can't get them into oe-core, then
it makes sense, to try and get them into a common layer that holds similar functionality.

The problem is the timeframe ... if we try and immediately place these in the right
layer(s), then making them available at all will take some time. So from that point
of view, we can drop them in meta-virt and start the conversation about where they
should be in the longer term.

Quoted 8 lines
Quoted 3 lines

Comments ? I can't say that any of the options really stand out for me :)

I suggest we split the recipes which we don't see direct ownership of (i.e. a common usecase) into recipes-external/* as a first step. Step two would be to find a suitable upstream for each package, with the end goal to have recipes-external empty.

That works for me as well. It makes it explicitly clear that this isn't their final home, since
we haven't done a deeper categorization of the recipes.

Quoted 10 lines

Somewhat OT:
I really see some improvement the way disutils.bbclass/setuptools.**bbclass work today,
I've improved create-recipe to understand python source-tarballs, early patch on yocto ML, which makes the tedious task of adding python dependencies somewhat easier. But alot of the metadata available in the python source packages should be able to be automated with bitbake via an inherited bbclass.

Nice. I'm running into this more often myself lately (the need to bring in python dependencies).

Quoted 7 lines

RDEPENDS, sub package-split et.c. most of the metadata is already avaiable in dist/setuptools enables packages. The added bonus of automating as much as possible would be a common layout of most packages. Is anyone aware of any previous work in this direction ?

I haven't heard of anything just like this for python packages, so it sounds like it's worth pursuing.
If you continue to make your work in progress available, I know that I'll be able to have a look
and help where possible.

Cheers,

Bruce

Quoted 154 lines

Cheers,

Quoted 153 lines

Bruce

David Nyström (16):
Removed meta-virtualization private patch, and using upstream
instead
Added python-cliff recipe
Added python-cmd2 recipe
Added python-httplib2 recipe
Added python-jsonpatch recipe
Added python-jsonpointer recipe
Added python-jsonschema recipe
Added python-prettytable recipe
Added python-pycrypto recipe
Added python-pyopenssl recipe
Added python-pyparsing recipe
Added python-simplejson recipe
Added python-warlock recipe
Added python-glanceclient recipe
Added python-quantumclient recipe
Added python-keystoneclient recipe

.../glanceclient/python-**glanceclient_git.bb<http://python-glanceclient_git.bb>
<http://python-glanceclient_**git.bb<http://python-glanceclient_git.bb>>
| 26 ++++
.../keystoneclient/python-**keystoneclient_git.bb<http://python-keystoneclient_git.bb>
<http://python-keystoneclient_**git.bb<http://python-keystoneclient_git.bb>>
| 24 ++++

       .../quantumclient/python-**quantumclient_git.bb<http://python-quantumclient_git.bb>
     <http://python-quantumclient_**git.bb<http://python-quantumclient_git.bb>>
     |   23 ++++

       .../01-use-proper-tools-for-**cross-build.patch      |  138
--------------------
       recipes-devtools/python/**python_2.7.3.bbappend      |    9 --
       .../files/001-remove-**distribute-dependency.patch   |   24 ++++
       recipes-python/cliff/python-**cliff_1.3.bb<http://python-cliff_1.3.bb><
http://python-cliff_1.3.bb>
            |   29 ++++
       recipes-python/cmd2/python-**cmd2_0.6.4.bb<http://python-cmd2_0.6.4.bb><
http://python-cmd2_0.6.4.bb>
            |   20 +++
       recipes-python/httplib2/python**-httplib2_0.7.7.bb<http://python-httplib2_0.7.7.bb>
     <http://python-httplib2_0.7.7.**bb <http://python-httplib2_0.7.7.bb>>
  |   19 +++
       recipes-python/jsonpatch/pytho**n-jsonpatch_0.10.bb<http://python-jsonpatch_0.10.bb>
     <http://python-jsonpatch_0.10.**bb <http://python-jsonpatch_0.10.bb>>
 |   20 +++
       .../jsonpointer/python-**jsonpointer_0.5.bb<http://python-jsonpointer_0.5.bb>
     <http://python-jsonpointer_0.**5.bb<http://python-jsonpointer_0.5.bb>>
         |   16 +++
       recipes-python/jsonschema/pyth**on-jsonschema_0.7.bb<http://python-jsonschema_0.7.bb>
     <http://python-jsonschema_0.7.**bb <http://python-jsonschema_0.7.bb>>
|   22 ++++
       .../prettytable/python-**prettytable_0.6.1.bb<http://python-prettytable_0.6.1.bb>
     <http://python-prettytable_0.**6.1.bb<http://python-prettytable_0.6.1.bb>>
       |   18 +++
       recipes-python/pyOpenSSL/pytho**n-pyopenssl_0.13.bb<http://python-pyopenssl_0.13.bb>
     <http://python-pyopenssl_0.13.**bb <http://python-pyopenssl_0.13.bb>>
 |   20 +++
       .../pycrypto/files/001-remove-**includes.patch       |   11 ++
       recipes-python/pycrypto/python**-pycrypto_2.6.bb<http://python-pycrypto_2.6.bb>
     <http://python-pycrypto_2.6.bb**>     |   46 +++++++
       recipes-python/pyparsing/pytho**n-pyparsing_1.5.6.bb<http://python-pyparsing_1.5.6.bb>
     <http://python-pyparsing_1.5.**6.bb<http://python-pyparsing_1.5.6.bb>>
|   22 ++++
       .../simplejson/python-**simplejson_2.6.2.bb<http://python-simplejson_2.6.2.bb>
     <http://python-simplejson_2.6.**2.bb<http://python-simplejson_2.6.2.bb>>
         |   21 +++
       recipes-python/warlock/python-**warlock_0.7.0.bb<http://python-warlock_0.7.0.bb>
     <http://python-warlock_0.7.0.**bb <http://python-warlock_0.7.0.bb>>
    |   26 ++++

       19 files changed, 387 insertions(+), 147 deletions(-)
       create mode 100644 recipes-cloud/glanceclient/pyt**

hon-glanceclient_git.bb <http://python-glanceclient_git.bb>
<http://python-glanceclient_**git.bb<http://python-glanceclient_git.bb>

Quoted 1 line
       create mode 100644
     recipes-cloud/keystoneclient/p**ython-keystoneclient_git.bb<http://python-keystoneclient_git.bb>
     <http://python-keystoneclient_**git.bb<http://python-keystoneclient_git.bb>
Quoted 1 line

create mode 100644 recipes-cloud/quantumclient/py**
thon-quantumclient_git.bb <http://python-quantumclient_git.bb>
<http://python-quantumclient_**git.bb<http://python-quantumclient_git.bb>

Quoted 1 line
       delete mode 100644
     recipes-devtools/python/**python/01-use-proper-tools-**
for-cross-build.patch
       delete mode 100644 recipes-devtools/python/**python_2.7.3.bbappend
       create mode 100644
     recipes-python/cliff/files/**001-remove-distribute-**
dependency.patch
       create mode 100644 recipes-python/cliff/python-**cliff_1.3.bb<http://python-cliff_1.3.bb>
     <http://python-cliff_1.3.bb>
       create mode 100644 recipes-python/cmd2/python-**cmd2_0.6.4.bb<http://python-cmd2_0.6.4.bb>
     <http://python-cmd2_0.6.4.bb>
       create mode 100644 recipes-python/httplib2/python**
-httplib2_0.7.7.bb <http://python-httplib2_0.7.7.bb>
     <http://python-httplib2_0.7.7.**bb <http://python-httplib2_0.7.7.bb>
Quoted 1 line

create mode 100644 recipes-python/jsonpatch/pytho**
n-jsonpatch_0.10.bb <http://python-jsonpatch_0.10.bb>

     <http://python-jsonpatch_0.10.**bb <http://python-jsonpatch_0.10.bb>
Quoted 1 line

create mode 100644 recipes-python/jsonpointer/pyt**
hon-jsonpointer_0.5.bb <http://python-jsonpointer_0.5.bb>

     <http://python-jsonpointer_0.**5.bb<http://python-jsonpointer_0.5.bb>
Quoted 1 line

create mode 100644 recipes-python/jsonschema/pyth**
on-jsonschema_0.7.bb <http://python-jsonschema_0.7.bb>

     <http://python-jsonschema_0.7.**bb <http://python-jsonschema_0.7.bb>
Quoted 1 line

create mode 100644 recipes-python/prettytable/pyt**
hon-prettytable_0.6.1.bb <http://python-prettytable_0.6.1.bb>

     <http://python-prettytable_0.**6.1.bb<http://python-prettytable_0.6.1.bb>
Quoted 1 line

create mode 100644 recipes-python/pyOpenSSL/pytho**
n-pyopenssl_0.13.bb <http://python-pyopenssl_0.13.bb>

     <http://python-pyopenssl_0.13.**bb <http://python-pyopenssl_0.13.bb>
Quoted 1 line

create mode 100644 recipes-python/pycrypto/files/**
001-remove-includes.patch
create mode 100644 recipes-python/pycrypto/python**
-pycrypto_2.6.bb <http://python-pycrypto_2.6.bb>
<http://python-pycrypto_2.6.bb**>
create mode 100644 recipes-python/pyparsing/pytho**
n-pyparsing_1.5.6.bb <http://python-pyparsing_1.5.6.bb>

     <http://python-pyparsing_1.5.**6.bb<http://python-pyparsing_1.5.6.bb>
Quoted 1 line

create mode 100644 recipes-python/simplejson/pyth**
on-simplejson_2.6.2.bb <http://python-simplejson_2.6.2.bb>

     <http://python-simplejson_2.6.**2.bb<http://python-simplejson_2.6.2.bb>
Quoted 1 line

create mode 100644 recipes-python/warlock/python-**
warlock_0.7.0.bb <http://python-warlock_0.7.0.bb>

     <http://python-warlock_0.7.0.**bb <http://python-warlock_0.7.0.bb>>


     --
     1.7.9.5

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its
end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"