Skip to content
Snippets Groups Projects
Select Git revision
  • 46517f4830685637e0cc15bfbd3fd3204b40b304
  • master default protected
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • gtest-1000-0.8.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
41 results

launch-a-live-network.md

Blame
    • Hugo Trentesaux's avatar
      5d8ba754
      prepare gtest runtime (!171) · 5d8ba754
      Hugo Trentesaux authored
      * fix gtest runtime type name
      
      * add embeded client spec and genesis in binary
      
      (this re-buids chainspecs at each run)
      
      * refac chainspecs generation
      
      * add what is needed to build gtest chainspecs
      5d8ba754
      History
      prepare gtest runtime (!171)
      Hugo Trentesaux authored
      * fix gtest runtime type name
      
      * add embeded client spec and genesis in binary
      
      (this re-buids chainspecs at each run)
      
      * refac chainspecs generation
      
      * add what is needed to build gtest chainspecs
    gen_resources.py 1.61 KiB
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    import sys, os, multiprocessing, subprocess
    
    resources = os.path.abspath(os.path.join(os.path.dirname(__file__), 'res'))
    gen_ui = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src', 'sakia', 'gen_resources'))
    gen_resources = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
    
    def convert_ui(args, **kwargs):
        subprocess.call(args, **kwargs)
    
    def build_resources():
        try:
            to_process = []
            for root, dirs, files in os.walk(resources):
                for f in files:
                    if f.endswith('.ui'):
                        source = os.path.join(root, f)
                        dest = os.path.join(gen_ui, os.path.splitext(os.path.basename(source))[0]+'_uic.py')
                        exe = 'pyuic5'
                    elif f.endswith('.qrc'):
                        source = os.path.join(root, f)
                        dest = os.path.join(gen_resources, os.path.splitext(os.path.basename(source))[0]+'_rc.py')
                        exe = 'pyrcc5'
                    else:
                        continue
                    print(source + " >> " + dest)
                    to_process.append([exe, '-o', dest, source])
    
            if sys.platform.startswith('win'):
                # doing this in parallel on windows will crash your computer
                [convert_ui(args, shell=True) for args in to_process]
            else:
                pool = multiprocessing.Pool()
                pool.map(convert_ui, to_process)
        except EnvironmentError:
            print("""\
    Warning: PyQt5 development utilities (pyuic5 and pyrcc5) not found
    Unable to install praxes' graphical user interface
    """)
    
    build_resources()