(command.CommandList
  children: [
    (C {(Id.KW_Set set)} {(-e)})
    (C {(source)} {($ Id.VSub_DollarName '$TRAVIS_BUILD_DIR') (/ci/travis_env_common.sh)})
    (C {(export)} {(Id.Lit_VarLike 'ARROW_HOME=') ($ Id.VSub_DollarName '$ARROW_CPP_INSTALL')})
    (C {(export)} 
      {(Id.Lit_VarLike 'PARQUET_HOME=') ($ Id.VSub_DollarName '$ARROW_PYTHON_PARQUET_HOME')}
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'LD_LIBRARY_PATH=') ($ Id.VSub_DollarName '$ARROW_HOME') (/lib) 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$PARQUET_HOME') (/lib) (Id.Lit_Other ':') 
        ($ Id.VSub_DollarName '$LD_LIBRARY_PATH')
      }
    )
    (C {(export)} {(Id.Lit_VarLike 'PYARROW_CXXFLAGS=') (DQ (-Werror))})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:PYTHON_VERSION)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number '$1')}
          spids: [92]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:CONDA_ENV_DIR)
          op: assign_op.Equal
          rhs: 
            {($ Id.VSub_DollarName '$TRAVIS_BUILD_DIR') (/pyarrow-test-) 
              ($ Id.VSub_DollarName '$PYTHON_VERSION')
            }
          spids: [95]
        )
      ]
    )
    (C {(conda)} {(create)} {(-y)} {(-q)} {(-p)} {($ Id.VSub_DollarName '$CONDA_ENV_DIR')} 
      {(Id.Lit_VarLike 'python=') ($ Id.VSub_DollarName '$PYTHON_VERSION')} {(cmake)} {(curl)}
    )
    (C {(source)} {(activate)} {($ Id.VSub_DollarName '$CONDA_ENV_DIR')})
    (C {(python)} {(--version)})
    (C {(which)} {(python)})
    (C {(conda)} {(install)} {(-y)} {(-q)} {(pip)} {(nomkl)} {(cloudpickle)} 
      {(Id.Lit_VarLike 'numpy=') (1.13.1)} {(pandas)} {(cython)} {(ipython)} {(matplotlib)} {(numpydoc)} {(sphinx)} {(sphinx_bootstrap_theme)}
    )
    (C {(pushd)} {($ Id.VSub_DollarName '$ARROW_CPP_BUILD_DIR')})
    (C {(rm)} {(-rf)} {(Id.Lit_Star '*')})
    (C {(cmake)} {(-GNinja)} {(-DARROW_BUILD_TESTS) (Id.Lit_Equals '=') (off)} 
      {(-DARROW_BUILD_UTILITIES) (Id.Lit_Equals '=') (off)} {(-DARROW_PLASMA) (Id.Lit_Equals '=') (on)} {(-DARROW_PYTHON) (Id.Lit_Equals '=') (on)} 
      {(-DCMAKE_INSTALL_PREFIX) (Id.Lit_Equals '=') ($ Id.VSub_DollarName '$ARROW_HOME')} {($ Id.VSub_DollarName '$ARROW_CPP_DIR')}
    )
    (C {(ninja)})
    (C {(ninja)} {(install)})
    (C {(popd)})
    (C {(pushd)} {($ Id.VSub_DollarName '$ARROW_PYTHON_DIR')})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {(DQ ($ Id.VSub_DollarName '$PYTHON_VERSION'))} 
                  {(Id.Lit_Equals '=') (Id.Lit_Equals '=')} {(DQ (2.7))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:279)
            )
          ]
          action: [(C {(pip)} {(install)} {(futures)})]
          spids: [263 281]
        )
      ]
    )
    (C {(pip)} {(install)} {(-r)} {(requirements.txt)})
    (C {(python)} {(setup.py)} {(build_ext)} {(--with-parquet)} {(--with-plasma)} {(install)} 
      {(--single-version-externally-managed)} {(--record) (Id.Lit_Equals '=') (record.text)}
    )
    (C {(popd)})
    (C {(python)} {(-c)} {(DQ ('import pyarrow.parquet'))})
    (C {(python)} {(-c)} {(DQ ('import pyarrow.plasma'))})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                  {(Id.Lit_Equals '=') (Id.Lit_Equals '=')} {(DQ (linux))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:355)
            )
          ]
          action: [(C {(export)} {(Id.Lit_VarLike 'PLASMA_VALGRIND=') (1)})]
          spids: [341 357]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:PYARROW_PATH)
          op: assign_op.Equal
          rhs: 
            {($ Id.VSub_DollarName '$CONDA_PREFIX') (/lib/python) 
              ($ Id.VSub_DollarName '$PYTHON_VERSION') (/site-packages/pyarrow)
            }
          spids: [368]
        )
      ]
    )
    (C {(python)} {(-m)} {(pytest)} {(-vv)} {(-r)} {(sxX)} {(-s)} {($ Id.VSub_DollarName '$PYARROW_PATH')} 
      {(--parquet)}
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (command.AndOr
                  ops: [Id.Op_DAmp]
                  children: [
                    (C {(Id.Lit_LBracket '[')} {(DQ ($ Id.VSub_DollarName '$PYTHON_VERSION'))} 
                      {(Id.Lit_Equals '=') (Id.Lit_Equals '=')} {(DQ (3.6))} {(Id.Lit_RBracket ']')}
                    )
                    (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                      {(Id.Lit_Equals '=') (Id.Lit_Equals '=')} {(DQ (linux))} {(Id.Lit_RBracket ']')}
                    )
                  ]
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:424)
            )
          ]
          action: [
            (C {(pushd)} {($ Id.VSub_DollarName '$ARROW_PYTHON_DIR') (/doc)})
            (C {(sphinx-build)} {(-b)} {(html)} {(-d)} {(_build/doctrees)} {(-W)} {(source)} {(_build/html)})
            (C {(popd)})
          ]
          spids: [393 426]
        )
      ]
    )
  ]
)