GDAL-2.4.1-foss-2019a-Python-3.7.2.eb 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. easyblock = 'ConfigureMake'
  2. name = 'GDAL'
  3. version = '2.4.1'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'http://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': '2019a'}
  11. toolchainopts = {'usempi': True}
  12. source_urls = ['http://download.osgeo.org/gdal/%(version)s/']
  13. sources = [SOURCELOWER_TAR_XZ]
  14. dependencies = [
  15. ('Python', '3.7.2'),
  16. ('netCDF', '4.6.2'),
  17. ('expat', '2.2.6'),
  18. ('GEOS', '3.7.2', '-Python-%(pyver)s'),
  19. ('SQLite', '3.27.2'),
  20. ('libxml2', '2.9.8'),
  21. ('libpng', '1.6.36'),
  22. ('libjpeg-turbo', '2.0.2'),
  23. ('JasPer', '2.0.14'),
  24. ('LibTIFF', '4.0.10'),
  25. ('zlib', '1.2.11'),
  26. ('cURL', '7.63.0'),
  27. ('PCRE', '8.43'),
  28. ('PROJ', '5.2.0'),
  29. ('libgeotiff', '1.4.3'),
  30. ]
  31. configopts = '--with-expat=$EBROOTEXPAT --with-libz=$EBROOTLIBZ --with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF'
  32. configopts += ' --with-xml2=$EBROOTLIBXML2 --with-geos=$EBROOTGEOS/bin/geos-config --with-jpeg=$EBROOTLIBJPEGMINTURBO'
  33. configopts += ' --with-png=$EBROOTLIBPNG --with-sqlite3=$EBROOTSQLITE --with-jasper=$EBROOTJASPER'
  34. configopts += ' --with-libtiff=$EBROOTLIBTIFF --with-pcre=$EBROOTPCRE --with-python=$EBROOTPYTHON/bin/python'
  35. configopts += ' --with-libgeotiff=$EBROOTLIBGEOTIFF'
  36. modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
  37. sanity_check_paths = {
  38. 'files': ['lib/libgdal.a', 'lib/libgdal.%s' % SHLIB_EXT],
  39. 'dirs': ['bin', 'include', 'lib/python%(pyshortver)s/site-packages']
  40. }
  41. moduleclass = 'data'