Skip to contentSkip to conversation

setup.py: issue with python path

Buildroot New Ludovic Desroches 3 participants 10 messages Apr 27, 2012 – May 14, 2012

lore
Share & tools
lore
#0 lore 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

#1 lore raw
Quoted 31 lines · Ludovic Desroches

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
Quoted 7 lines

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.

Could you provide the whole patch?

Yegor

#2 lore raw

PATCH 1/1 New: add lava-test package

From: Ludovic Desroches <[email protected]>

---
 package/Config.in              |    1 +
 package/lava-test/Config.in    |    8 ++++++++
 package/lava-test/lava-test.mk |   11 +++++++++++
 3 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 package/lava-test/Config.in
 create mode 100644 package/lava-test/lava-test.mk
package/Config.in +1 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"
 source "package/dstat/Config.in"
 source "package/dmalloc/Config.in"
 source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
 source "package/lmbench/Config.in"
 source "package/lsof/Config.in"
 source "package/ltp-testsuite/Config.in"
package/lava-test/Config.in new file +8 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+       bool "lava-test"
+       help
+         LAVA Test is a test execution framework designed to make it easy to
+	 install and run supported tests. Results from testing can be
+	 optionally uploaded to a dashboard running lava-dashboard.
+
+	 https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +11 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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))
Signature · 1 line
1.7.5.4
#3 lore raw

PATCH 1/1 New: add lava-test package

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 44 lines

From: Ludovic Desroches <[email protected]>

---
 package/Config.in              |    1 +
 package/lava-test/Config.in    |    8 ++++++++
 package/lava-test/lava-test.mk |   11 +++++++++++
 3 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 package/lava-test/Config.in
 create mode 100644 package/lava-test/lava-test.mk
package/Config.in +1 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"
 source "package/dstat/Config.in"
 source "package/dmalloc/Config.in"
 source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
 source "package/lmbench/Config.in"
 source "package/lsof/Config.in"
 source "package/ltp-testsuite/Config.in"
package/lava-test/Config.in new file +8 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+       bool "lava-test"
+       help
+         LAVA Test is a test execution framework designed to make it easy to
+	 install and run supported tests. Results from testing can be
+	 optionally uploaded to a dashboard running lava-dashboard.
+
+	 https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +1 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+LAVA_TEST_VERSION = 0.7

package/lava-test/lava-test.mk line 11

Quoted 10 lines
package/lava-test/lava-test.mk new file +10 -0
+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))

Thank you for the patch. I'll look at it next week.

Yegor

#4 lore raw

PATCH 1/1 New: add lava-test package

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 58 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 44 lines

From: Ludovic Desroches<[email protected]>

---
  package/Config.in              |    1 +
  package/lava-test/Config.in    |    8 ++++++++
  package/lava-test/lava-test.mk |   11 +++++++++++
  3 files changed, 20 insertions(+), 0 deletions(-)

create mode 100644 package/lava-test/Config.in create mode 100644 package/lava-test/lava-test.mk

package/Config.in +1 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"
  source "package/dstat/Config.in"
  source "package/dmalloc/Config.in"
  source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
  source "package/lmbench/Config.in"
  source "package/lsof/Config.in"
  source "package/ltp-testsuite/Config.in"
package/lava-test/Config.in new file +8 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+       bool "lava-test"
+       help
+         LAVA Test is a test execution framework designed to make it easy to
+	 install and run supported tests. Results from testing can be
+	 optionally uploaded to a dashboard running lava-dashboard.
+
+	 https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +1 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+LAVA_TEST_VERSION = 0.7

package/lava-test/lava-test.mk line 11

Quoted 10 lines
package/lava-test/lava-test.mk new file +10 -0
+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))

Thank you for the patch. I'll look at it next week.

Quoted 3 lines

Yegor

Ok, thanks.

Regards

Ludovic

#5 lore raw

PATCH 1/1 New: add lava-test package

Quoted 67 lines · Ludovic Desroches

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 65 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 57 lines

From: Ludovic Desroches<[email protected]>

---

?package/Config.in ? ? ? ? ? ? ?| ? ?1 +
?package/lava-test/Config.in ? ?| ? ?8 ++++++++
?package/lava-test/lava-test.mk | ? 11 +++++++++++

