python-netifaces: use single version externally managed

We want --single-version-externally-managed (and --root=/) to make
python packages uncompressed (python eggs are zip files) since
compression should be a target filesystem responsibility.
And we don't need/want multiple versions of the same package in the
target since packages should be handled by buildroot on any sane
embedded system.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Gustavo Zacarias 2013-05-06 03:13:32 +00:00 committed by Peter Korsgaard
parent b9da3bab1e
commit 619146d145

View File

@ -18,8 +18,10 @@ define PYTHON_NETIFACES_BUILD_CMDS
endef
define PYTHON_NETIFACES_INSTALL_TARGET_CMDS
(cd $(@D); PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
$(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
(cd $(@D); \
PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
$(HOST_DIR)/usr/bin/python setup.py install \
--single-version-externally-managed --root=/ --prefix=$(TARGET_DIR)/usr)
endef
$(eval $(generic-package))