Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4724

[C++] Python not being built nor test under MinGW builds

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • C++

    Description

      Follow up to needed forĀ arrow/pull/3693/files.

      appveyor-cpp-build-mingw.bat has not yet enabled Python tests, need to revert,

      -DARROW_PYTHON=OFF

      Suggestion was to use,

      diff --git a/ci/appveyor-cpp-build-mingw.bat b/ci/appveyor-cpp-build-mingw.bat
      index 06e8b7f7..3a853031 100644
      --- a/ci/appveyor-cpp-build-mingw.bat
      +++ b/ci/appveyor-cpp-build-mingw.bat
      @@ -24,6 +24,15 @@ set INSTALL_DIR=%HOMEDRIVE%%HOMEPATH%\install
      set PATH=%INSTALL_DIR%\bin;%PATH%
      set PKG_CONFIG_PATH=%INSTALL_DIR%\lib\pkgconfig
      
      +for /f "usebackq" %%v in (`python3 -c "import sys; print('.'.join(map(str, sys.version_info[0:2])))"`) do (
      + set PYTHON_VERSION=%%v
      +)
      +
      +set PYTHONHOME=%MINGW_PREFIX%\lib\python%PYTHON_VERSION%
      +set PYTHONPATH=%PYTHONHOME%
      +set PYTHONPATH=%PYTHONPATH%;%MINGW_PREFIX%\lib\python%PYTHON_VERSION%\lib-dynload
      +set PYTHONPATH=%PYTHONPATH%;%MINGW_PREFIX%\lib\python%PYTHON_VERSION%\site-packages
      +
      

      However, this suggestion currently trigger a built error in Travis,

      [ 43%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/json-simple.cc.obj
      [ 44%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.obj
      [ 44%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/metadata-internal.cc.obj
      [ 45%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/reader.cc.obj
      [ 45%] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/writer.cc.obj
      [ 45%] Built target arrow_objlib
      make: *** [Makefile:141: all] Error 2
      C:\projects\arrow\cpp\build>goto scriptexit

      Therefore, additional investigation is needed.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              javierluraschi Javier Luraschi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m