?3 files changed, 20 insertions(+), 0 deletions(-) ?create mode 100644 package/lava-test/Config.in ?create mode 100644 package/lava-test/lava-test.mk

package/Config.in +0 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"

?source "package/dstat/Config.in"
?source "package/dmalloc/Config.in"
?source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
?source "package/lmbench/Config.in"
?source "package/lsof/Config.in"
?source "package/ltp-testsuite/Config.in"

package/lava-test/Config.in new file +4 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+ ? ? ? bool "lava-test"
+ ? ? ? help
+ ? ? ? ? LAVA Test is a test execution framework designed to make it

easy to
+ ? ? ? ?install and run supported tests. Results from testing can be
+ ? ? ? ?optionally uploaded to a dashboard running lava-dashboard.

package/lava-test/Config.in new file +2 -0
+
+ ? ? ? ?https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +3 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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/

package/lava-test/lava-test.mk new file +4 -0
+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)

package/lava-test/lava-test.mk line 11

Quoted 3 lines
package/lava-test/lava-test.mk new file +3 -0
+endef
+
+$(eval $(call GENTARGETS))

Thank you for the patch. I'll look at it next week.

Quoted 5 lines
Quoted 3 lines

Yegor

Ok, thanks.

Unfortunately I found no solution so far. I described our problem
here: https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion
and I hope someone will point to a solution. I looked here, but found no mention about python executable path:
http://docs.python.org/install/index.html.

Yegor

#6 lore raw

PATCH 1/1 New: add lava-test package

Hi Yegor,

Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :

Quoted 75 lines
Quoted 67 lines · Ludovic Desroches

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 65 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 55 lines

From: Ludovic Desroches<[email protected]>

---
  package/Config.in              |    1 +
  package/lava-test/Config.in    |    8 ++++++++
  package/lava-test/lava-test.mk |   11 +++++++++++
  3 files changed, 20 insertions(+), 0 deletions(-)

create mode 100644 package/lava-test/Config.in create mode 100644 package/lava-test/lava-test.mk

package/Config.in +1 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"
  source "package/dstat/Config.in"
  source "package/dmalloc/Config.in"
  source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
  source "package/lmbench/Config.in"
  source "package/lsof/Config.in"
  source "package/ltp-testsuite/Config.in"
package/lava-test/Config.in new file +4 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+       bool "lava-test"
+       help
+         LAVA Test is a test execution framework designed to make it

easy to

package/lava-test/Config.in new file +4 -0
+        install and run supported tests. Results from testing can be
+        optionally uploaded to a dashboard running lava-dashboard.
+
+        https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +3 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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/

package/lava-test/lava-test.mk new file +4 -0
+LAVA_TEST_DEPENDENCIES = python-setuptools
+
+define LAVA_TEST_INSTALL_TARGET_CMDS
+  (cd $(@D);

PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"\

package/lava-test/lava-test.mk line 11

Quoted 5 lines
package/lava-test/lava-test.mk new file +4 -1
+  $(HOST_DIR)/usr/bin/python setup.py install
--prefix=$(TARGET_DIR)/usr)
+endef
+
+$(eval $(call GENTARGETS))

Thank you for the patch. I'll look at it next week.

Quoted 5 lines
Quoted 3 lines

Yegor

Ok, thanks.

Quoted 8 lines

Unfortunately I found no solution so far. I described our problem
here: https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion
and I hope someone will point to a solution. I looked here, but found no mention about python executable path:
http://docs.python.org/install/index.html.

Yegor

Thanks for your help. In my case I can correct it with a post-build script but it's not a proper solution.

Regards

Ludovic

#7 lore raw

PATCH 1/1 New: add lava-test package

Quoted 91 lines · ludovic.desroches

Hi Yegor,

Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :

Quoted 87 lines
Quoted 71 lines · On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches…

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 68 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 59 lines

From: Ludovic Desroches<[email protected]>

---

?package/Config.in ? ? ? ? ? ? ?| ? ?1 +
?package/lava-test/Config.in ? ?| ? ?8 ++++++++
?package/lava-test/lava-test.mk | ? 11 +++++++++++

?3 files changed, 20 insertions(+), 0 deletions(-) ?create mode 100644 package/lava-test/Config.in ?create mode 100644 package/lava-test/lava-test.mk

package/Config.in +0 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"

?source "package/dstat/Config.in"
?source "package/dmalloc/Config.in"
?source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
?source "package/lmbench/Config.in"
?source "package/lsof/Config.in"
?source "package/ltp-testsuite/Config.in"

package/lava-test/Config.in new file +4 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+ ? ? ? bool "lava-test"
+ ? ? ? help
+ ? ? ? ? LAVA Test is a test execution framework designed to make it

easy to
+ ? ? ? ?install and run supported tests. Results from testing can be
+ ? ? ? ?optionally uploaded to a dashboard running lava-dashboard.

package/lava-test/Config.in new file +2 -0
+
+ ? ? ? ?https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +3 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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/

package/lava-test/lava-test.mk new file +4 -0
+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)

package/lava-test/lava-test.mk line 11

Quoted 3 lines
package/lava-test/lava-test.mk new file +3 -0
+endef
+
+$(eval $(call GENTARGETS))

Thank you for the patch. I'll look at it next week.

Quoted 5 lines
Quoted 3 lines

Yegor

Ok, thanks.

Unfortunately I found no solution so far. I described our problem here:
https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion
and I hope someone will point to a solution. I looked here, but found no mention about python executable path:
http://docs.python.org/install/index.html.

Quoted 5 lines
Quoted 2 lines

Yegor

Thanks for your help. In my case I can correct it with a post-build script but it's not a proper solution.

Not really. I'm afraid setuptools will have to be changed to support the functionality we need to cross-install such scripts. If you could contact Chris Lambacher, perhaps he could help (his blog post about cross-compiling python extensions
http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/).
Unfortunately he is not active on G+ and I don't have his private e-mail.

Yegor

#8 lore raw

PATCH 1/1 New: add lava-test package

Le 05/10/2012 09:39 AM, Yegor Yefremov a ?crit :

Quoted 107 lines
Quoted 91 lines · ludovic.desroches

Hi Yegor,

Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :

Quoted 87 lines
Quoted 71 lines · Ludovic Desroches

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 68 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 57 lines

From: Ludovic Desroches<[email protected]>

---
  package/Config.in              |    1 +
  package/lava-test/Config.in    |    8 ++++++++
  package/lava-test/lava-test.mk |   11 +++++++++++
  3 files changed, 20 insertions(+), 0 deletions(-)

create mode 100644 package/lava-test/Config.in create mode 100644 package/lava-test/lava-test.mk

package/Config.in +1 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"
  source "package/dstat/Config.in"
  source "package/dmalloc/Config.in"
  source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
  source "package/lmbench/Config.in"
  source "package/lsof/Config.in"
  source "package/ltp-testsuite/Config.in"
package/lava-test/Config.in new file +4 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+       bool "lava-test"
+       help
+         LAVA Test is a test execution framework designed to make it

easy to

package/lava-test/Config.in new file +4 -0
+        install and run supported tests. Results from testing can be
+        optionally uploaded to a dashboard running lava-dashboard.
+
+        https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +3 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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/

package/lava-test/lava-test.mk new file +4 -0
+LAVA_TEST_DEPENDENCIES = python-setuptools
+
+define LAVA_TEST_INSTALL_TARGET_CMDS
+  (cd $(@D);

PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"\

package/lava-test/lava-test.mk line 11

Quoted 5 lines
package/lava-test/lava-test.mk new file +4 -1
+  $(HOST_DIR)/usr/bin/python setup.py install
--prefix=$(TARGET_DIR)/usr)
+endef
+
+$(eval $(call GENTARGETS))

Thank you for the patch. I'll look at it next week.

Quoted 5 lines
Quoted 3 lines

Yegor

Ok, thanks.

Unfortunately I found no solution so far. I described our problem here:
https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion
and I hope someone will point to a solution. I looked here, but found no mention about python executable path:
http://docs.python.org/install/index.html.

Quoted 5 lines
Quoted 2 lines

Yegor

