mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
Write msvc build script that builds pyarrow
Change-Id: I15a65a05c747910c8b5157f4fde796b1ae66559c
This commit is contained in:
1 parent
a94c03a02f
commit
86f91d223c
2 files changed
+59
-9
No files matched your search
+7
-9
@@ -21,17 +21,15 @@ os: Visual Studio 2015
|
||||
environment:
|
||||
matrix:
|
||||
- GENERATOR: Visual Studio 14 2015 Win64
|
||||
# - GENERATOR: Visual Studio 14 2015
|
||||
PYTHON: "3.5"
|
||||
ARCH: "64"
|
||||
MSVC_DEFAULT_OPTIONS: ON
|
||||
BOOST_ROOT: C:\Libraries\boost_1_63_0
|
||||
BOOST_LIBRARYDIR: C:\Libraries\boost_1_63_0\lib64-msvc-14.0
|
||||
|
||||
build_script:
|
||||
- cd cpp
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -G "%GENERATOR%" -DARROW_CXXFLAGS="/WX" -DARROW_BOOST_USE_SHARED=OFF -DCMAKE_BUILD_TYPE=Release ..
|
||||
- cmake --build . --config Release
|
||||
init:
|
||||
- set MINICONDA=C:\Miniconda35-x64
|
||||
- set PATH=%MINICONDA%;%MINICONDA%/Scripts;%MINICONDA%/Library/bin;%PATH%
|
||||
|
||||
# test_script:
|
||||
- ctest -VV
|
||||
build_script:
|
||||
- call msvc-build.bat
|
||||
@@ -0,0 +1,52 @@
|
||||
@rem Licensed to the Apache Software Foundation (ASF) under one
|
||||
@rem or more contributor license agreements. See the NOTICE file
|
||||
@rem distributed with this work for additional information
|
||||
@rem regarding copyright ownership. The ASF licenses this file
|
||||
@rem to you under the Apache License, Version 2.0 (the
|
||||
@rem "License"); you may not use this file except in compliance
|
||||
@rem with the License. You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing,
|
||||
@rem software distributed under the License is distributed on an
|
||||
@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
@rem KIND, either express or implied. See the License for the
|
||||
@rem specific language governing permissions and limitations
|
||||
@rem under the License.
|
||||
|
||||
@echo on
|
||||
|
||||
set CONDA_ENV=C:\arrow-conda-env
|
||||
set ARROW_HOME=C:\arrow-install
|
||||
|
||||
conda create -p %CONDA_ENV% -q -y python=%PYTHON% six pytest setuptools numpy pandas
|
||||
call activate %CONDA_ENV%
|
||||
conda list
|
||||
|
||||
@rem Build and test Arrow C++ libraries
|
||||
|
||||
cd cpp
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "%GENERATOR%" ^
|
||||
-CCMAKE_INSTALL_PREFIX=%ARROW_HOME% ^
|
||||
-DARROW_BOOST_USE_SHARED=OFF ^
|
||||
-DCMAKE_BUILD_TYPE=Release ^
|
||||
-DARROW_CXXFLAGS="/WX" ^
|
||||
-DARROW_PYTHON=on ^
|
||||
..
|
||||
cmake --build . --target INSTALL --config Release
|
||||
|
||||
@rem Needed so python-test.exe works
|
||||
set PYTHONPATH=%CONDA_ENV%\Lib;%CONDA_ENV%\Lib\site-packages;%CONDA_ENV%\python35.zip;%CONDA_ENV%\DLLs;%CONDA_ENV%
|
||||
|
||||
ctest -VV
|
||||
|
||||
@rem Build and import pyarrow
|
||||
|
||||
set PATH=%ARROW_HOME%\bin;%PATH%
|
||||
|
||||
cd ..\python
|
||||
python setup.py build_ext --inplace
|
||||
python -c "import pyarrow"
|
||||
Reference in new issue
Block a user