Skip to content

build: Depend on numpy<2 for build #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

effigies
Copy link
Member

Numpy 2 broke builds, and there's no good way to test other issues while the build is failing. Supporting numpy 2 can be its own effort (#565).

emollier and others added 3 commits September 4, 2024 14:06
As initially reported in [Debian bug #1075317], nipy fails to build
from source with the following error since introduction of gcc 14, and
the promotion of several warnings as errors:

	../lib/fff_python_wrapper/fffpy.c:17:3: error: returning ‘void *’ from a function with return type ‘IMP_OUT’ {aka ‘int’} makes integer from pointer without a cast [-Wint-conversion]
	   17 |   import_array();
	      |   ^~~~~~~~~~~~

This looks to be related to the logic revolving around setting the
type of IMP_OUT, as it does not know about the present import_array
macro "return type" in contemporary Numpy versions.  Since Python 2 is
obsolete, this patch removes the Python major selector entirely to
replace by a hard wiring of the IMP_OUT type.

This may not be 100% suitable to everyone, but the time of
introduction of the void* return type to the import_array macro in
Numpy is unclear.

[Debian bug #1075317]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075317

Signed-off-by: Étienne Mollier <emollier@debian.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy