From 2366317a61248a09c7261adac6a6abfe15ef4ca1 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 31 Oct 2013 00:44:28 -0400 Subject: python-lesscpy: python LESS compiler To provide compression and template capabilities the havana release of horizon requires lesscpy. But lesscpy is typically a python3 acript, so not only do we introduce the recipe, we make it compatible with python2. Signed-off-by: Bruce Ashfield --- ...02-Description-Fixup-for-python3.3-compat.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-lesscpy/0002-Description-Fixup-for-python3.3-compat.patch (limited to 'meta-openstack/recipes-devtools/python/python-lesscpy/0002-Description-Fixup-for-python3.3-compat.patch') diff --git a/meta-openstack/recipes-devtools/python/python-lesscpy/0002-Description-Fixup-for-python3.3-compat.patch b/meta-openstack/recipes-devtools/python/python-lesscpy/0002-Description-Fixup-for-python3.3-compat.patch new file mode 100644 index 0000000..b5da15a --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-lesscpy/0002-Description-Fixup-for-python3.3-compat.patch @@ -0,0 +1,31 @@ +From 8b9fb203948ca752d848cee951ccde2954abcfe3 Mon Sep 17 00:00:00 2001 +From: Bruce Ashfield +Date: Wed, 30 Oct 2013 23:17:28 -0400 +Subject: [PATCH 2/2] Description: Fixup for python3.3 compat Author: James + Page Forwarded: + https://github.com/robotis/Lesscpy/pull/23 + +Signed-off-by: Bruce Ashfield +--- + lesscpy/scripts/compiler.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/lesscpy/scripts/compiler.py b/lesscpy/scripts/compiler.py +index f6b92c7..93dabd3 100644 +--- a/lesscpy/scripts/compiler.py ++++ b/lesscpy/scripts/compiler.py +@@ -84,8 +84,9 @@ def run(): + """Run compiler + """ + aparse = argparse.ArgumentParser(description='LessCss Compiler', +- epilog='<< jtm@robot.is @_o >>', +- version=VERSION_STR) ++ epilog='<< jtm@robot.is @_o >>') ++ aparse.add_argument('-v', '--version', action='version', ++ version=VERSION_STR) + aparse.add_argument('-I', '--include', action="store", type=str, + help="Included less-files (comma separated)") + aparse.add_argument('-V', '--verbose', action="store_true", +-- +1.7.10.4 + -- cgit v1.2.3-54-g00ecf