Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] setup.py: issue with python path
@ 2012-04-27 13:42 Ludovic Desroches
  2012-04-27 14:30 ` Yegor Yefremov
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Desroches @ 2012-04-27 13:42 UTC (permalink / raw)
  To: buildroot

Hello,

I want to add a new package to buildroot: lava-test. Installation is 
done by setup.py.
Having a look to what was done for some packages as python setuptools, I 
did this:

LAVA_TEST_VERSION = 0.7
LAVA_TEST_SOURCE = lava-test-$(LAVA_TEST_VERSION)-2012.04.tar.gz
LAVA_TEST_SITE = https://launchpad.net/lava-test/trunk/2012.04/+download/
LAVA_TEST_DEPENDENCIES = python-setuptools

define LAVA_TEST_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)
endef

$(eval $(call GENTARGETS))

My files are correctly installed on the target but I have this issue:

# lava-test reset
-sh: lava-test: not found
# cat /usr/bin/lava-test
#!/home/ldesroches/workspace/buildroot/output/host/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'lava-test==0.7','console_scripts','lava-test'
__requires__ = 'lava-test==0.7'
import sys
from pkg_resources import load_entry_point

sys.exit(
    load_entry_point('lava-test==0.7', 'console_scripts', 'lava-test')()
)
#

Do you know how changing this python path? Is it possible to give the 
target python path instead of using PYTHON_PATH.


Thanks

Regards

Ludovic

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-05-14  7:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 13:42 [Buildroot] setup.py: issue with python path Ludovic Desroches
2012-04-27 14:30 ` Yegor Yefremov
2012-04-27 15:04   ` [Buildroot] [PATCH] New: add lava-test package ludovic.desroches at atmel.com
2012-04-27 15:12     ` Yegor Yefremov
2012-04-27 15:35       ` Ludovic Desroches
2012-05-07 14:08         ` Yegor Yefremov
2012-05-10  7:30           ` ludovic.desroches
2012-05-10  7:39             ` Yegor Yefremov
2012-05-14  7:46               ` ludovic.desroches
2012-05-14  7:51                 ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox