* [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] setup.py: issue with python path
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
0 siblings, 1 reply; 13+ messages in thread
From: Yegor Yefremov @ 2012-04-27 14:30 UTC (permalink / raw)
To: buildroot
On Fri, Apr 27, 2012 at 3:42 PM, Ludovic Desroches
<ludovic.desroches@atmel.com> wrote:
> 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.
Could you provide the whole patch?
Yegor
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-04-27 14:30 ` Yegor Yefremov
@ 2012-04-27 15:04 ` ludovic.desroches at atmel.com
2012-04-27 15:12 ` Yegor Yefremov
0 siblings, 1 reply; 13+ messages in thread
From: ludovic.desroches at atmel.com @ 2012-04-27 15:04 UTC (permalink / raw)
To: buildroot
From: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
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
diff --git a/package/Config.in b/package/Config.in
index 3e5f708..79f9aaf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
new file mode 100644
index 0000000..d13dfd7
--- /dev/null
+++ b/package/lava-test/Config.in
@@ -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
diff --git a/package/lava-test/lava-test.mk b/package/lava-test/lava-test.mk
new file mode 100644
index 0000000..f6df4a2
--- /dev/null
+++ b/package/lava-test/lava-test.mk
@@ -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))
--
1.7.5.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
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
0 siblings, 1 reply; 13+ messages in thread
From: Yegor Yefremov @ 2012-04-27 15:12 UTC (permalink / raw)
To: buildroot
Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
> From: Ludovic Desroches <ludovic.desroches@atmel.com>
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> ---
> 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
>
> diff --git a/package/Config.in b/package/Config.in
> index 3e5f708..79f9aaf 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -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"
> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
> new file mode 100644
> index 0000000..d13dfd7
> --- /dev/null
> +++ b/package/lava-test/Config.in
> @@ -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
> diff --git a/package/lava-test/lava-test.mk b/package/lava-test/lava-test.mk
> new file mode 100644
> index 0000000..f6df4a2
> --- /dev/null
> +++ b/package/lava-test/lava-test.mk
> @@ -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))
Thank you for the patch. I'll look at it next week.
Yegor
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-04-27 15:12 ` Yegor Yefremov
@ 2012-04-27 15:35 ` Ludovic Desroches
2012-05-07 14:08 ` Yegor Yefremov
0 siblings, 1 reply; 13+ messages in thread
From: Ludovic Desroches @ 2012-04-27 15:35 UTC (permalink / raw)
To: buildroot
Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>
>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>> ---
>> 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
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index 3e5f708..79f9aaf 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -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"
>> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
>> new file mode 100644
>> index 0000000..d13dfd7
>> --- /dev/null
>> +++ b/package/lava-test/Config.in
>> @@ -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
>> diff --git a/package/lava-test/lava-test.mk b/package/lava-test/lava-test.mk
>> new file mode 100644
>> index 0000000..f6df4a2
>> --- /dev/null
>> +++ b/package/lava-test/lava-test.mk
>> @@ -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))
>
> Thank you for the patch. I'll look at it next week.
>
> Yegor
>
>
Ok, thanks.
Regards
Ludovic
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-04-27 15:35 ` Ludovic Desroches
@ 2012-05-07 14:08 ` Yegor Yefremov
2012-05-10 7:30 ` ludovic.desroches
0 siblings, 1 reply; 13+ messages in thread
From: Yegor Yefremov @ 2012-05-07 14:08 UTC (permalink / raw)
To: buildroot
On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches
<ludovic.desroches@atmel.com> wrote:
> Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
>
>> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>>>
>>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>
>>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>>> ---
>>> ?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
>>>
>>> diff --git a/package/Config.in b/package/Config.in
>>> index 3e5f708..79f9aaf 100644
>>> --- a/package/Config.in
>>> +++ b/package/Config.in
>>> @@ -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"
>>> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
>>> new file mode 100644
>>> index 0000000..d13dfd7
>>> --- /dev/null
>>> +++ b/package/lava-test/Config.in
>>> @@ -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
>>> diff --git a/package/lava-test/lava-test.mk
>>> b/package/lava-test/lava-test.mk
>>> new file mode 100644
>>> index 0000000..f6df4a2
>>> --- /dev/null
>>> +++ b/package/lava-test/lava-test.mk
>>> @@ -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))
>>
>>
>> Thank you for the patch. I'll look at it next week.
>>
>> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-05-07 14:08 ` Yegor Yefremov
@ 2012-05-10 7:30 ` ludovic.desroches
2012-05-10 7:39 ` Yegor Yefremov
0 siblings, 1 reply; 13+ messages in thread
From: ludovic.desroches @ 2012-05-10 7:30 UTC (permalink / raw)
To: buildroot
Hi Yegor,
Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :
> On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches
> <ludovic.desroches@atmel.com> wrote:
>> Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
>>
>>> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>>>>
>>>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>
>>>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>> ---
>>>> 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
>>>>
>>>> diff --git a/package/Config.in b/package/Config.in
>>>> index 3e5f708..79f9aaf 100644
>>>> --- a/package/Config.in
>>>> +++ b/package/Config.in
>>>> @@ -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"
>>>> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
>>>> new file mode 100644
>>>> index 0000000..d13dfd7
>>>> --- /dev/null
>>>> +++ b/package/lava-test/Config.in
>>>> @@ -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
>>>> diff --git a/package/lava-test/lava-test.mk
>>>> b/package/lava-test/lava-test.mk
>>>> new file mode 100644
>>>> index 0000000..f6df4a2
>>>> --- /dev/null
>>>> +++ b/package/lava-test/lava-test.mk
>>>> @@ -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))
>>>
>>>
>>> Thank you for the patch. I'll look at it next week.
>>>
>>> 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
>
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-05-10 7:30 ` ludovic.desroches
@ 2012-05-10 7:39 ` Yegor Yefremov
2012-05-14 7:46 ` ludovic.desroches
0 siblings, 1 reply; 13+ messages in thread
From: Yegor Yefremov @ 2012-05-10 7:39 UTC (permalink / raw)
To: buildroot
On Thu, May 10, 2012 at 9:30 AM, ludovic.desroches
<ludovic.desroches@atmel.com> wrote:
> Hi Yegor,
>
> Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :
>
>> On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches
>> <ludovic.desroches@atmel.com> ?wrote:
>>>
>>> Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
>>>
>>>> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>>>>>
>>>>>
>>>>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>>
>>>>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>> ---
>>>>> ?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
>>>>>
>>>>> diff --git a/package/Config.in b/package/Config.in
>>>>> index 3e5f708..79f9aaf 100644
>>>>> --- a/package/Config.in
>>>>> +++ b/package/Config.in
>>>>> @@ -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"
>>>>> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
>>>>> new file mode 100644
>>>>> index 0000000..d13dfd7
>>>>> --- /dev/null
>>>>> +++ b/package/lava-test/Config.in
>>>>> @@ -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
>>>>> diff --git a/package/lava-test/lava-test.mk
>>>>> b/package/lava-test/lava-test.mk
>>>>> new file mode 100644
>>>>> index 0000000..f6df4a2
>>>>> --- /dev/null
>>>>> +++ b/package/lava-test/lava-test.mk
>>>>> @@ -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))
>>>>
>>>>
>>>>
>>>> Thank you for the patch. I'll look at it next week.
>>>>
>>>> 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
>>
>
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-05-10 7:39 ` Yegor Yefremov
@ 2012-05-14 7:46 ` ludovic.desroches
2012-05-14 7:51 ` Yegor Yefremov
0 siblings, 1 reply; 13+ messages in thread
From: ludovic.desroches @ 2012-05-14 7:46 UTC (permalink / raw)
To: buildroot
Le 05/10/2012 09:39 AM, Yegor Yefremov a ?crit :
> On Thu, May 10, 2012 at 9:30 AM, ludovic.desroches
> <ludovic.desroches@atmel.com> wrote:
>> Hi Yegor,
>>
>> Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :
>>
>>> On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches
>>> <ludovic.desroches@atmel.com> wrote:
>>>>
>>>> Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
>>>>
>>>>> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>>>>>>
>>>>>>
>>>>>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>>>
>>>>>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>>> ---
>>>>>> 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
>>>>>>
>>>>>> diff --git a/package/Config.in b/package/Config.in
>>>>>> index 3e5f708..79f9aaf 100644
>>>>>> --- a/package/Config.in
>>>>>> +++ b/package/Config.in
>>>>>> @@ -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"
>>>>>> diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
>>>>>> new file mode 100644
>>>>>> index 0000000..d13dfd7
>>>>>> --- /dev/null
>>>>>> +++ b/package/lava-test/Config.in
>>>>>> @@ -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
>>>>>> diff --git a/package/lava-test/lava-test.mk
>>>>>> b/package/lava-test/lava-test.mk
>>>>>> new file mode 100644
>>>>>> index 0000000..f6df4a2
>>>>>> --- /dev/null
>>>>>> +++ b/package/lava-test/lava-test.mk
>>>>>> @@ -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))
>>>>>
>>>>>
>>>>>
>>>>> Thank you for the patch. I'll look at it next week.
>>>>>
>>>>> 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
>>>
>>
>> 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
>
>
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2012-05-14 7:46 ` ludovic.desroches
@ 2012-05-14 7:51 ` Yegor Yefremov
0 siblings, 0 replies; 13+ messages in thread
From: Yegor Yefremov @ 2012-05-14 7:51 UTC (permalink / raw)
To: buildroot
On Mon, May 14, 2012 at 9:46 AM, ludovic.desroches
<ludovic.desroches@atmel.com> wrote:
> Le 05/10/2012 09:39 AM, Yegor Yefremov a ?crit :
>
>> On Thu, May 10, 2012 at 9:30 AM, ludovic.desroches
>> <ludovic.desroches@atmel.com> ?wrote:
>>>
>>> Hi Yegor,
>>>
>>> Le 05/07/2012 04:08 PM, Yegor Yefremov a ?crit :
>>>
>>>> On Fri, Apr 27, 2012 at 5:35 PM, Ludovic Desroches
>>>> <ludovic.desroches@atmel.com> ? ?wrote:
>>>>>
>>>>>
>>>>> Le 04/27/2012 05:12 PM, Yegor Yefremov a ?crit :
>>>>>
>>>>>> Am 27.04.2012 17:04, schrieb ludovic.desroches at atmel.com:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> From: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>>>>
>>>>>>> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
>>>>>>> ---
>>>>>>> ?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
>>>>>>>
>>>>>>> diff --git a/package/Config.in b/package/Config.in
>>>>>>> index 3e5f708..79f9aaf 100644
>>>>>>> --- a/package/Config.in
>>>>>>> +++ b/package/Config.in
>>>>>>> @@ -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"
>>>>>>> diff --git a/package/lava-test/Config.in
>>>>>>> b/package/lava-test/Config.in
>>>>>>> new file mode 100644
>>>>>>> index 0000000..d13dfd7
>>>>>>> --- /dev/null
>>>>>>> +++ b/package/lava-test/Config.in
>>>>>>> @@ -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
>>>>>>> diff --git a/package/lava-test/lava-test.mk
>>>>>>> b/package/lava-test/lava-test.mk
>>>>>>> new file mode 100644
>>>>>>> index 0000000..f6df4a2
>>>>>>> --- /dev/null
>>>>>>> +++ b/package/lava-test/lava-test.mk
>>>>>>> @@ -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))
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thank you for the patch. I'll look at it next week.
>>>>>>
>>>>>> 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
>>>>
>>>
>>> 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
>>
>>
>
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2013-10-08 15:17 [Buildroot] Buildroot patchwork: decision on the 10 oldest patches, week 1 Ludovic Desroches
@ 2013-10-09 9:34 ` ludovic.desroches at atmel.com
2013-10-09 11:55 ` Thomas Petazzoni
0 siblings, 1 reply; 13+ messages in thread
From: ludovic.desroches at atmel.com @ 2013-10-09 9:34 UTC (permalink / raw)
To: buildroot
From: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
I have the same issues with latest release of Buildroot.
I have added python path replacement in install target instead of doing it in
the post-build script. I have added license stuff too and bump to latest
version.
package/Config.in | 1 +
package/lava-test/Config.in | 8 ++++++++
package/lava-test/lava-test.mk | 13 +++++++++++++
3 files changed, 22 insertions(+)
create mode 100644 package/lava-test/Config.in
create mode 100644 package/lava-test/lava-test.mk
diff --git a/package/Config.in b/package/Config.in
index 97cd7da..2bf8313 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -27,6 +27,7 @@ source "package/gdb/Config.in"
source "package/iozone/Config.in"
source "package/kexec/Config.in"
source "package/latencytop/Config.in"
+source "package/lava-test/Config.in"
source "package/lmbench/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/lsof/Config.in"
diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in
new file mode 100644
index 0000000..336ca42
--- /dev/null
+++ b/package/lava-test/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LAVA_TEST
+ bool "lava-test"
+ depends on BR2_PACKAGE_PYTHON
+ select BR2_PACKAGE_PYTHON_SETUPTOOLS
+ 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.
diff --git a/package/lava-test/lava-test.mk b/package/lava-test/lava-test.mk
new file mode 100644
index 0000000..bb32b29
--- /dev/null
+++ b/package/lava-test/lava-test.mk
@@ -0,0 +1,13 @@
+LAVA_TEST_VERSION = 0.14
+LAVA_TEST_SOURCE = lava-test-$(LAVA_TEST_VERSION)-2013.01.tar.gz
+LAVA_TEST_SITE = https://launchpad.net/lava-test/trunk/2013.01/+download/
+LAVA_TEST_DEPENDENCIES = python host-python-setuptools
+LAVA_TEST_LICENSE = GPLv3
+LAVA_TEST_LICENSE_FILES = COPYING
+
+define LAVA_TEST_INSTALL_TARGET_CMDS
+ (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=/usr --root=$(TARGET_DIR))
+ sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{lava,lava-dashboard-tool,lava-test,lava-tool}
+endef
+
+$(eval $(generic-package))
--
1.7.11.3
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
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
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2013-10-09 11:55 UTC (permalink / raw)
To: buildroot
Dear ludovic.desroches at atmel.com,
On Wed, 9 Oct 2013 11:34:43 +0200, ludovic.desroches at atmel.com wrote:
> From: Ludovic Desroches <ludovic.desroches@atmel.com>
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> ---
>
> I have the same issues with latest release of Buildroot.
>
> I have added python path replacement in install target instead of doing it in
> the post-build script. I have added license stuff too and bump to latest
> version.
And with this change, does lava-test works for you?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH] New: add lava-test package
2013-10-09 11:55 ` Thomas Petazzoni
@ 2013-10-09 14:42 ` Ludovic Desroches
0 siblings, 0 replies; 13+ messages in thread
From: Ludovic Desroches @ 2013-10-09 14:42 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Wed, Oct 09, 2013 at 01:55:48PM +0200, Thomas Petazzoni wrote:
> Dear ludovic.desroches at atmel.com,
>
> On Wed, 9 Oct 2013 11:34:43 +0200, ludovic.desroches at atmel.com wrote:
> > From: Ludovic Desroches <ludovic.desroches@atmel.com>
> >
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > ---
> >
> > I have the same issues with latest release of Buildroot.
> >
> > I have added python path replacement in install target instead of doing it in
> > the post-build script. I have added license stuff too and bump to latest
> > version.
>
> And with this change, does lava-test works for you?
>
Our lava installation is currently down. I'll see how I can check it.
Since the issue was only python path, I hope it should be working.
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