all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: [core-updates-frozen] Different variants of Python packages in the same profile?
Date: Sat, 20 Nov 2021 10:42:57 +0000	[thread overview]
Message-ID: <877dd3hzgp.fsf@elephly.net> (raw)

Hi Guix,

on the core-updates-frozen branch we have a minor problem: 
python-numpy has been upgraded to 1.21, but python-numba can only 
be built with 1.20[1].  I added python-numpy-1.20 and made 
python-numba use it.

Now the problem I have is that numba is used with other packages 
(such as python-scikit-learn) that build with the latest numpy. 
An example is python-umap-learn, which propagates both 
python-numba (with python-numpy-1.20) and python-scikit-learn 
(with python-numpy).  This doesn’t work because Python only knows 
about the name “numpy” and will pick the first matching module on 
the load path.

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’d like to fix this before merging core-updates-frozen, as this 
affects at least 16 bioinformatics packages and working around 
this will be difficult for users.

-- 
Ricardo

[1]: https://github.com/numba/numba/issues/7176


             reply	other threads:[~2021-11-20 10:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20 10:42 Ricardo Wurmus [this message]
2021-11-21  8:51 ` [core-updates-frozen] Different variants of Python packages in the same profile? Lars-Dominik Braun
2021-11-21 19:02   ` Ricardo Wurmus
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

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

  git send-email \
    --in-reply-to=877dd3hzgp.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    /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 external index

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

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.