(CommandList
  children: [
    (FuncDef
      name: use_gcc
      body: 
        (BraceGroup
          children: [
            (C {(export)} {(Lit_VarLike 'CC=') (gcc-4.9)})
            (C {(export)} {(Lit_VarLike 'CXX=') (g) (Lit_Other '+') (Lit_Other '+') (-4.9)})
          ]
          spids: [57]
        )
      spids: [53 56]
    )
    (FuncDef
      name: use_clang
      body: 
        (BraceGroup
          children: [
            (C {(export)} {(Lit_VarLike 'CC=') (clang-4.0)})
            (C {(export)} {(Lit_VarLike 'CXX=') (clang) (Lit_Other '+') (Lit_Other '+') (-4.0)})
          ]
          spids: [81]
        )
      spids: [77 80]
    )
    (FuncDef
      name: bootstrap_python_env
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:PYTHON_VERSION)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [108]
                )
              ]
              spids: [108]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:CONDA_ENV_DIR)
                  op: Equal
                  rhs: {($ VSub_Name '$BUILD_DIR') (/pyarrow-test-) ($ VSub_Name '$PYTHON_VERSION')}
                  spids: [112]
                )
              ]
              spids: [112]
            )
            (C {(conda)} {(create)} {(-y)} {(-q)} {(-p)} {($ VSub_Name '$CONDA_ENV_DIR')} 
              {(Lit_VarLike 'python=') ($ VSub_Name '$PYTHON_VERSION')} {(cmake)} {(curl)}
            )
            (C {(source)} {(activate)} {($ VSub_Name '$CONDA_ENV_DIR')})
            (C {(python)} {(--version)})
            (C {(which)} {(python)})
            (C {(conda)} {(install)} {(-y)} {(-q)} {(nomkl)} {(pip)} {(numpy)} {(pandas)} {(cython)})
          ]
          spids: [105]
        )
      spids: [101 104]
    )
    (FuncDef
      name: build_pyarrow
      body: 
        (BraceGroup
          children: [
            (C {(pushd)} {($ VSub_Name '$ARROW_PYTHON_DIR')})
            (C {(pip)} {(install)} {(-r)} {(requirements.txt)})
            (C {(python)} {(setup.py)} {(build_ext)} {(--with-parquet)} {(--with-plasma)} {(install)} 
              {(--single-version-externally-managed)} {(--record) (Lit_Other '=') (record.text)}
            )
            (C {(popd)})
            (C {(python)} {(-c)} {(DQ ('import pyarrow.parquet'))})
            (C {(python)} {(-c)} {(DQ ('import pyarrow.plasma'))})
            (C {(export)} 
              {(Lit_VarLike 'PYARROW_PATH=') ($ VSub_Name '$CONDA_PREFIX') (/lib/python) 
                ($ VSub_Name '$PYTHON_VERSION') (/site-packages/pyarrow)
              }
            )
          ]
          spids: [187]
        )
      spids: [183 186]
    )
    (FuncDef
      name: build_arrow
      body: 
        (BraceGroup
          children: [
            (C {(mkdir)} {(-p)} {($ VSub_Name '$ARROW_CPP_BUILD_DIR')})
            (C {(pushd)} {($ VSub_Name '$ARROW_CPP_BUILD_DIR')})
            (C {(cmake)} {(-GNinja)} {(-DCMAKE_BUILD_TYPE) (Lit_Other '=') ($ VSub_Name '$BUILD_TYPE')} 
              {(-DCMAKE_INSTALL_PREFIX) (Lit_Other '=') ($ VSub_Name '$ARROW_HOME')} {(-DARROW_NO_DEPRECATED_API) (Lit_Other '=') (ON)} {(-DARROW_PYTHON) (Lit_Other '=') (ON)} 
              {(-DARROW_PLASMA) (Lit_Other '=') (ON)} {(-DARROW_BOOST_USE_SHARED) (Lit_Other '=') (off)} {($ VSub_Name '$ARROW_CPP_DIR')}
            )
            (C {(ninja)})
            (C {(ninja)} {(install)})
            (C {(popd)})
          ]
          spids: [267]
        )
      spids: [263 266]
    )
    (FuncDef
      name: build_parquet
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:PARQUET_DIR)
                  op: Equal
                  rhs: {($ VSub_Name '$BUILD_DIR') (/parquet)}
                  spids: [349]
                )
              ]
              spids: [349]
            )
            (C {(mkdir)} {(-p)} {($ VSub_Name '$PARQUET_DIR')})
            (C {(git)} {(clone)} {(https) (Lit_Other ':') (//github.com/apache/parquet-cpp.git)} 
              {($ VSub_Name '$PARQUET_DIR')}
            )
            (C {(pushd)} {($ VSub_Name '$PARQUET_DIR')})
            (C {(mkdir)} {(build-dir)})
            (C {(cd)} {(build-dir)})
            (C {(cmake)} {(-GNinja)} {(-DCMAKE_BUILD_TYPE) (Lit_Other '=') ($ VSub_Name '$BUILD_TYPE')} 
              {(-DCMAKE_INSTALL_PREFIX) (Lit_Other '=') ($ VSub_Name '$PARQUET_HOME')} {(-DPARQUET_BOOST_USE_SHARED) (Lit_Other '=') (off)} 
              {(-DPARQUET_BUILD_BENCHMARKS) (Lit_Other '=') (off)} {(-DPARQUET_BUILD_EXECUTABLES) (Lit_Other '=') (off)} {(-DPARQUET_BUILD_TESTS) (Lit_Other '=') (off)} 
              {(..)}
            )
            (C {(ninja)})
            (C {(ninja)} {(install)})
            (C {(popd)})
          ]
          spids: [346]
        )
      spids: [342 345]
    )
  ]
)