public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>,
	Marco Atzeri <marco.atzeri@gmail.com>
Subject: Re: [patch] cygport : update to python 3.9
Date: Sun, 29 May 2022 16:54:35 +0100	[thread overview]
Message-ID: <0b919336-2caf-7ca1-3956-690c547ea45a@dronecode.org.uk> (raw)
In-Reply-To: <a2a6a946-3dcb-e29c-5825-e084da6ac614@gmail.com>

On 03/01/2022 21:42, Marco Atzeri wrote:
> On 03.01.2022 18:37, Jon Turney wrote:
>> On 31/12/2021 10:00, Marco Atzeri wrote:
>>> Attached patch moves "default" from 3.6 to 3.9
> 
>>> Other point:
>>>
>>> As 3.5 was never really deployed, I think we can remove it from the 
>>> distribution.

Agreed.  I have started collecting a list of packages to do a purge of, 
and I'll add those to it.

[...]
> 
> Following is a sort of RFC, so let me know your opinion.
> 
> Currently we have two type of Python packages
> 
> 1) Pure python that exists at max as 2.7 3.6 3.7 3.8 3.9 plus 2 and 3
> 
>     in that case 2/2.7 3/3.6 are EOL;
>     I stopped last year to update the 2.7 and I am thinking to do the
>     same for 3.6 now.
> 
>     I do not see the need to continue to update 3.7, it never become
>     default as we jumped from 3.6 to 3.8 and it is not more
>     active upstream:
>     https://www.python.org/dev/peps/pep-0537/#lifespan
> 
>     We can update the 3.8 and 3.9 while preparing/testing for 3.10
> 
>     source package will continue to use the "python-*" form, while
>     "python3-*" should not be used.

I disagree about the second half of that sentence.

 From a package management point of view:

* being able to script 'install python3, python3-foo' and get the foo 
for the default python is useful

* having the setup remember that python3-foo was installed (causing 
python39-foo to be installed), means when the default python is updated 
from python39 to python3nn, setup will also install python3nn-foo, so 
local scripts with a python3 shebang which 'import foo' continue to work.

I've posted a cygport patch which adjusts cygport to generate these 
python3-foo virtual packages. What do you think about that?

> 2) python packages derived from other packages, where the
>     nomenclature is not uniform:
> 
>     Where we have all variants
>      libxml2          python27-libxml2
>      libxml2          python36-libxml2
>      libxml2          python37-libxml2
>      libxml2          python38-libxml2
> 
>    Only one as I moved from supporting 2 to supporting only 3
>      postgresql       postgresql-plpython
> 
>    To hybrid version
>      openbabel        python2-openbabel   (not updated anymore)
>      openbabel        python38-openbabel
> 
>    I think we should stop to call derived packages "python3-*".
>    Or we use the full version as python38-openbabel or
>    no version at all as python-gdal

I think where the package produces a python binding for a specific 
python version, the package name should have that version (i.e. 
python3x-foo).

> In general
> 
>    We should also stop to pull as dependency "python3"
>    or "python3-devel" as build dependency.
>    Use the full version for dependencies.

I don't think those need to appear in the BUILD_REQUIRES at all.

scallywag is capable of inferring from 'inherit python*' that certain 
python packages are build requirements.

>    Plus use "python3_fix_shebang SCRIPT" for setting the proper
>    interpreter and avoid the issue seen on mercurial and dblatex
>    https://cygwin.com/pipermail/cygwin/2021-December/250282.html
>    I used a cruder version but python3_fix_shebang should do the work


  reply	other threads:[~2022-05-29 15:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31 10:00 Marco Atzeri
2022-01-03 17:37 ` Jon Turney
2022-01-03 21:42   ` Marco Atzeri
2022-05-29 15:54     ` Jon Turney [this message]
2022-07-03 12:22       ` Jon Turney
2022-07-03 12:47         ` Marco Atzeri
2022-01-04 16:05   ` Marco Atzeri
2022-01-08 16:32     ` Jon Turney
2022-01-08 17:12       ` Marco Atzeri
2022-06-29 15:36 ` Hamish McIntyre-Bhatty
2022-06-29 15:46   ` Marco Atzeri
2022-06-29 15:51     ` Hamish McIntyre-Bhatty
2022-06-29 18:35   ` Hamish McIntyre-Bhatty

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=0b919336-2caf-7ca1-3956-690c547ea45a@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-apps@cygwin.com \
    --cc=marco.atzeri@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).