unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37989: python2-numpy v0.17.3 fails to build
@ 2019-10-30 11:45 Josh Holland
  2019-10-30 13:23 ` Konrad Hinsen
  2019-10-30 13:33 ` Marius Bakke
  0 siblings, 2 replies; 3+ messages in thread
From: Josh Holland @ 2019-10-30 11:45 UTC (permalink / raw)
  To: 37989

Hi,

It seems that the update of python-numpy to 1.17.3 in
8e5fbd5dda93e137ff527cabe25989b28ab9e1c0 has broken the build of the
corresponding Python 2 package, both on my local machine and on the CI
server: http://ci.guix.gnu.org/build/1893145/details.

The log in Cuirass is incomplete, but the error in my build is the
following:

starting phase `build'
running "python setup.py" with command "build" and parameters ()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 31, in <module>
    raise RuntimeError("Python version >= 3.5 required.")
RuntimeError: Python version >= 3.5 required.
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed with status 1

Indeed, despite the assertion on
https://numpy.org/doc/1.17/user/building.html that Python 2.7 or 3.4 are
sufficient, the setup.py script explicitly checks that Python is at
least 3.5; see the upstream commit badf2901:

https://github.com/numpy/numpy/commit/badf2901ea040aa89dbb3c19e53c6b1b692cb489

Lots of packages including libreoffice transitively depend on
python2-numpy, so this needs some sort of resolution — perhaps simply
pinning python2-numpy to a previous version?  However, Python 2 will not
be maintained after the end of 2019, and I'm not sure if there is an
overall Guix-wide migration plan for python2-* packages.

--
Josh Holland

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37989: python2-numpy v0.17.3 fails to build
  2019-10-30 11:45 bug#37989: python2-numpy v0.17.3 fails to build Josh Holland
@ 2019-10-30 13:23 ` Konrad Hinsen
  2019-10-30 13:33 ` Marius Bakke
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Hinsen @ 2019-10-30 13:23 UTC (permalink / raw)
  To: 37989

Hi Josh,
> Lots of packages including libreoffice transitively depend on
> python2-numpy, so this needs some sort of resolution — perhaps simply
> pinning python2-numpy to a previous version?

That would be my preferred solution - pin python2-numpy to the last 
NumPy version that supports Python 2, which is most likely 1.16.

> However, Python 2 will not
> be maintained after the end of 2019, and I'm not sure if there is an
> overall Guix-wide migration plan for python2-* packages.

Not that I know, but no matter how this will be handled, Guix is the 
perfect platform for people still depending on Python 2 because they can 
always install packages from an earlier release. Which is a good reason 
to end Python 2 support in Guix by an as up to date package set as possible.


Cheers.

   Konrad.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37989: python2-numpy v0.17.3 fails to build
  2019-10-30 11:45 bug#37989: python2-numpy v0.17.3 fails to build Josh Holland
  2019-10-30 13:23 ` Konrad Hinsen
@ 2019-10-30 13:33 ` Marius Bakke
  1 sibling, 0 replies; 3+ messages in thread
From: Marius Bakke @ 2019-10-30 13:33 UTC (permalink / raw)
  To: Josh Holland, 37989-done

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

Josh Holland <josh@inv.alid.pw> writes:

> Hi,
>
> It seems that the update of python-numpy to 1.17.3 in
> 8e5fbd5dda93e137ff527cabe25989b28ab9e1c0 has broken the build of the
> corresponding Python 2 package, both on my local machine and on the CI
> server: http://ci.guix.gnu.org/build/1893145/details.

Fixed in adb396eae3524d9b82294aaf5cc87a615515b04d, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-30 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 11:45 bug#37989: python2-numpy v0.17.3 fails to build Josh Holland
2019-10-30 13:23 ` Konrad Hinsen
2019-10-30 13:33 ` Marius Bakke

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