Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ludovic Desroches <ludovic.desroches@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] setup.py: issue with python path
Date: Fri, 27 Apr 2012 15:42:59 +0200	[thread overview]
Message-ID: <4F9AA263.2060907@atmel.com> (raw)

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

             reply	other threads:[~2012-04-27 13:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27 13:42 Ludovic Desroches [this message]
2012-04-27 14:30 ` [Buildroot] setup.py: issue with python path 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F9AA263.2060907@atmel.com \
    --to=ludovic.desroches@atmel.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox