Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
077c066f
Commit
077c066f
authored
Feb 26, 2019
by
Rob Buckley
Browse files
swap args 2 and 3 for get_macpython_environment() for back compat
parent
061c1c06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
osx_utils.sh
osx_utils.sh
+4
-7
tests/test_multibuild.sh
tests/test_multibuild.sh
+1
-1
travis_osx_steps.sh
travis_osx_steps.sh
+1
-1
No files found.
osx_utils.sh
View file @
077c066f
...
@@ -314,9 +314,6 @@ function get_macpython_environment {
...
@@ -314,9 +314,6 @@ function get_macpython_environment {
# Parameters:
# Parameters:
# $version : [implementation-]major[.minor[.patch]]
# $version : [implementation-]major[.minor[.patch]]
# The Python implementation to install, e.g. "3.6" or "pypy-5.4"
# The Python implementation to install, e.g. "3.6" or "pypy-5.4"
# $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g.
# "10.6" or "10.9", if not defined, uses the default MACPYTHON_DEFAULT_OSX
# $venv_dir : {directory_name|not defined}
# $venv_dir : {directory_name|not defined}
# If defined - make virtualenv in this directory, set python / pip
# If defined - make virtualenv in this directory, set python / pip
# commands accordingly
# commands accordingly
...
@@ -331,13 +328,13 @@ function get_macpython_environment {
...
@@ -331,13 +328,13 @@ function get_macpython_environment {
# If $venv_dir defined, Sets $VIRTUALENV_CMD to virtualenv executable
# If $venv_dir defined, Sets $VIRTUALENV_CMD to virtualenv executable
# Puts directory of $PYTHON_EXE on $PATH
# Puts directory of $PYTHON_EXE on $PATH
local
version
=
$1
local
version
=
$1
local
py_osx_ve
r
=
$2
local
venv_di
r
=
$2
local
venv_dir
=
$3
local
py_osx_ver
=
${
3
:-
$MB_PYTHON_OSX_VER
}
if
[
"
$USE_CCACHE
"
==
"1"
]
;
then
if
[
"
$USE_CCACHE
"
==
"1"
]
;
then
activate_ccache
activate_ccache
fi
fi
remove_travis_ve_pip
remove_travis_ve_pip
install_macpython
$version
$py_osx_ver
install_macpython
$version
$py_osx_ver
install_pip
install_pip
...
@@ -394,4 +391,4 @@ function activate_ccache {
...
@@ -394,4 +391,4 @@ function activate_ccache {
# Prove to the developer that ccache is activated
# Prove to the developer that ccache is activated
echo
"Using C compiler:
$(
which clang
)
"
echo
"Using C compiler:
$(
which clang
)
"
}
}
\ No newline at end of file
tests/test_multibuild.sh
View file @
077c066f
...
@@ -8,7 +8,7 @@ source tests/test_common_utils.sh
...
@@ -8,7 +8,7 @@ source tests/test_common_utils.sh
source
tests/test_fill_submodule.sh
source
tests/test_fill_submodule.sh
if
[
-n
"
$IS_OSX
"
]
;
then
if
[
-n
"
$IS_OSX
"
]
;
then
source
osx_utils.sh
source
osx_utils.sh
get_macpython_environment
$PYTHON_VERSION
${
MB_PYTHON_OSX_VER
:-
""
}
$VENV
get_macpython_environment
$PYTHON_VERSION
${
VENV
:-
""
}
$
MB_PYTHON_OSX_VER
source
tests/test_python_install.sh
source
tests/test_python_install.sh
source
tests/test_fill_pyver.sh
source
tests/test_fill_pyver.sh
source
tests/test_fill_pypy_ver.sh
source
tests/test_fill_pypy_ver.sh
...
...
travis_osx_steps.sh
View file @
077c066f
...
@@ -21,7 +21,7 @@ function before_install {
...
@@ -21,7 +21,7 @@ function before_install {
brew cask uninstall oclint
||
true
brew cask uninstall oclint
||
true
export
CC
=
clang
export
CC
=
clang
export
CXX
=
clang++
export
CXX
=
clang++
get_macpython_environment
$MB_PYTHON_VERSION
${
MB_PYTHON_OSX_VER
:-
""
}
venv
get_macpython_environment
$MB_PYTHON_VERSION
venv
source
venv/bin/activate
source
venv/bin/activate
pip
install
--upgrade
pip wheel
pip
install
--upgrade
pip wheel
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment