Skip to content

Commit

Permalink
travis: fix possible OSX build failure
Browse files Browse the repository at this point in the history
Building pyobjc-framework-Cocoa fails if Cython is installed, see:

pypa/setuptools#488

This is fixed by upgrading setuptools to >=19.6.
  • Loading branch information
benoit-pierre authored and TheaMorin committed Mar 2, 2017
1 parent bb605c2 commit 5eb12d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ before_install:
;;
esac &&
./setup.py write_requirements &&
# Upgrade setuptools, we need at least 19.6 to prevent issues with Cython patched 'build_ext' command.
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user 'setuptools>=19.6' &&
# Manually install Cython if not already to speedup hidapi build.
pip --disable-pip-version-check --timeout=5 --retries=2 install --user Cython &&
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user -r requirements.txt &&
# We need to downgrade setuptools for py2app to work correctly...
# And now downgrade setuptools so py2app works correctly...
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user 'setuptools==19.2' &&
pip --disable-pip-version-check list &&
true
Expand Down

0 comments on commit 5eb12d2

Please sign in to comment.