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 }