WAFCMD=python waf
+WAFURL=https://waf.io/waf-1.8.22
SOX=sox
@[ -f waf ] || make getwaf
getwaf:
- @( which wget > /dev/null && wget -qO waf $(WAFURL) ) || ( which curl > /dev/null && curl $(WAFURL) > waf )
- @chmod +x waf
+ @./scripts/get_waf.sh
expandwaf:
@[ -d wafilb ] || rm -fr waflib
$(WAFCMD) build $(WAFOPTS)
build_python:
- python ./setup.py generate $(ENABLE_DOUBLE) build
+ python ./setup.py build_ext $(ENABLE_DOUBLE)
test_python: export LD_LIBRARY_PATH=$(PWD)/build/src
test_python:
test_python_osx:
# create links from ~/lib/lib* to build/src/lib*
- [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.4.dylib ~/lib ) || true
+ [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.[0-9].dylib ~/lib ) || true
# then run the tests
pip install --user -v -r requirements.txt
pip install --user -v .
pip uninstall -v -y aubio
build_python3:
- python3 ./setup.py generate $(ENABLE_DOUBLE) build
+ python3 ./setup.py build_ext $(ENABLE_DOUBLE)
clean_python3:
python3 ./setup.py clean