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" <n...@pobox.com> To: "Discussion of Numerical Python" <numpy-discussion@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 <han...@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. -n -- Nathaniel J. Smith -- https://vorpus.org _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion !DSPAM:5a33a9d014269019821239! _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion