@@ -643,7 +643,7 @@ jobs:
643643before_install : |
644644 set -e
645645
646- if [ -z "$SDIST" ]; then
646+ if [ -n "$SDIST" ]; then
647647 echo "sdist build"
648648 else
649649 # Check out and prepare the source
@@ -687,7 +687,9 @@ install: |
687687 # Build and package
688688 set -x
689689
690- if [ -z "$SDIST" ]; then
690+ if [ -n "$SDIST" ]; then
691+ python -m pip install --upgrade pip
692+ python -m pip install scikit-build
691693 python setup.py sdist
692694 else
693695 build_wheel $REPO_DIR $PLAT
@@ -699,7 +701,7 @@ script: |
699701 # Install and run tests
700702 set -x
701703
702- if [ -z "$SDIST" ]; then
704+ if [ -n "$SDIST" ]; then
703705 echo "sdist"
704706 else
705707 install_run $PLAT && rc=$? || rc=$?
@@ -753,7 +755,7 @@ after_success: |
753755 pip install --user twine
754756 pip install --user --upgrade six
755757
756- if [ -z "$SDIST" ]; then
758+ if [ -n "$SDIST" ]; then
757759 twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist
758760 else
759761 twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
@@ -768,7 +770,7 @@ after_success: |
768770 /usr/bin/python -m pip install --user -U pip
769771 /usr/bin/python -m pip install --user -U -I twine
770772
771- if [ -z "$SDIST" ]; then
773+ if [ -n "$SDIST" ]; then
772774 /usr/bin/python -m upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist
773775 else
774776 /usr/bin/python -m upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
@@ -788,7 +790,7 @@ after_success: |
788790
789791 az storage container create -n ${TRAVIS_COMMIT} --public-access blob
790792
791- if [ -z "$SDIST" ]; then
793+ if [ -n "$SDIST" ]; then
792794 az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/dist --pattern *.gz
793795 else
794796 az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/wheelhouse --pattern *.whl
0 commit comments