Skip to content
Snippets Groups Projects
Select Git revision
  • 7e6ea3892bd237221aeb6ed35da5b95823ff18a8
  • master default protected
  • tut_ring_allen
  • docs_furo
  • docs_reorder_cable_cell
  • docs_graphviz
  • docs_rtd_dev
  • ebrains_mirror
  • doc_recat
  • docs_spike_source
  • docs_sim_sample_clar
  • docs_pip_warn
  • github_template_updates
  • docs_fix_link
  • cv_default_and_doc_clarification
  • docs_add_numpy_req
  • readme_zenodo_05
  • install_python_fix
  • install_require_numpy
  • typofix_propetries
  • docs_recipe_lookup
  • v0.10.0
  • v0.10.1
  • v0.10.0-rc5
  • v0.10.0-rc4
  • v0.10.0-rc3
  • v0.10.0-rc2
  • v0.10.0-rc
  • v0.9.0
  • v0.9.0-rc
  • v0.8.1
  • v0.8
  • v0.8-rc
  • v0.7
  • v0.6
  • v0.5.2
  • v0.5.1
  • v0.5
  • v0.4
  • v0.3
  • v0.2.2
41 results

reduce_by_key.hpp

Blame
  • 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