Skip to content
Snippets Groups Projects
Select Git revision
  • 2ece2b3756d2e220a7d70eb13e472b11792fe14d
  • master default protected
  • dev protected
  • dedal-py-39
  • ECM_testing
  • VT-109-restructure-spack
  • VT-87-Enabling-coverage-report-for-the-dedal-respository
  • VT-70-function-Migrate-Spack-env-setup-into-ESD-repo-with-buildcache
  • koutakia protected
  • oci_cache
  • image_testing
  • ebrains_testing
  • Dedal@0.9.1
  • Dedal@0.9.0
14 results

extract_current_pinnings.py

Blame
  • Andreas Baumbach's avatar
    Andreas Baumbach authored
    * drop +tensorflow variants from visionary-wafer as no building version
      of JAVA, bazel and tensorflow was found that was compatible with python2.7
    * drop Spikey views as the old qt dependencies do not build anymore and
      spikey has been deprecated
    
    Change-Id: Id46247689b6384e51b84790c1697abe1eac08e48
    a61e228f
    History
    extract_current_pinnings.py 693 B
    #!/usr/env/python
    
    ''''Util to extract a list of pinnings from the current container'''
    
    import yaml
    import argparse
    
    
    apps = ['wafer', 'dls', 'simulation', 'slurmviz']
    
    
    for app in apps:
        speclist = ''
        try:
            spec = yaml.load(open(f'/opt/spack_views/visionary-{app}/.spack/visionary-{app}/spec.yaml'))
            for singlespec in spec['spec'][1:]:
                for k, v in singlespec.items():
                    speclist += f'{k}@{v["version"]}\n'
    
            print(f'Writing dependency list "{spec-dep-{app}.list}"')
            with open(f'spec-dep-{app}.list', 'w') as f:
                f.write(speclist)
        except:
            print('Script must be run from within a container.')
            raise