unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Lars-Dominik Braun <lars@6xq.net>
Cc: guix-devel@gnu.org
Subject: Re: [core-updates-frozen] Different variants of Python packages in the same profile?
Date: Sun, 21 Nov 2021 19:02:39 +0000	[thread overview]
Message-ID: <874k85gwln.fsf@elephly.net> (raw)
In-Reply-To: <YZoIfQXDKIpj99yo@noor.fritz.box>


Lars-Dominik Braun <lars@6xq.net> writes:

> Hello Ricardo,
>
>> So… since numpy 1.20 is the exception here, could we perhaps … 
>> rename it?  And then have python-numba import that renamed 
>> module 
>> “totally-not-numpy” instead of “numpy”?  Could we thus avoid 
>> this 
>> conflict?  If renaming is an option — how would it be done?  Is 
>> it 
>> enough to rename the “numpy” directory with “numpy-1.20”, the 
>> “numpy.py” file with “numpy-1.20.py”, and then update all 
>> “import” 
>> statements both by numpy itself and by python-numba?
> I feel this is a dangerous idea. Python is dynamically typed and 
> if we
> – somehow – end up with objects from both, numpy 1.20 and numpy 
> 1.21
> in the same program, which can still happen when renaming, 
> things may
> go wrong very badly. [1] says versions 1.* are ABI compatible, 
> but the
> API changes between releases, which is probably why numba cannot 
> be used
> with a newer numpy.
>
> Can we rewrite the entire graph to use numpy 1.20 whenever a 
> package
> imports numba?

After a quick discussion on IRC we decided to make 1.20 the 
default and keep 1.21 as python-numpy-next.  Let’s hope we can 
switch to 1.21 for good soon.

-- 
Ricardo


  reply	other threads:[~2021-11-21 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20 10:42 [core-updates-frozen] Different variants of Python packages in the same profile? Ricardo Wurmus
2021-11-21  8:51 ` Lars-Dominik Braun
2021-11-21 19:02   ` Ricardo Wurmus [this message]
2021-11-21 21:27 ` zimoun
2021-11-22 13:25 ` Ludovic Courtès
2021-11-22 19:37   ` Ricardo Wurmus
2021-11-22 19:39   ` Ricardo Wurmus

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k85gwln.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=lars@6xq.net \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).