taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

configure.py (774B)


      1 # This configure.py file is places in the public domain.
      2 
      3 # Configure the build directory.
      4 # This file is invoked by './configure' and should usually not be invoked
      5 # manually.
      6 
      7 import talerbuildconfig as tbc
      8 import sys
      9 import shutil
     10 
     11 if getattr(tbc, "serialversion", 0) < 2:
     12     print("talerbuildconfig outdated, please update the build-common submodule and/or bootstrap")
     13     sys.exit(1)
     14 
     15 b = tbc.BuildConfig()
     16 b.enable_prefix()
     17 b.enable_configmk(dotfile=True)
     18 b.add_tool(tbc.PosixTool("make"))
     19 b.add_tool(tbc.PosixTool("zip"))
     20 b.add_tool(tbc.PosixTool("find"))
     21 b.add_tool(tbc.PosixTool("jq"))
     22 b.add_tool(tbc.NodeJsTool(version_spec=">=18"))
     23 b.add_tool(tbc.GenericTool("npm"))
     24 b.add_tool(tbc.GenericTool("pnpm", hint="Use 'sudo npm install -g pnpm' to install."))
     25 b.run()