python-dataproperty: fix package build
PATCH 1/1 python-dataproperty: fix package build
From: Yegor Yefremov <[email protected]>
DataProperty's setup.py requires test environment. So just comment this line as test environment is not required for normal installation
Fixes:
http://autobuild.buildroot.net/results/0c8/0c8e0ceccc2d5f48138ec4f95e57729e33108f59
http://autobuild.buildroot.net/results/eab/eab2d2bf78ac943156a0b8698e63bdf6e63865bf
http://autobuild.buildroot.net/results/4d6/4d60c711e9c1da6dd5bb809bbe328e6252d2d747
http://autobuild.buildroot.net/results/ed1/ed1982367fa1531d772d29b35e333b34e5889cec
http://autobuild.buildroot.net/results/a0e/a0ebb6b155fa11c5886080f993c9aa9d596ac1c3
http://autobuild.buildroot.net/results/85e/85e5086401a314a2d3d24efa887ac0188add85fc
http://autobuild.buildroot.net/results/99e/99ea243303ae12aceb2fac3a5df5e3b552712eda
--- package/python-dataproperty/python-dataproperty.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/python-dataproperty/python-dataproperty.mk +7 -0
@@ -11,4 +11,11 @@ PYTHON_DATAPROPERTY_SETUP_TYPE = setuptools PYTHON_DATAPROPERTY_LICENSE = MIT PYTHON_DATAPROPERTY_LICENSE_FILES = LICENSE +# DataProperty's setup.py requires test environment. So just comment this +# line as it is not required for normal installation +define PYTHON_DATAPROPERTY_COMMENT_SETUP_REQUIRES + $(SED) '/setup_requires/ s/^#*/#/' $(@D)/setup.py +endef +PYTHON_DATAPROPERTY_POST_EXTRACT_HOOKS = PYTHON_DATAPROPERTY_COMMENT_SETUP_REQUIRES + $(eval $(python-package))
Signature · 1 line
2.1.4
PATCH 1/1 python-dataproperty: fix package build
Hello,
Quoted 6 lines · yegorslists at googlemail.com
package/python-dataproperty/python-dataproperty.mk +0
-0@@ -11,4 +11,11 @@ PYTHON_DATAPROPERTY_SETUP_TYPE = setuptools PYTHON_DATAPROPERTY_LICENSE = MIT
package/python-dataproperty/python-dataproperty.mk PYTHON_DATAPROPERTY_SETUP_TYPE = setuptools · line 21
Quoted 10 lines
package/python-dataproperty/python-dataproperty.mk +7
-0PYTHON_DATAPROPERTY_LICENSE_FILES = LICENSE +# DataProperty's setup.py requires test environment. So just comment this +# line as it is not required for normal installation +define PYTHON_DATAPROPERTY_COMMENT_SETUP_REQUIRES + $(SED) '/setup_requires/ s/^#*/#/' $(@D)/setup.py +endef +PYTHON_DATAPROPERTY_POST_EXTRACT_HOOKS = PYTHON_DATAPROPERTY_COMMENT_SETUP_REQUIRES + $(eval $(python-package))
I think I prefer a patch that this type of SED operation, especially when there's only one occurrence to fix.
Also, is there an upstreamable approach to solve this problem?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com