GDAL-3.0.0-foss-2020b-Python-2.7.18.eb 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. easyblock = 'ConfigureMake'
  2. name = 'GDAL'
  3. version = '3.0.0'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'https://www.gdal.org'
  6. description = """GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style
  7. Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single abstract data model
  8. to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for
  9. data translation and processing."""
  10. toolchain = {'name': 'foss', 'version': '2020b'}
  11. toolchainopts = {'usempi': True}
  12. source_urls = ['https://download.osgeo.org/gdal/%(version)s/']
  13. sources = [SOURCELOWER_TAR_XZ]
  14. checksums = ['ad316fa052d94d9606e90b20a514b92b2dd64e3142dfdbd8f10981a5fcd5c43e']
  15. dependencies = [
  16. ('Python', '2.7.18'),
  17. ('netCDF', '4.7.4'),
  18. ('expat', '2.2.9'),
  19. ('GEOS', '3.8.1', versionsuffix),
  20. ('SQLite', '3.33.0'),
  21. ('libxml2', '2.9.10'),
  22. ('libpng', '1.6.37'),
  23. ('libjpeg-turbo', '2.0.5'),
  24. ('JasPer', '2.0.14'),
  25. ('LibTIFF', '4.1.0'),
  26. ('zlib', '1.2.11'),
  27. ('cURL', '7.72.0'),
  28. ('PCRE', '8.44'),
  29. ('PROJ', '7.2.0'),
  30. ('libgeotiff', '1.6.0'),
  31. ('SciPy-bundle', '2019.10', versionsuffix),
  32. ('HDF5', '1.10.7'),
  33. ]
  34. #osdependencies = [('openssl-devel', 'libssl-dev', 'libopenssl-devel')]
  35. configopts = '--with-expat=$EBROOTEXPAT --with-libz=$EBROOTLIBZ --with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF'
  36. configopts += ' --with-xml2=$EBROOTLIBXML2 --with-geos=$EBROOTGEOS/bin/geos-config --with-jpeg=$EBROOTLIBJPEGMINTURBO'
  37. configopts += ' --with-png=$EBROOTLIBPNG --with-sqlite3=$EBROOTSQLITE --with-jasper=$EBROOTJASPER'
  38. configopts += ' --with-libtiff=$EBROOTLIBTIFF --with-pcre=$EBROOTPCRE --with-python=$EBROOTPYTHON/bin/python'
  39. configopts += ' --with-libgeotiff=$EBROOTLIBGEOTIFF'
  40. modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
  41. sanity_check_paths = {
  42. 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT,
  43. 'lib/python%%(pyshortver)s/site-packages/osgeo/_gdal_array.%s' % SHLIB_EXT],
  44. 'dirs': ['bin', 'include', 'lib/python%(pyshortver)s/site-packages']
  45. }
  46. #sanity_check_commands = ["python -c 'from osgeo import gdal'"]
  47. moduleclass = 'data'