Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Aurélien Larcher
On Mon, Feb 1, 2021 at 11:42 PM Gary Mills  wrote:

> On Mon, Feb 01, 2021 at 09:50:29PM +0100, Aurélien Larcher wrote:
> >
> >Are you working on packaging python-39 for SPARC?
>
> No, for x86.  As I mentioned last week, I was looking at cluster-glue,
> the first python package in your list.  I couldn't see anything in
> that package that required python-27, but before I went further I
> thought I'd better install python-39 on my development system.  I
> expect you missed that message.  My source clone, from late September,
> did not have a directory python39, so I assumed I'd have to build my
> own.
>

I am very sorry, with the recent stream of messages I definitely missed
this...

>
> >I have pushed python-39 to the OI repository early January, the
> patches
> >are at:
> >[3]
> https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/component
> >s/python/python39
> >based on solaris-userland patches and upstream post-3.9.1, if it can
> >help.
> >Also the package is
> >[4]runtime/python-39@3.9.1,5.11-2020.0.1.0:20210108T232023Z
>
> I didn't know about any of that.  I'll discard my work and use the
> packaged version instead.
>

Sorry again about the time you spent on the patches :(

>
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> oi-dev mailing list
> oi-dev@openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Gary Mills
On Mon, Feb 01, 2021 at 09:50:29PM +0100, Aurélien Larcher wrote:
> 
>Are you working on packaging python-39 for SPARC?

No, for x86.  As I mentioned last week, I was looking at cluster-glue,
the first python package in your list.  I couldn't see anything in
that package that required python-27, but before I went further I
thought I'd better install python-39 on my development system.  I
expect you missed that message.  My source clone, from late September,
did not have a directory python39, so I assumed I'd have to build my
own.

>I have pushed python-39 to the OI repository early January, the patches
>are at:
>[3]https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/component
>s/python/python39
>based on solaris-userland patches and upstream post-3.9.1, if it can
>help.
>Also the package is
>[4]runtime/python-39@3.9.1,5.11-2020.0.1.0:20210108T232023Z

I didn't know about any of that.  I'll discard my work and use the
packaged version instead.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Aurélien Larcher
On Mon, Feb 1, 2021 at 9:44 PM Aurélien Larcher 
wrote:

>
>
> On Mon, Feb 1, 2021 at 9:34 PM Gary Mills  wrote:
>
>> On Mon, Feb 01, 2021 at 06:05:27PM +0100, Aurélien Larcher wrote:
>> >I tested a little something even if it is still very rudimentary...
>> and
>> >given that I am not a Python developer the code is probably quite
>> ugly.
>> >With the last few commits to oi-userland you can use:
>> >$ gmake update-latest
>> >in Python components to modify the Makefile to the latest known
>> version
>> >in PyPI.
>>
>> I'm still working on python39 itself, not the python scripts.  I
>> assume it's not available in the OI repository yet.  My current
>> obstacle is all the patches used for python37 .  Many of them have to
>> be rewritten to suit python39 .  It's a slow process.
>>
>
> Are you working on packaging python-39 for SPARC?
>
> I have pushed python-39 to the OI repository early January, the patches
> are at:
>
>
> https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/python/python39
>
> based on solaris-userland patches and upstream post-3.9.1, if it can help.
>

Also the package is runtime/python-39@3.9.1,5.11-2020.0.1.0:20210108T232023Z


>
> Kind regards,
>
> Aurélien
>
>
>
>>
>>
>> --
>> -Gary Mills--refurb--Winnipeg, Manitoba,
>> Canada-
>>
>> ___
>> oi-dev mailing list
>> oi-dev@openindiana.org
>> https://openindiana.org/mailman/listinfo/oi-dev
>>
>
>
> --
> ---
> Praise the Caffeine embeddings
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Aurélien Larcher
On Mon, Feb 1, 2021 at 9:34 PM Gary Mills  wrote:

> On Mon, Feb 01, 2021 at 06:05:27PM +0100, Aurélien Larcher wrote:
> >I tested a little something even if it is still very rudimentary...
> and
> >given that I am not a Python developer the code is probably quite
> ugly.
> >With the last few commits to oi-userland you can use:
> >$ gmake update-latest
> >in Python components to modify the Makefile to the latest known
> version
> >in PyPI.
>
> I'm still working on python39 itself, not the python scripts.  I
> assume it's not available in the OI repository yet.  My current
> obstacle is all the patches used for python37 .  Many of them have to
> be rewritten to suit python39 .  It's a slow process.
>

Are you working on packaging python-39 for SPARC?

I have pushed python-39 to the OI repository early January, the patches are
at:

https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/python/python39

based on solaris-userland patches and upstream post-3.9.1, if it can help.

Kind regards,

Aurélien



>
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> oi-dev mailing list
> oi-dev@openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Gary Mills
On Mon, Feb 01, 2021 at 06:05:27PM +0100, Aurélien Larcher wrote:
>I tested a little something even if it is still very rudimentary... and
>given that I am not a Python developer the code is probably quite ugly.
>With the last few commits to oi-userland you can use:
>$ gmake update-latest
>in Python components to modify the Makefile to the latest known version
>in PyPI.

I'm still working on python39 itself, not the python scripts.  I
assume it's not available in the OI repository yet.  My current
obstacle is all the patches used for python37 .  Many of them have to
be rewritten to suit python39 .  It's a slow process.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] Helper tool for Python modules update

2021-02-01 Thread Aurélien Larcher
On Mon, Feb 1, 2021 at 6:05 PM Aurélien Larcher 
wrote:

> Hi,
> I tested a little something even if it is still very rudimentary... and
> given that I am not a Python developer the code is probably quite ugly.
>
> With the last few commits to oi-userland you can use:
>
> $ gmake update-latest
>
> in Python components to modify the Makefile to the latest known version in
> PyPI.
>
> The rest of the procedure remains fairly manual so far...
>
> Some notes specific to Python components:
> 1) If the COMPONENT_ARCHIVE_URL is set to $(call pypi_url) you can remove
> it.
>

