[Numpy-discussion] building numpy with python3.7

Hannes Breytenbach hannes at saao.ac.za
Mon Dec 18 05:20:08 EST 2017

OK, thanks for the link to the issue.  I'm not using virtual environments - I built python3.7 (and 2.7) with the `make altinstall` method. I managed to get the numpy build working on 3.7 by removing the 
`random/mtrand/mtrand.c` file so that it gets (re-)generated during the build using the latest cython version.

Thanks for the help!

----- Original Message -----
From: "Nathaniel Smith" <njs at pobox.com>
To: "Discussion of Numerical Python" <numpy-discussion at python.org>
Sent: Friday, December 15, 2017 12:53:39 PM
Subject: Re: [Numpy-discussion] building numpy with python3.7

On Fri, Dec 15, 2017 at 2:42 AM, Hannes Breytenbach <hannes at saao.ac.za> wrote:
> I don't think this is a cython version issue - cloned the latest version from git yesterday...
> python3.7 -c "import cython; print(cython.__version__)"
> 0.28a0

It is a cython version issue: https://github.com/cython/cython/issues/1955

It's supposed to be fixed though, so I don't know why you it isn't
working for you. Are you sure that cython is installed in the same
virtualenv as you're using to build numpy? If you were using a numpy
sdist then it would make sense because we include the pre-generated .c
files in the sdists instead of running cython, but given that you're
building from a numpy checkout I dunno.


Nathaniel J. Smith -- https://vorpus.org
NumPy-Discussion mailing list
NumPy-Discussion at python.org


More information about the NumPy-Discussion mailing list