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
6a68dced
Commit
6a68dced
authored
Oct 11, 2017
by
xoviat
Committed by
GitHub
Oct 11, 2017
Browse files
FIX: libraries: install newer SWIG
Old SWIG cannot compile on Python 3.
parent
97feeb06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
library_builders.sh
library_builders.sh
+21
-2
No files found.
library_builders.sh
View file @
6a68dced
...
@@ -27,6 +27,7 @@ BLOSC_VERSION=${BLOSC_VERSION:-1.10.2}
...
@@ -27,6 +27,7 @@ BLOSC_VERSION=${BLOSC_VERSION:-1.10.2}
SNAPPY_VERSION
=
"
${
SNAPPY_VERSION
:-
1
.1.3
}
"
SNAPPY_VERSION
=
"
${
SNAPPY_VERSION
:-
1
.1.3
}
"
CURL_VERSION
=
${
CURL_VERSION
:-
7
.49.1
}
CURL_VERSION
=
${
CURL_VERSION
:-
7
.49.1
}
NETCDF_VERSION
=
${
NETCDF_VERSION
:-
4
.4.1.1
}
NETCDF_VERSION
=
${
NETCDF_VERSION
:-
4
.4.1.1
}
SWIG_VERSION
=
${
SWIG_VERSION
:-
3
.0.12
}
OPENSSL_ROOT
=
openssl-1.0.2l
OPENSSL_ROOT
=
openssl-1.0.2l
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
OPENSSL_HASH
=
ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
OPENSSL_HASH
=
ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
...
@@ -317,11 +318,29 @@ function build_netcdf {
...
@@ -317,11 +318,29 @@ function build_netcdf {
touch
netcdf-stamp
touch
netcdf-stamp
}
}
function
build_simple_swig
{
local
name
=
$1
local
version
=
$2
local
url
=
$3
if
[
-e
"
${
name
}
-stamp"
]
;
then
return
fi
local
name_version
=
"
${
name
}
-
${
version
}
"
local
targz
=
${
name_version
}
.tar.gz
fetch_unpack
$url
/
$targz
(
cd
$name_version
\
&&
./Tools/pcre-build.sh
\
&&
./configure
--prefix
=
$BUILD_PREFIX
\
&&
make
\
&&
make
install
)
touch
"
${
name
}
-stamp"
}
function
build_swig
{
function
build_swig
{
if
[
-n
"
$IS_OSX
"
]
;
then
if
[
-n
"
$IS_OSX
"
]
;
then
brew
install
swig
>
/dev/null
brew
install
swig
>
/dev/null
else
else
yum
install
-y
swig
>
/dev/null
build_simple_swig swig
$SWIG_VERSION
http://prdownloads.sourceforge.net/swig/
fi
fi
}
}
...
@@ -329,6 +348,6 @@ function build_sparsesuite {
...
@@ -329,6 +348,6 @@ function build_sparsesuite {
if
[
-n
"
$IS_OSX
"
]
;
then
if
[
-n
"
$IS_OSX
"
]
;
then
brew
install
homebrew/science/suite-sparse
>
/dev/null
brew
install
homebrew/science/suite-sparse
>
/dev/null
else
else
yum
install
-y
s
wig
>
/dev/null
yum
install
-y
s
uitesparse-devel
>
/dev/null
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