GDAL-3.2.0-intel-2020b-Python-3.8.6.eb 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. easyblock = 'ConfigureMake'
  2. name = 'GDAL'
  3. version = '3.2.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': 'intel', 'version': '2020b'}
  11. toolchainopts = {'usempi': True}
  12. source_urls = ['https://download.osgeo.org/gdal/%(version)s/']
  13. sources = [SOURCELOWER_TAR_XZ]
  14. patches = [
  15. 'GDAL-3.0.0_fix-python-CC-CXX.patch',
  16. 'GDAL-3.2.0_fix-default_constructor.patch',
  17. ]
  18. dependencies = [
  19. ('Python', '3.8.6'),
  20. ('netCDF', '4.7.4'),
  21. ('expat', '2.2.9'),
  22. ('GEOS', '3.8.1', versionsuffix),
  23. ('SQLite', '3.33.0'),
  24. ('libxml2', '2.9.10'),
  25. ('libpng', '1.6.37'),
  26. ('libjpeg-turbo', '2.0.5'),
  27. ('JasPer', '2.0.14'),
  28. ('LibTIFF', '4.1.0'),
  29. ('zlib', '1.2.11'),
  30. ('cURL', '7.72.0'),
  31. ('PCRE', '8.44'),
  32. ('PROJ', '7.2.0'),
  33. ('libgeotiff', '1.6.0'),
  34. ('SciPy-bundle', '2020.11'),
  35. ('HDF5', '1.10.7'),
  36. ]
  37. preconfigopts = "sed -e 's/-llapack/\$LIBLAPACK/g' -i.eb configure && "
  38. configopts = '--with-expat=$EBROOTEXPAT --with-libz=$EBROOTLIBZ'
  39. configopts += ' --without-hdf4 --with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF'
  40. configopts += ' --with-xml2=yes --with-geos=$EBROOTGEOS/bin/geos-config --with-jpeg=$EBROOTLIBJPEGMINTURBO'
  41. configopts += ' --with-png=$EBROOTLIBPNG --with-sqlite3=$EBROOTSQLITE --with-jasper=$EBROOTJASPER'
  42. configopts += ' --with-libtiff=$EBROOTLIBTIFF --with-pcre=$EBROOTPCRE --with-python=$EBROOTPYTHON/bin/python'
  43. configopts += ' --with-libgeotiff=$EBROOTLIBGEOTIFF'
  44. prebuildopts = 'export LDSHARED="$CC -shared" && '
  45. modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
  46. sanity_check_paths = {
  47. 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT],
  48. 'dirs': ['bin', 'include', 'lib/python%(pyshortver)s/site-packages']
  49. }
  50. sanity_check_commands = ["python -c 'from osgeo import gdal'"]
  51. moduleclass = 'data'