Thanks for your help. In my case I can correct it with a post-build script but it's not a proper solution.

Not really. I'm afraid setuptools will have to be changed to support the functionality we need to cross-install such scripts. If you could contact Chris Lambacher, perhaps he could help (his blog post about cross-compiling python extensions
http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/).
Unfortunately he is not active on G+ and I don't have his private e-mail.

Quoted 3 lines

Yegor

I had a look to his blog and disutilscross. I am not familiar with this but I think it's more than I need in this case but yes we'll probably need it in other cases.

Maybe virtualenv can help us.

I'll continue to do research about this subject. I'll keep you inform if I find something interesting.

Regards

Ludovic

#9 lore raw

PATCH 1/1 New: add lava-test package

Quoted 124 lines · ludovic.desroches

Le 05/10/2012 09:39 AM, Yegor Yefremov a ?crit :

Quoted 114 lines
Quoted 99 lines · On Thu, May 10, 2012 at 9:30 AM, ludovic.desroches…

Hi Yegor,

Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :

Quoted 94 lines
Quoted 76 lines · On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches…

Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :

Quoted 72 lines

Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:

Quoted 62 lines

From: Ludovic Desroches<[email protected]>

---

?package/Config.in ? ? ? ? ? ? ?| ? ?1 +
?package/lava-test/Config.in ? ?| ? ?8 ++++++++
?package/lava-test/lava-test.mk | ? 11 +++++++++++

?3 files changed, 20 insertions(+), 0 deletions(-) ?create mode 100644 package/lava-test/Config.in ?create mode 100644 package/lava-test/lava-test.mk

package/Config.in +0 -0
index 3e5f708..79f9aaf 100644
@@ -22,6 +22,7 @@ source "package/dhrystone/Config.in"

?source "package/dstat/Config.in"
?source "package/dmalloc/Config.in"
?source "package/kexec/Config.in"
+source "package/lava-test/Config.in"
?source "package/lmbench/Config.in"
?source "package/lsof/Config.in"
?source "package/ltp-testsuite/Config.in"

package/lava-test/Config.in new file +4 -0
new file mode 100644
index 0000000..d13dfd7
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+ ? ? ? bool "lava-test"
+ ? ? ? help
+ ? ? ? ? LAVA Test is a test execution framework designed to make it

easy to
+ ? ? ? ?install and run supported tests. Results from testing can be
+ ? ? ? ?optionally uploaded to a dashboard running lava-dashboard.

package/lava-test/Config.in new file +2 -0
+
+ ? ? ? ?https://launchpad.net/lava-test
package/lava-test/lava-test.mk new file +3 -0
new file mode 100644
index 0000000..f6df4a2
@@ -0,0 +1,11 @@
+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/

package/lava-test/lava-test.mk new file +4 -0
+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)

package/lava-test/lava-test.mk

Quoted 3 lines
package/lava-test/lava-test.mk new file +3 -0
+endef
+
+$(eval $(call GENTARGETS))

Thank you for the patch. I'll look at it next week.

Quoted 5 lines
Quoted 3 lines

Yegor

Ok, thanks.

Unfortunately I found no solution so far. I described our problem here:

https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion
and I hope someone will point to a solution. I looked here, but found no mention about python executable path:
http://docs.python.org/install/index.html.

Quoted 6 lines
Quoted 2 lines

Yegor

Thanks for your help. In my case I can correct it with a post-build script
but it's not a proper solution.

Not really. I'm afraid setuptools will have to be changed to support the functionality we need to cross-install such scripts. If you could contact Chris Lambacher, perhaps he could help (his blog post about cross-compiling python extensions

Quoted 7 lines

http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/).
Unfortunately he is not active on G+ ?and I don't have his private e-mail.

Yegor

Quoted 8 lines

I had a look to his blog and disutilscross. I am not familiar with this but I think it's more than I need in this case but yes we'll probably need it in other cases.

Maybe virtualenv can help us.

I'll continue to do research about this subject. I'll keep you inform if I find something interesting.

Thanks.

From what I've read about virtualenv, it might be not suitable for us. But I haven't tried this. And I also find it really sad, that Python community doesn't take much care about cross-compile issues ;-(

Yegor