forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·39 lines (34 loc) · 1.12 KB
/
update.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# This import runs Cython which has historically tended to include absolute
# paths into the generated files (which we use to avoid a dependency on Cython
# in VTK itself). No release has been made as of 20 April 2017, but the patch
# in this pull request makes the build reproducible:
#
# https://github.com/cython/cython/pull/1576
set -e
set -x
shopt -s dotglob
readonly name="mpi4py"
readonly ownership="mpi4py Upstream <kwrobot@kitware.com>"
readonly subtree="ThirdParty/$name/vtk$name"
readonly repo="https://gitlab.kitware.com/third-party/mpi4py.git"
readonly tag="for/vtk"
readonly paths="
CMakeLists.txt
LICENSE.rst
README.rst
CHANGES.rst
src
misc/THANKS.txt
"
extract_source () {
# Run cython
python setup.py build
# Copy over the files from Git
git_archive
# Copy over the files cython produced
cp -v "src/include/mpi4py/mpi4py.MPI_api.h" "$extractdir/$name-reduced/src/include/mpi4py/"
cp -v "src/include/mpi4py/mpi4py.MPI.h" "$extractdir/$name-reduced/src/include/mpi4py/"
cp -v "src/mpi4py.MPI.c" "$extractdir/$name-reduced/src/"
}
. "${BASH_SOURCE%/*}/../update-common.sh"