From d0cd2fbd7e82727e8f29be5fe44a5e89588c5bfb Mon Sep 17 00:00:00 2001 From: miqlas Date: Sat, 2 Sep 2017 17:00:55 +0200 Subject: [PATCH] Numpy build fix, patch section cannot create new file (#1619) --- dev-python/numpy/python3_numpy-1.11.2.recipe | 14 ++++++++------ dev-python/numpy/python_numpy-1.11.2.recipe | 19 +++++++++---------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/dev-python/numpy/python3_numpy-1.11.2.recipe b/dev-python/numpy/python3_numpy-1.11.2.recipe index 683138526..518ed3e83 100644 --- a/dev-python/numpy/python3_numpy-1.11.2.recipe +++ b/dev-python/numpy/python3_numpy-1.11.2.recipe @@ -41,12 +41,14 @@ BUILD_PREREQUIRES=" BUILD() { - # Check at every update in site.cfg.example! - echo "[openblas]" > site.cfg - echo "libraries = openblas" >> site.cfg - echo "library_dirs = /system/`echo ${relativeDevelopLibDir}`" >> site.cfg - echo "include_dirs = /system/`echo ${relativeIncludeDir}`" >> site.cfg - echo "runtime_library_dirs = /system/`echo ${relativeLibDir}`" >> site.cfg +# 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 diff --git a/dev-python/numpy/python_numpy-1.11.2.recipe b/dev-python/numpy/python_numpy-1.11.2.recipe index d13e5f772..7591f816d 100644 --- a/dev-python/numpy/python_numpy-1.11.2.recipe +++ b/dev-python/numpy/python_numpy-1.11.2.recipe @@ -38,18 +38,17 @@ BUILD_PREREQUIRES=" cmd:gfortran " -PATCH() -{ - # Check at every update in site.cfg.example! - echo "[openblas]" >> site.cfg - echo "libraries = openblas" >> site.cfg - echo "library_dirs = /system/`echo ${relativeDevelopLibDir}`" >> site.cfg - echo "include_dirs = /system/`echo ${relativeIncludeDir}`" >> site.cfg - echo "runtime_library_dirs = /system/`echo ${relativeLibDir}`" >> site.cfg -} - 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~python2/bin/python2 setup.py build $jobArgs }