python-netifaces: use single version externally managed
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 6 May 2013 03:13:32 +0000 (03:13 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 6 May 2013 22:20:24 +0000 (00:20 +0200)
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>
package/python-netifaces/python-netifaces.mk

index 906f83d427f61af8a89b1559cc22db479e509a81..d742cbde984b95efdfc00d6bdd525a6d0c0908e7 100644 (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))