Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

install-dependencies-macos.sh 1.1 KB

You have to be logged in to leave a comment. Sign In
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
40
41
42
43
44
45
46
  1. #!/usr/bin/env bash
  2. #
  3. # Bash script to install GMT dependencies on macOS via Homebrew
  4. #
  5. # Environmental variables that can control the installation:
  6. #
  7. # - BUILD_DOCS: Build GMT documentation [false]
  8. # - RUN_TESTS: Run GMT tests [false]
  9. # - PACKAGE: Create GMT packages [false]
  10. #
  11. set -x -e
  12. # set defaults to false
  13. BUILD_DOCS="${BUILD_DOCS:-false}"
  14. RUN_TESTS="${RUN_TESTS:-false}"
  15. PACKAGE="${PACKAGE:-false}"
  16. # packages for compiling GMT
  17. # cmake is pre-installed on GitHub Actions
  18. packages="ninja curl pcre2 netcdf gdal fftw ghostscript"
  19. # packages for build documentation
  20. if [ "$BUILD_DOCS" = "true" ]; then
  21. packages+=" graphicsmagick ffmpeg pngquant"
  22. fi
  23. # packages for running GMT tests
  24. if [ "$RUN_TESTS" = "true" ]; then
  25. packages+=" graphicsmagick"
  26. fi
  27. if [ "$PACKAGE" = "true" ]; then
  28. # we need the GNU tar for packaging
  29. packages+=" gnu-tar"
  30. fi
  31. # Install GMT dependencies
  32. #brew update
  33. brew install ${packages}
  34. if [ "$BUILD_DOCS" = "true" ]; then
  35. pip3 install --user docutils==0.16 sphinx==3.5.4
  36. # Add sphinx to PATH
  37. echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
  38. fi
  39. set +x +e
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...