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
cd784590
Commit
cd784590
authored
Jun 13, 2016
by
Matthew Brett
Browse files
Fixes to install steps
parent
ee69013f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
manylinux
manylinux
+1
-1
travis_osx_steps.sh
travis_osx_steps.sh
+1
-1
travis_steps.sh
travis_steps.sh
+16
-3
No files found.
manylinux
@
8786096e
Compare
ca01c729
...
8786096e
Subproject commit
ca01c729bc0b6e7aa2ba5ffe8df0f6020d588516
Subproject commit
8786096ec20bf5a11976b8489873602776303cc3
travis_osx_steps.sh
View file @
cd784590
...
@@ -23,7 +23,7 @@ function build_wheels {
...
@@ -23,7 +23,7 @@ function build_wheels {
# BUILD_DEPENDS
# BUILD_DEPENDS
# BUILD_COMMIT
# BUILD_COMMIT
# WHEELHOUSE
# WHEELHOUSE
if
[
-n
"
$BUILD_DEPENDS
"
]
;
then
pip
install
$BUILD_DEPENDS
;
fi
if
[
-n
"
$BUILD_DEPENDS
"
]
;
then
pip
install
$BUILD_DEPENDS
;
fi
if
[
-n
"
$REPO_DIR
"
]
;
then
if
[
-n
"
$REPO_DIR
"
]
;
then
cd
$REPO_DIR
cd
$REPO_DIR
git fetch origin
git fetch origin
...
...
travis_steps.sh
View file @
cd784590
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
git submodule update
--init
--recursive
git submodule update
--init
--recursive
WHEELHOUSE
=
$PWD
/wheelhouse
WHEELHOUSE
=
$PWD
/wheelhouse
MULTIBUILD_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
MULTIBUILD_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
MANYLINUX_URL
=
${
MANYLINUX_URL
:-
https
://nipy.bic.berkeley.edu/manylinux
}
if
[
!
-d
"
$WHEELHOUSE
"
]
;
then
mkdir
$WHEELHOUSE
;
fi
if
[
!
-d
"
$WHEELHOUSE
"
]
;
then
mkdir
$WHEELHOUSE
;
fi
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
if
[[
"
$TRAVIS_OS_NAME
"
==
"osx"
]]
;
then
...
@@ -13,12 +13,25 @@ else
...
@@ -13,12 +13,25 @@ else
source
$MULTIBUILD_DIR
/travis_linux_steps.sh
source
$MULTIBUILD_DIR
/travis_linux_steps.sh
fi
fi
# Specify REPO_DIR to build from directory in this repository.
# Specify PKG_SPEC to build from pip requirement (e.g numpy==1.7.1)
# PKG_SPEC is hardly tested, please let us know of bugs.
if
[
-z
"
$REPO_DIR$PKG_SPEC
"
]
;
then
if
[
-z
"
$REPO_DIR$PKG_SPEC
"
]
;
then
echo
"Must specify REPO_DIR or PKG_SPEC"
echo
"Must specify REPO_DIR or PKG_SPEC"
exit
1
exit
1
fi
fi
function
install_wheel
{
function
install_wheel
{
if
[
-n
"
$TEST_DEPENDS
"
]
;
then
pip
install
$TEST_DEPENDS
;
fi
# Install test dependencies and built wheel
pip
install
$(
python
$MULTIBUILD_DIR
/supported_wheels.py
$WHEELHOUSE
/
*
.whl
)
# Pass any input flags to pip install steps
# Depends on:
# MANYLINUX_URL
# WHEELHOUSE
# TEST_DEPENDS (optional)
if
[
-n
"
$TEST_DEPENDS
"
]
;
then
pip
install
--find-links
$MANYLINUX_URL
$@
$TEST_DEPENDS
fi
# Install compatible wheel
pip
install
--find-links
$MANYLINUX_URL
$@
\
$(
python
$MULTIBUILD_DIR
/supported_wheels.py
$WHEELHOUSE
/
*
.whl
)
}
}
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