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; 13+ 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] 13+ messages in thread
* [Buildroot] Buildroot patchwork: decision on the 10 oldest patches, week 1
@ 2013-10-08 15:17 Ludovic Desroches
  2013-10-09  9:34 ` [Buildroot] [PATCH] New: add lava-test package ludovic.desroches at atmel.com
  0 siblings, 1 reply; 13+ messages in thread
From: Ludovic Desroches @ 2013-10-08 15:17 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, Oct 06, 2013 at 04:42:27PM +0200, Thomas Petazzoni wrote:

[...]

> So, for this first week, the patches are:
> 
>  1 New: add lava-test package
>    http://patchwork.ozlabs.org/patch/155498/
>    ludovic.desroches at atmel.com
> 

I don't know if this package will be used by many people. The interesting
part is to know if the python path is now set correctly (I had something like
this
#!/home/user/MyProjects/versioned/buildroot/output/host/usr/bin/python
instead of #!/usr/bin/python). To be honest I have not tried with newer
versions of Buildroot. I'll do the try.

Regards

Ludovic

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

end of thread, other threads:[~2013-10-09 14:42 UTC | newest]

Thread overview: 13+ 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
  -- strict thread matches above, loose matches on Subject: below --
2013-10-08 15:17 [Buildroot] Buildroot patchwork: decision on the 10 oldest patches, week 1 Ludovic Desroches
2013-10-09  9:34 ` [Buildroot] [PATCH] New: add lava-test package ludovic.desroches at atmel.com
2013-10-09 11:55   ` Thomas Petazzoni
2013-10-09 14:42     ` Ludovic Desroches

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