8000 Rework Mac OS build by GArik · Pull Request #1 · GArik/opencv-python · GitHub
[go: up one dir, main page]

Skip to content

Rework Mac OS build #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update multibuild submodule to the latest version
  • Loading branch information
GArik committed Jan 22, 2021
commit 673effc2828070e84d4a5a4658184facc7b4fa75
10 changes: 5 additions & 5 deletions travis_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function bdist_wheel_cmd {
local abs_wheelhouse=$1
CI_BUILD=1 pip wheel --verbose --wheel-dir="$PWD/dist" . $BDIST_PARAMS
cp dist/*.whl $abs_wheelhouse
if [ -z "$IS_OSX" ]; then
if [ -z "$IS_MACOS" ]; then
TOOLS_PATH=/opt/_internal/tools
/opt/python/cp37-cp37m/bin/python -m venv $TOOLS_PATH
source $TOOLS_PATH/bin/activate
Expand All @@ -26,7 +26,7 @@ function bdist_wheel_cmd {
if [ -n "$USE_CCACHE" -a -z "$BREW_BOOTSTRAP_MODE" ]; then ccache -s; fi
}

if [ -n "$IS_OSX" ]; then
if [ -n "$IS_MACOS" ]; then
echo " > OSX environment "
export MAKEFLAGS="-j$(sysctl -n hw.ncpu)"
else
Expand All @@ -35,7 +35,7 @@ else
export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)"
fi

if [ -n "$IS_OSX" ]; then
if [ -n "$IS_MACOS" ]; then

source travis_osx_brew_cache.sh

Expand Down Expand Up @@ -92,7 +92,7 @@ function pre_build {
echo "Starting pre-build"
set -e -o pipefail

if [ -n "$IS_OSX" ]; then
if [ -n "$IS_MACOS" ]; then
echo "Running for OSX"

local CACHE_STAGE; (echo "$TRAVIS_BUILD_STAGE_NAME" | grep -qiF "final") || CACHE_STAGE=1
Expand Down Expand Up @@ -136,7 +136,7 @@ function run_tests {
echo "Run tests..."
echo $PWD

if [ -n "$IS_OSX" ]; then
if [ -n "$IS_MACOS" ]; then
echo "Running for OS X"
cd ../tests/
else
Expand Down
0