SUMMARY="Array processing for numbers, strings, records, and objects" DESCRIPTION="NumPy is a general-purpose array-processing package designed to \ efficiently manipulate large multi-dimensional arrays of arbitrary records \ without sacrificing too much speed for small multi-dimensional arrays. NumPy is built on the Numeric code base and adds features introduced by \ numarray as well as an extended C-API and the ability to create arrays of \ arbitrary type which also makes NumPy suitable for interfacing with \ general-purpose data-base applications." HOMEPAGE="http://numpy.scipy.org/" COPYRIGHT="2005-2016 NumPy Developers." LICENSE="BSD (3-clause)" REVISION="1" SOURCE_URI="https://files.pythonhosted.org/packages/d5/6e/f00492653d0fdf6497a181a1c1d46bbea5a2383e7faf4c8ca6d6f3d2581d/numpy-1.14.5.zip" CHECKSUM_SHA256="a4a433b3a264dbc9aa9c7c241e87c0358a503ea6394f8737df1683c7c9a102ac" SOURCE_DIR="numpy-$portVersion" PYTHON_VERSION="3.6" ARCHITECTURES="!x86_gcc2 x86 x86_64" PROVIDES=" python3_numpy = $portVersion cmd:f2py3 " REQUIRES=" haiku cmd:python$PYTHON_VERSION lib:libopenblas " BUILD_REQUIRES=" haiku_devel setuptools_python3 devel:libopenblas " BUILD_PREREQUIRES=" cmd:python$PYTHON_VERSION cmd:git cmd:gcc cmd:gfortran " BUILD() { # Check at every update in site.cfg.example! cat > site.cfg << EOF [openblas] libraries = openblas library_dirs = /system/`echo ${relativeDevelopLibDir}` include_dirs = /system/`echo ${relativeIncludeDir}` runtime_library_dirs = /system/`echo ${relativeLibDir}` EOF rm -rf doc/sphinxext/.git $portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build $jobArgs } INSTALL() { # GENERIC: all python_setuptools-based installs need this python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation $python setup.py build $jobArgs install \ --prefix $prefix }