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-windows.sh 1.8 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  1. #!/usr/bin/env bash
  2. #
  3. # Bash script to install GMT dependencies on Windows via vcpkg and chocolatey
  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. WIN_PLATFORM=x64-windows
  17. # install libraries
  18. vcpkg install netcdf-c gdal[core,tools] pcre2 fftw3[core,threads] clapack openblas --triplet ${WIN_PLATFORM}
  19. # Executable files search for DLL files in the directories listed in the PATH environment variable.
  20. echo "${VCPKG_INSTALLATION_ROOT}/installed/${WIN_PLATFORM}/bin" >> $GITHUB_PATH
  21. # Tools like gdal_translate, ogr2ogr are located in tools/gdal
  22. echo "${VCPKG_INSTALLATION_ROOT}/installed/${WIN_PLATFORM}/tools/gdal" >> $GITHUB_PATH
  23. # list installed packages
  24. vcpkg list
  25. # install more packages using chocolatey
  26. choco install ninja
  27. choco install ghostscript --version 9.50
  28. if [ "$BUILD_DOCS" = "true" ]; then
  29. pip install --user docutils==0.16 sphinx==3.5.4
  30. # Add sphinx to PATH
  31. echo "$(python -m site --user-site)\..\Scripts" >> $GITHUB_PATH
  32. choco install pngquant
  33. choco install graphicsmagick
  34. # Add GraphicsMagick to PATH
  35. echo 'C:\Program Files\GraphicsMagick-1.3.32-Q8' >> $GITHUB_PATH
  36. choco install ffmpeg
  37. # Add ffmpeg to PATH
  38. echo 'C:\ProgramData\chocolatey\lib\ffmpeg\tools' >> $GITHUB_PATH
  39. fi
  40. if [ "$RUN_TESTS" = "true" ]; then
  41. choco install graphicsmagick
  42. # Add GraphicsMagick to PATH
  43. echo 'C:\Program Files\GraphicsMagick-1.3.32-Q8' >> $GITHUB_PATH
  44. fi
  45. # we need the GNU tar for packaging
  46. if [ "$PACKAGE" = "true" ]; then
  47. echo 'C:\Program Files\Git\usr\bin\' >> $GITHUB_PATH
  48. fi
  49. set +x +e
Tip!

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

Comments

Loading...