avoid python bindings build for static build