attempt to find 2.7 version of delocate
authorrobin
Sun, 16 Feb 2020 12:33:49 +0000
changeset 80 32c32cb5ab93
parent 79 588c0cda1ad5
child 81 9db3471650e0
attempt to find 2.7 version of delocate
.travis-config.sh
--- a/.travis-config.sh	Sun Feb 16 12:09:43 2020 +0000
+++ b/.travis-config.sh	Sun Feb 16 12:33:49 2020 +0000
@@ -16,6 +16,10 @@
 	function repair_wheelhouse {
 		local wheelhouse=$1
 		install_delocate
-		$(dirname $PYTHON_EXE)/delocate-wheel $wheelhouse/*.whl # copies library dependencies into wheel
+		if [ -x $(dirname $PYTHON_EXE)/delocate-wheel ]; then
+			$(dirname $PYTHON_EXE)/delocate-wheel $wheelhouse/*.whl # copies library dependencies into wheel
+		else
+			/Library/Frameworks/Python.framework/Versions/2.7/bin/delocate-wheel $wheelhouse/*.whl # copies library dependencies into wheel
+		fi
 	}
 fi