From 0402f5ebbf1b66c0a75a43f400f672151c0bee3b Mon Sep 17 00:00:00 2001 From: Taylor Smith Date: Sat, 29 Jul 2017 16:40:38 -0500 Subject: [PATCH] Make sure dist permissions are sufficient --- build_tools/travis/after_success.sh | 3 ++- build_tools/travis/build_wheels.sh | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build_tools/travis/after_success.sh b/build_tools/travis/after_success.sh index 83c71ae9a..cc2721541 100755 --- a/build_tools/travis/after_success.sh +++ b/build_tools/travis/after_success.sh @@ -26,5 +26,6 @@ pip install twine || "pip installing twine failed" # remove the .egg-info dir so Mac won't bomb on bdist_wheel cmd (absolute path in SOURCES.txt) rm -r pyramid_arima.egg-info/ || echo "No local .egg cache to remove" -# make a dist folder if not there +# make a dist folder if not there, then make sure permissions are sufficient mkdir -p dist +chmod 777 dist diff --git a/build_tools/travis/build_wheels.sh b/build_tools/travis/build_wheels.sh index 9ce0cab4a..1f7804e63 100755 --- a/build_tools/travis/build_wheels.sh +++ b/build_tools/travis/build_wheels.sh @@ -35,12 +35,15 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then done done elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then - echo "todo: build OS X python wheels" + # this should be all that's required, right? We already removed the .egg-info + # directory so no locally cached SOURCES.txt with absolute paths will blow things up + python setup.py bdist_wheel else echo "Cannot build on ${TRAVIS_OS_NAME}." fi # only one env will have us build the tar file for src dist if [[ "$BUILD_TAR" ]]; then + echo "Building .tar for source release to pypi" python setup.py sdist fi