Browse Source

Fix waf builds for macos without python3

tags/v1.0
falkTX 4 years ago
parent
commit
8ce241030f
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      setup/functions.sh

+ 8
- 3
setup/functions.sh View File

@@ -303,26 +303,31 @@ function build_waf() {
local extraconfrules="${3}"

local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"
local python=python3

if ! which python3; then
python=python
fi

_prebuild "${name}" "${pkgdir}"

if [ ! -f "${pkgdir}/.stamp_configured" ]; then
pushd "${pkgdir}"
./waf configure --prefix="${PAWPAW_PREFIX}" ${extraconfrules}
${python} waf configure --prefix="${PAWPAW_PREFIX}" ${extraconfrules}
touch .stamp_configured
popd
fi

if [ ! -f "${pkgdir}/.stamp_built" ]; then
pushd "${pkgdir}"
./waf build
${python} waf build
touch .stamp_built
popd
fi

if [ ! -f "${pkgdir}/.stamp_installed" ]; then
pushd "${pkgdir}"
./waf install
${python} waf install
touch .stamp_installed
popd
fi


Loading…
Cancel
Save