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 933 B

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
  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 documentations [false]
  8. # - RUN_TESTS: Run GMT tests [false]
  9. #
  10. set -x -e
  11. # set defaults to false
  12. BUILD_DOCS="${BUILD_DOCS:-false}"
  13. RUN_TESTS="${RUN_TESTS:-false}"
  14. # packages for compiling GMT
  15. # cmake is pre-installed on GitHub Actions
  16. packages="ninja curl pcre2 netcdf gdal fftw ghostscript"
  17. # packages for build documentations
  18. if [ "$BUILD_DOCS" = "true" ]; then
  19. packages+=" graphicsmagick ffmpeg pngquant"
  20. fi
  21. # packages for running GMT tests
  22. if [ "$RUN_TESTS" = "true" ]; then
  23. packages+=" graphicsmagick"
  24. fi
  25. if [ "$PACKAGE" = "true" ]; then
  26. # we need the GNU tar for packaging
  27. packages+=" gnu-tar"
  28. fi
  29. # Install packages
  30. brew update
  31. brew install ${packages}
  32. if [ "$BUILD_DOCS" = "true" ]; then
  33. pip3 install --user sphinx
  34. fi
Tip!

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

Comments

Loading...