All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Python package integration
@ 2022-03-24  4:49 snathick
  2022-03-24  6:38 ` Quentin Schulz
  0 siblings, 1 reply; 3+ messages in thread
From: snathick @ 2022-03-24  4:49 UTC (permalink / raw)
  To: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1503 bytes --]

Hi,

I am trying to add the below python package to buildroot

https://github.com/richteel/TeelSys_Python_SHT


.mk file as follows

################################################################################
#
# python-sht21
#
################################################################################

PYTHON_SHT21_VERSION = 1.0
PYTHON_SHT21_SOURCE = pysht21-$(PYTHON_SHT21_VERSION).tar.gz
PYTHON_SHT21_SITE = https://github.com/richteel/TeelSys_Python_SHT
PYTHON_SHT21_LICENSE = BSD
PYTHON_SHT21_LICENSE_FILES = LICENSE
PYTHON_SHT21_SETUP_TYPE = setuptools

$(eval $(python-package))

make command giving following error

wget --passive-ftp -nd -t 3 -O
'/home/snathick/buildroot/output/build/.pysht21-1.0.uyWYsC/output' '
http://sources.buildroot.net/pysht21-1.0'
--2022-03-24 08:57:12--  http://sources.buildroot.net/pysht21-1.0
Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56,
104.26.0.37, 104.26.1.37, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80...
connected.
HTTP request sent, awaiting response... 404 Not Found
2022-03-24 08:57:13 ERROR 404: Not Found.

package/pkg-generic.mk:185: recipe for target
'/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded'
failed
make[1]: ***
[/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded]
Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2


Any suggestions to resolve the issue




-- 
Thanks & Regards,
Snathick

[-- Attachment #1.2: Type: text/html, Size: 2278 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] Python package integration
  2022-03-24  4:49 [Buildroot] Python package integration snathick
@ 2022-03-24  6:38 ` Quentin Schulz
       [not found]   ` <CAN5CKbdDQi+2q6Zis5QyerNY7r=n0sH_AF61_5xejHyFqEx4FQ@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Quentin Schulz @ 2022-03-24  6:38 UTC (permalink / raw)
  To: buildroot, snathick

Hi,

On March 24, 2022 5:49:46 AM GMT+01:00, snathick <snathicktechno@gmail.com> wrote:
>Hi,
>
>I am trying to add the below python package to buildroot
>
>https://github.com/richteel/TeelSys_Python_SHT
>
>
>.mk file as follows
>
>################################################################################
>#
># python-sht21
>#
>################################################################################
>
>PYTHON_SHT21_VERSION = 1.0
>PYTHON_SHT21_SOURCE = pysht21-$(PYTHON_SHT21_VERSION).tar.gz
>PYTHON_SHT21_SITE = https://github.com/richteel/TeelSys_Python_SHT

I think this is one of the issues.

The documentation (https://buildroot.org/downloads/manual/manual.html#github-download-url) states that you should use:
PYTHON_SHT21_SITE = $(call github,richteel,TeelSys_Python_SHT,$(PYTHON_SHT21_VERSION))

I also don't think there's a need for PYTHON_SHT21_SOURCE since Buildroot will figure it out from _SITE variable here.

Finally, I couldn't see tags or releases on this github repo, so you want to pass a commit id to PYTHON_SHT21_VERSION, e.g. 84398b3267158d15e2322878294c0d7e0e6fa78d for the last commit in master branch.

>PYTHON_SHT21_LICENSE = BSD

It's actually MIT.

Cheers,
Quentin

>PYTHON_SHT21_LICENSE_FILES = LICENSE
>PYTHON_SHT21_SETUP_TYPE = setuptools
>
>$(eval $(python-package))
>
>make command giving following error
>
>wget --passive-ftp -nd -t 3 -O
>'/home/snathick/buildroot/output/build/.pysht21-1.0.uyWYsC/output' '
>http://sources.buildroot.net/pysht21-1.0'
>--2022-03-24 08:57:12--  http://sources.buildroot.net/pysht21-1.0
>Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56,
>104.26.0.37, 104.26.1.37, ...
>Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80...
>connected.
>HTTP request sent, awaiting response... 404 Not Found
>2022-03-24 08:57:13 ERROR 404: Not Found.
>
>package/pkg-generic.mk:185: recipe for target
>'/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded'
>failed
>make[1]: ***
>[/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded]
>Error 1
>Makefile:84: recipe for target '_all' failed
>make: *** [_all] Error 2
>
>
>Any suggestions to resolve the issue
>
>
>
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] Python package integration
       [not found]   ` <CAN5CKbdDQi+2q6Zis5QyerNY7r=n0sH_AF61_5xejHyFqEx4FQ@mail.gmail.com>
@ 2022-03-26 16:52     ` snathick
  0 siblings, 0 replies; 3+ messages in thread
From: snathick @ 2022-03-26 16:52 UTC (permalink / raw)
  To: Quentin Schulz, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 4344 bytes --]

Hi,

I am working with integrating below package to buildroot
https://github.com/richteel/TeelSys_Python_SHT

locally computed sha256 and .hash as follows
sha256  d62efb2207390e623cf7c6067606f300a68cb2d0a448c93368302d3fa0d50b87
 python-sht21-84398b3267158d15e2322878294c0d7e0e6fa78d.tar.gz
sha256  5979e787d347e88357e5e8d70c446e9b082c40c32014ec632942aaed0a218e73
 LICENSE

when building error with hash mismatch

ERROR: python-sht21-84398b3267158d15e2322878294c0d7e0e6fa78d.tar.gz has
wrong sha256 hash
ERROR: expected:
d62efb2207390e623cf7c6067606f300a68cb2d0a448c93368302d3fa0d50b87
ERROR: got     :
88696f8d6961cda3c52676607dde37ae7825ab0567364dc4a0162d964ad6266e
ERROR: Incomplete download, or man-in-the-middle (MITM) attack

hash generated was perfect, but how it got generated  hash
88696f8d6961cda3c52676607dde37ae7825ab0567364dc4a0162d964ad6266e not
understanding

Any suggestions to resolve this issue?



Thanks,
Snathick

On Thu, Mar 24, 2022 at 1:35 PM snathick <snathicktechno@gmail.com> wrote:

> Hi quentin,
>
> Thanks for the response and suggestions.
>
> As per your suggestion modified .mk as follows
>
> ################################################################################
> #
> # python-sht21
> #
>
> ################################################################################
>
> PYTHON_SHT21_SITE = $(call
> github,richteel,TeelSys_Python_SHT,84398b3267158d15e2322878294c0d7e0e6fa78d))
> PYTHON_SHT21_LICENSE = MIT
> PYTHON_SHT21_LICENSE_FILES = LICENSE
> PYTHON_SHT21_SETUP_TYPE = setuptools
>
> $(eval $(python-package))
>
> observed that package is not downloading make is failing informing that
> output/build/python-sht21 no setup.py is present
>
> Any suggestions
>
>
> On Thu, Mar 24, 2022 at 12:08 PM Quentin Schulz <foss+buildroot@0leil.net>
> wrote:
>
>> Hi,
>>
>> On March 24, 2022 5:49:46 AM GMT+01:00, snathick <
>> snathicktechno@gmail.com> wrote:
>> >Hi,
>> >
>> >I am trying to add the below python package to buildroot
>> >
>> >https://github.com/richteel/TeelSys_Python_SHT
>> >
>> >
>> >.mk file as follows
>> >
>>
>> >################################################################################
>> >#
>> ># python-sht21
>> >#
>>
>> >################################################################################
>> >
>> >PYTHON_SHT21_VERSION = 1.0
>> >PYTHON_SHT21_SOURCE = pysht21-$(PYTHON_SHT21_VERSION).tar.gz
>> >PYTHON_SHT21_SITE = https://github.com/richteel/TeelSys_Python_SHT
>>
>> I think this is one of the issues.
>>
>> The documentation (
>> https://buildroot.org/downloads/manual/manual.html#github-download-url)
>> states that you should use:
>> PYTHON_SHT21_SITE = $(call
>> github,richteel,TeelSys_Python_SHT,$(PYTHON_SHT21_VERSION))
>>
>> I also don't think there's a need for PYTHON_SHT21_SOURCE since Buildroot
>> will figure it out from _SITE variable here.
>>
>> Finally, I couldn't see tags or releases on this github repo, so you want
>> to pass a commit id to PYTHON_SHT21_VERSION, e.g.
>> 84398b3267158d15e2322878294c0d7e0e6fa78d for the last commit in master
>> branch.
>>
>> >PYTHON_SHT21_LICENSE = BSD
>>
>> It's actually MIT.
>>
>> Cheers,
>> Quentin
>>
>> >PYTHON_SHT21_LICENSE_FILES = LICENSE
>> >PYTHON_SHT21_SETUP_TYPE = setuptools
>> >
>> >$(eval $(python-package))
>> >
>> >make command giving following error
>> >
>> >wget --passive-ftp -nd -t 3 -O
>> >'/home/snathick/buildroot/output/build/.pysht21-1.0.uyWYsC/output' '
>> >http://sources.buildroot.net/pysht21-1.0'
>> >--2022-03-24 08:57:12--  http://sources.buildroot.net/pysht21-1.0
>> >Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56,
>> >104.26.0.37, 104.26.1.37, ...
>> >Connecting to sources.buildroot.net (sources.buildroot.net
>> )|172.67.72.56|:80...
>> >connected.
>> >HTTP request sent, awaiting response... 404 Not Found
>> >2022-03-24 08:57:13 ERROR 404: Not Found.
>> >
>> >package/pkg-generic.mk:185: recipe for target
>>
>> >'/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded'
>> >failed
>> >make[1]: ***
>>
>> >[/home/snathick/buildroot/output/build/python-sht21-1.0/.stamp_downloaded]
>> >Error 1
>> >Makefile:84: recipe for target '_all' failed
>> >make: *** [_all] Error 2
>> >
>> >
>> >Any suggestions to resolve the issue
>> >
>> >
>> >
>> >
>>
>
>
> --
> Thanks & Regards,
> Snathick
>


-- 
Thanks & Regards,
Snathick

[-- Attachment #1.2: Type: text/html, Size: 6856 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-03-26 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24  4:49 [Buildroot] Python package integration snathick
2022-03-24  6:38 ` Quentin Schulz
     [not found]   ` <CAN5CKbdDQi+2q6Zis5QyerNY7r=n0sH_AF61_5xejHyFqEx4FQ@mail.gmail.com>
2022-03-26 16:52     ` snathick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.