mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
python-backports-lzma: add a recipe
It is needed by dnf, and only when using Python 2.x, so can be dropped after moving dnf/rpm4 stack to Python 3.x. (From OE-Core rev: e58f876acdac8fff24ecd3076287eda61ef1e4d3) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
647dd10215
commit
5892bb7577
|
@ -0,0 +1,32 @@
|
|||
From e5e3196cf69172b625c8c6ccca991c02fd18137c Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Fri, 30 Dec 2016 18:02:12 +0200
|
||||
Subject: [PATCH] setup.py: do not add include and library directories from the
|
||||
host
|
||||
|
||||
This avoids host contamination.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
setup.py | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 7886cf7..9a0356a 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -31,9 +31,7 @@ packages = ["backports", "backports.lzma"]
|
||||
home = os.path.expanduser("~")
|
||||
extens = [Extension('backports/lzma/_lzma',
|
||||
['backports/lzma/_lzmamodule.c'],
|
||||
- libraries = ['lzma'],
|
||||
- include_dirs = [os.path.join(home, 'include'), '/opt/local/include', '/usr/local/include'],
|
||||
- library_dirs = [os.path.join(home, 'lib'), '/opt/local/lib', '/usr/local/lib']
|
||||
+ libraries = ['lzma']
|
||||
)]
|
||||
|
||||
descr = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files."
|
||||
--
|
||||
2.11.0
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
HOMEPAGE = "https://github.com/peterjc/backports.lzma"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=846e05e7e9e1c886b2637c230cfcd5dd"
|
||||
|
||||
SRC_URI = "git://github.com/peterjc/backports.lzma.git \
|
||||
file://0001-setup.py-do-not-add-include-and-library-directories-.patch \
|
||||
"
|
||||
|
||||
PV = "0.0.6+git${SRCPV}"
|
||||
SRCREV = "718b3316ae7aee8e03c02e7e110108779ce3aec8"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DEPENDS_append = " xz"
|
||||
|
||||
RDEPENDS_${PN} += "python-core python-io python-pkgutil"
|
||||
RDEPENDS_${PN}_class-native += "python-core"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
Loading…
Reference in New Issue
Block a user