# numpy-py3/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The following command was used: ocgitfetch --run \ --deletegit \ https://github.com/numpy/numpy.git #--------------------------------------------------------------------- 2. The initial update of "numpy-py3" to 2.0.1 was difficult to achi- eve. In the end, only the "spin build" approach worked. Warning: The build procedure is fragile in general. #--------------------------------------------------------------------- [buildtimes] 00.07 hours (or 004.42 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.09 hours (or 005.20 minutes) - ThinkPad W530 i7 4x2 32GB RAM 00.14 hours (or 008.22 minutes) - ThinkPad E540 i7 4x2 16GB RAM #--------------------------------------------------------------------- [settings] configure = none defer = glibc64 license = See "license*.txt" in installed tree licfile = LICENSE.txt licprefix = $PRODTREE/python3 nosyslinks = yes proddir = none purge = no shareddir = yes tmpsize = 796M setpaths = lapack, openblas #--------------------------------------------------------------------- [depends] cython graphviz:forward lapack meson openblas python2-tcltk:strict python3-tcltk:strict #--------------------------------------------------------------------- [build] PATH=$PRODTREE/python3/bin:$PATH ln -nsf $PRODTREE/python3/bin/cython3 /glibc64/xbin/cython ln -nsf $PRODTREE/python3/bin/cython3 /usr/bin/cython rm -fr $PRODTREE/python3/lib/python*/site-packages/numpy/ for x in \ bitsets click concepts features fileconfig \ graphviz spin zipp \ importlib-metadata do echo pip3install $x pip3install $x done CMD="spin build -- \ -D test-simd=BASELINE \ -D disable-highway=true" echo $CMD $CMD cd build-install/usr/ tar zcf /tmp/tempnumpy.tgz lib cd $PRODTREE/python3/ tar zxf /tmp/tempnumpy.tgz rm /tmp/tempnumpy.tgz ln -nsf $PRODTREE/python2/bin/cython /glibc64/xbin/cython ln -nsf $PRODTREE/python2/bin/cython /usr/bin/cython cd /tmp cat > testnp.py << END import numpy as np arr = np.array ([1, 2, 3, 4, 5]) print (arr) print (type (arr)) END python3 testnp.py cd / #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = pypi # No fixed URL #--------------------------------------------------------------------- [history] 190519 Added package. Started with 1.16.3. 190601 Updated to 1.16.4 210206 Split into "numpy-py2" and "numpy-py3" 210206 Updated to 1.20.0 210429 Updated to 1.20.2 211021 Updated to 1.21.3 230103 Updated to 1.24.1 240807 Updated to 2.0.1