[Numpy-discussion] building numpy with python3.7

Thomas Caswell tcaswell at gmail.com
Fri Dec 15 08:25:39 EST 2017


I have been building numpy master with CPython master but am also using
cython master.

My not-pretty script for doing this is:

#! /usr/bin/bash
set -e
TARGET_ENV=bleeding

OSPATH=~/source/other_source/

pushd $OSPATH/cpython/
git pull
git clean -xfd
./configure
make -j 9
./python -m venv --copies --clear ~/.virtualenvs/$TARGET_ENV
popd

source ~/.virtualenvs/$TARGET_ENV/bin/activate

master_build () {
    git checkout master
    git pull
    git clean -xfd
    pip install -v .
}

pushd $OSPATH/cython
master_build
popd
pushd $OSPATH/numpy
master_build
popd

Tom

On Fri, Dec 15, 2017 at 5:54 AM Nathaniel Smith <njs at pobox.com> wrote:

> 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.
>
> -n
>
> --
> Nathaniel J. Smith -- https://vorpus.org
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20171215/9ca0a4b1/attachment-0001.html>


More information about the NumPy-Discussion mailing list