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
d89110eb
Commit
d89110eb
authored
May 22, 2017
by
Matthew Brett
Browse files
Keep trying to add the pip args, with correct tests
parent
ecdd1492
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
osx_utils.sh
osx_utils.sh
+2
-1
tests/test_python_install.sh
tests/test_python_install.sh
+5
-2
No files found.
osx_utils.sh
View file @
d89110eb
...
@@ -292,7 +292,8 @@ function get_macpython_environment {
...
@@ -292,7 +292,8 @@ function get_macpython_environment {
function
repair_wheelhouse
{
function
repair_wheelhouse
{
local
wheelhouse
=
$1
local
wheelhouse
=
$1
pip
install
delocate
check_pip
$PIP_CMD
install
delocate
delocate-listdeps
$wheelhouse
/
*
.whl
# lists library dependencies
delocate-listdeps
$wheelhouse
/
*
.whl
# lists library dependencies
# repair_wheelhouse can take more than 10 minutes without generating output
# repair_wheelhouse can take more than 10 minutes without generating output
# but jobs that do not generate output within 10 minutes are aborted by travis-ci.
# but jobs that do not generate output within 10 minutes are aborted by travis-ci.
...
...
tests/test_python_install.sh
View file @
d89110eb
...
@@ -31,6 +31,9 @@ fi
...
@@ -31,6 +31,9 @@ fi
if
!
[[
"
$implementer_version
"
=
~
$requested_version
]]
;
then
if
!
[[
"
$implementer_version
"
=
~
$requested_version
]]
;
then
ingest
"Wrong python version:
${
implementer_version
}
!=
${
requested_version
}
"
ingest
"Wrong python version:
${
implementer_version
}
!=
${
requested_version
}
"
fi
fi
if
[
"
$python_mm
"
==
"2.6"
]
;
then
expected_pip_args
=
" --trusted-host=pypi.python.org"
fi
if
[
-n
"
$VENV
"
]
;
then
# in virtualenv
if
[
-n
"
$VENV
"
]
;
then
# in virtualenv
# Correct pip and Python versions should be on PATH
# Correct pip and Python versions should be on PATH
...
@@ -44,7 +47,7 @@ if [ -n "$VENV" ]; then # in virtualenv
...
@@ -44,7 +47,7 @@ if [ -n "$VENV" ]; then # in virtualenv
if
[
"
$PYTHON_EXE
"
!=
"
$PWD
/venv/bin/python"
]
;
then
if
[
"
$PYTHON_EXE
"
!=
"
$PWD
/venv/bin/python"
]
;
then
ingest
"Wrong virtualenv python '
$PYTHON_EXE
'"
ingest
"Wrong virtualenv python '
$PYTHON_EXE
'"
fi
fi
if
[
"
$PIP_CMD
"
!=
"
$PWD
/venv/bin/pip"
]
;
then
if
[
"
$PIP_CMD
"
!=
"
$
{
PWD
}
/venv/bin/pip
${
expected_pip_args
}
"
]
;
then
ingest
"Wrong virtualenv pip '
$PIP_CMD
'"
ingest
"Wrong virtualenv pip '
$PIP_CMD
'"
fi
fi
else
# not virtualenv
else
# not virtualenv
...
@@ -52,7 +55,7 @@ else # not virtualenv
...
@@ -52,7 +55,7 @@ else # not virtualenv
if
[
"
$PYTHON_EXE
"
!=
"
$macpie_bin
/python
$python_mm
"
]
;
then
if
[
"
$PYTHON_EXE
"
!=
"
$macpie_bin
/python
$python_mm
"
]
;
then
ingest
"Wrong macpython python cmd '
$PYTHON_EXE
'"
ingest
"Wrong macpython python cmd '
$PYTHON_EXE
'"
fi
fi
if
[
"
$PIP_CMD
"
!=
"sudo
$macpie_bin
/pip
$python_mm
"
]
;
then
if
[
"
$PIP_CMD
"
!=
"sudo
$macpie_bin
/pip
$
{
python_mm
}${
expected_pip_args
}
"
]
;
then
ingest
"Wrong macpython pip '
$PIP_CMD
'"
ingest
"Wrong macpython pip '
$PIP_CMD
'"
fi
fi
fi
fi
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