Actually probably not for now... should make it more streamlined.



> 2) The COMPONENT_PYPI macro is default set to COMPONENT_NAME but you may
> need to define it if there is a discrepancy.
> 3) If the component uses PyPI then the checksum will be automatically
> updated to the one stored in the JSON metadata.
> 4) This is all very basic, in particular you need to check if the latest
> version supports all Python versions or only Python >= 3.x, and if needed
> split the component into 2.x and 3.x.
>
> Next step will be to use the 'require_dist' metadata to generate
> dependencies.
>
> We are just a few maintainers so as Till said, let us try to be smart...
>
> Kind regards,
>
> Aurélien
>
> --
> ---
> Praise the Caffeine embeddings
>


-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


[oi-dev] Helper tool for Python modules update

2021-02-01 Thread Aurélien Larcher
Hi,
I tested a little something even if it is still very rudimentary... and
given that I am not a Python developer the code is probably quite ugly.

With the last few commits to oi-userland you can use:

$ gmake update-latest

in Python components to modify the Makefile to the latest known version in
PyPI.

The rest of the procedure remains fairly manual so far...

Some notes specific to Python components:
1) If the COMPONENT_ARCHIVE_URL is set to $(call pypi_url) you can remove
it.
2) The COMPONENT_PYPI macro is default set to COMPONENT_NAME but you may
need to define it if there is a discrepancy.
3) If the component uses PyPI then the checksum will be automatically
updated to the one stored in the JSON metadata.
4) This is all very basic, in particular you need to check if the latest
version supports all Python versions or only Python >= 3.x, and if needed
split the component into 2.x and 3.x.

Next step will be to use the 'require_dist' metadata to generate
dependencies.

We are just a few maintainers so as Till said, let us try to be smart...

Kind regards,

Aurélien

-- 
---
Praise the Caffeine embeddings
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev