Skip to content
Snippets Groups Projects
Select Git revision
  • cadb07530ec282181e6140f95883b7fc72608310
  • master default protected
  • tuxmain/fix-change-owner-key
  • fix_picked_up_file_in_runtime_release
  • 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
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.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
41 results

chain_spec.rs

Blame
    • Hugo Trentesaux's avatar
      ca6c877e
      gtest genesis new format (!168) · ca6c877e
      Hugo Trentesaux authored
      * fix smith certification validity
      
      * get values of parameters
      
      * tuxmain review
      
      * add checks and improve formatting
      
      * improve genesis parsing
      
      adds info
      
      * fix json with new format
      
      * fix warnings
      
      * new gtest genesis format
      
      * get build working with gtest feature
      
      `cargo build --features gtest --no-default-features`
      
      * update lib.rs
      
      * update cargo.toml
      
      * add readme for runtimes
      ca6c877e
      History
      gtest genesis new format (!168)
      Hugo Trentesaux authored
      * fix smith certification validity
      
      * get values of parameters
      
      * tuxmain review
      
      * add checks and improve formatting
      
      * improve genesis parsing
      
      adds info
      
      * fix json with new format
      
      * fix warnings
      
      * new gtest genesis format
      
      * get build working with gtest feature
      
      `cargo build --features gtest --no-default-features`
      
      * update lib.rs
      
      * update cargo.toml
      
      * add readme for runtimes
    setup.py 3.44 KiB
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    
    # source d'inspiration: http://wiki.wxpython.org/cx_freeze
    
    import sys, os, subprocess, multiprocessing
    from cx_Freeze import setup, Executable
    from PyQt5 import QtCore
    
    #############################################################################
    # preparation des options
    sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
    
    print(sys.path)
    print("Environnement:")
    print(os.environ)
    includes = ["sip", "re", "json", "logging",
                "hashlib", "os", "urllib",
                "ucoinpy", "pylibscrypt"]
    exclude = ['.git']
    packages = ["libnacl", "encodings"]
    
    includefiles = []
    
    if sys.platform == "win32":
        app = QtCore.QCoreApplication(sys.argv)
        libEGL_path = ""
        libsodium_path = ""
        print(QtCore.QCoreApplication.libraryPaths())
        for path in QtCore.QCoreApplication.libraryPaths():
            if os.path.isfile(os.path.join(os.path.dirname(path), "libEGL.dll")):
                libEGL_path = os.path.join(os.path.dirname(path), "libEGL.dll")
    
        if 'CONDA_DEFAULT_ENV' in os.environ:
            # Check if we are in Conda env
            path = QtCore.QCoreApplication.libraryPaths()[0]
            libEGL_path = os.path.join(path, "Scripts", "libEGL.dll")
            libsodium_path = os.path.join(path, "Scripts", "libsodium.dll")
    
            files = lambda mypath: [ f for f in os.listdir(mypath) if os.path.isfile(os.path.join(mypath,f)) ]
            for f in files(os.path.join(path, "Scripts", "plugins", "platforms")):
                includefiles.append((os.path.join(path, "Scripts", "plugins", "platforms", f), os.path.join("platforms", f) ))
    
            for f in files(os.path.join(path, "Scripts", "plugins", "imageformats")):
                includefiles.append((os.path.join(path, "Scripts", "plugins", "imageformats", f), os.path.join("imageformats", f) ))
    
            for f in files(os.path.join(path, "Scripts", "plugins", "iconengines")):
                includefiles.append((os.path.join(path, "Scripts", "plugins", "iconengines", f), os.path.join("iconengines", f) ))
        includefiles.append(libEGL_path)
        includefiles.append(libsodium_path)
    elif sys.platform == "darwin":
        pass
    else:
        libsodium_path = ""
        print(QtCore.QCoreApplication.libraryPaths())
        # Check if we are in Conda env
        if 'CONDA_DEFAULT_ENV' in os.environ:
            libsodium_path = os.path.join(os.environ['CONDA_DEFAULT_ENV'], "lib",
                                          "libsodium.so.13")
            includefiles.append((libsodium_path, "libsodium.so.13"))
    
    print("Includes : ")
    print(includes)
    print("Excludes : ")
    print(exclude)
    print("Include files : ")
    print(includefiles)
    print("Packages : ")
    print(packages)
    print(sys.path)
    
    options = {"path": sys.path,
               "includes": includes,
               "include_files": includefiles,
               "excludes": exclude,
               "packages": packages,
               }
    
    #############################################################################
    # preparation des cibles
    base = None
    file_type=""
    icon="cutecoin.png"
    if sys.platform == "win32":
        base = "Win32GUI"
        file_type=".exe"
        icon="cutecoin.ico"
    
    target = Executable(
        script = "src/cutecoin/main.py",
        targetName="cutecoin"+file_type,
        base = base,
        icon = icon,
        )
    
    #############################################################################
    # creation du setup
    setup(
        name = "cutecoin",
        version = "0.11",
        description = "UCoin client",
        author = "Inso",
        options = {"build_exe": options},
        executables = [target]
        )