Apache DataFusion SQL Query Engine
ARROW-6504: [Python][Packaging] Add mimalloc to conda packages for better performance
Krisztián Szűcse4cf5f51e405
diff --git a/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yaml b/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yamlindex dbbd5874da..19d88ca6a5 100644--- a/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yaml+++ b/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yaml@@ -1,5 +1,3 @@-CMAKE_GENERATOR:-- NMake Makefilesboost_cpp:- 1.70.0c_compiler:diff --git a/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yaml b/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yamlindex 7d2364ed94..da831c55ea 100644--- a/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yaml+++ b/dev/tasks/conda-recipes/.ci_support/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yaml@@ -1,5 +1,3 @@-CMAKE_GENERATOR:-- NMake Makefilesboost_cpp:- 1.70.0c_compiler:diff --git a/dev/tasks/conda-recipes/appveyor.win.yml b/dev/tasks/conda-recipes/appveyor.win.ymldeleted file mode 100644index 48252f271a..0000000000--- a/dev/tasks/conda-recipes/appveyor.win.yml+++ /dev/null@@ -1,66 +0,0 @@-environment:- ARROW_VERSION: {{ arrow.no_rc_version }}- # regardless of the python version we build against- CONDA_INSTALL_LOCN: C:\Miniconda36-x64--# We always use a 64-bit machine, but can build x86 distributions-# with the TARGET_ARCH variable.-platform:- - x64--install:- # Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)- - cmd: rmdir C:\cygwin /s /q-- # Add path, activate `conda` and update conda.- - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat- - cmd: conda.exe update --yes --quiet conda-- - cmd: set PYTHONUNBUFFERED=1-- # Configure the VM.- - cmd: conda.exe install -n root -c conda-forge --quiet --yes conda-forge-ci-setup=2 conda-build--# Skip .NET project specific build phase.-build: off--test_script:- # Clone arrow- - git clone --no-checkout {{ arrow.remote }} arrow || exit /B- - git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} || exit /B- - git -C arrow checkout FETCH_HEAD || exit /B- - git -C arrow submodule update --init --recursive || exit /B-- - pushd arrow\dev\tasks\conda-recipes-- # Configure conda- - cmd: setup_conda_rc .\ .\ .ci_support\{{ config }}.yaml- - cmd: run_conda_forge_build_setup-- # Build the recipes- - conda.exe build --output-folder . -m .ci_support\{{ config }}.yaml parquet-cpp arrow-cpp pyarrow-- # Rename artifacts- - pushd win-64- - for %%f in (*.tar.bz2) do (- set %%g=%%~nf- ren "%%f" "%%~ng-win-64.tar.bz2"- )--artifacts:- # this must be relative and child of the build C:\projects\crossbow directory- - path: arrow\dev\tasks\conda-recipes\win-64\*.tar.bz2--deploy:- release: {{ task.tag }}- provider: GitHub- auth_token: "%CROSSBOW_GITHUB_TOKEN%"- artifact: /.*\.tar\.bz2/- draft: false- prerelease: false- force_update: true--notifications:- - provider: Email- to:- - {{ job.email }}diff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.batindex 334a72b122..3702394416 100644--- a/dev/tasks/conda-recipes/arrow-cpp/bld.bat+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat@@ -1,7 +1,7 @@mkdir "%SRC_DIR%"\cpp\buildpushd "%SRC_DIR%"\cpp\build-cmake -G "%CMAKE_GENERATOR%" ^+cmake -G "Ninja" ^-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^-DARROW_DEPENDENCY_SOURCE=SYSTEM ^-DARROW_PACKAGE_PREFIX="%LIBRARY_PREFIX%" ^@@ -13,6 +13,7 @@ cmake -G "%CMAKE_GENERATOR%" ^-DARROW_BUILD_STATIC:BOOL=OFF ^-DCMAKE_BUILD_TYPE=release ^-DARROW_PYTHON:BOOL=ON ^+ -DARROW_MIMALLOC:BOOL=ON ^-DARROW_FLIGHT:BOOL=ON ^-DARROW_PARQUET:BOOL=ON ^-DARROW_GANDIVA:BOOL=ON ^@@ -20,6 +21,6 @@ cmake -G "%CMAKE_GENERATOR%" ^-DBoost_NO_BOOST_CMAKE=ON ^..-cmake --build . --target INSTALL --config Release+cmake --build . --target install --config Releasepopddiff --git a/dev/tasks/conda-recipes/arrow-cpp/build.sh b/dev/tasks/conda-recipes/arrow-cpp/build.shindex c113b4bfc2..03ca59aa99 100644--- a/dev/tasks/conda-recipes/arrow-cpp/build.sh+++ b/dev/tasks/conda-recipes/arrow-cpp/build.sh@@ -27,6 +27,7 @@ cmake \-DARROW_BUILD_TESTS=OFF \-DARROW_BUILD_STATIC=OFF \-DARROW_JEMALLOC=ON \+ -DARROW_MIMALLOC=ON \-DARROW_FLIGHT=ON \-DARROW_PLASMA=ON \-DARROW_PYTHON=ON \diff --git a/dev/tasks/conda-recipes/azure.win.yml b/dev/tasks/conda-recipes/azure.win.ymlindex 366f3edb64..8c5a9bd169 100755--- a/dev/tasks/conda-recipes/azure.win.yml+++ b/dev/tasks/conda-recipes/azure.win.yml@@ -9,103 +9,103 @@ jobs:CONDA_BLD_PATH: D:\\bld\\UPLOAD_PACKAGES: Falsesteps:- - script: |- choco install vcpython27 -fdv -y --debug- condition: contains(variables['CONFIG'], 'vs2008')- displayName: Install vcpython27.msi (if needed)-- - powershell: |- Set-PSDebug -Trace 1-- $batchcontent = @"- ECHO ON- SET vcpython=C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0-- DIR "%vcpython%"-- CALL "%vcpython%\vcvarsall.bat" %*- "@-- $batchDir = "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC"- $batchPath = "$batchDir" + "\vcvarsall.bat"- New-Item -Path $batchPath -ItemType "file" -Force-- Set-Content -Value $batchcontent -Path $batchPath-- Get-ChildItem -Path $batchDir-- Get-ChildItem -Path ($batchDir + '\..')-- condition: contains(variables['CONFIG'], 'vs2008')- displayName: Patch vs2008 (if needed)-- - task: CondaEnvironment@1- inputs:- packageSpecs: 'python=3.6 conda-build conda conda-forge::conda-forge-ci-setup=2' # Optional- installOptions: "-c conda-forge"- updateConda: false- displayName: Install conda-build and activate environment-- - script: set PYTHONUNBUFFERED=1-- - script: |- git clone --no-checkout {{ arrow.remote }} arrow- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}- git -C arrow checkout FETCH_HEAD- git -C arrow submodule update --init --recursive- displayName: Clone arrow-- # Configure the VM- - script: setup_conda_rc .\ .\ .\.ci_support\%CONFIG%.yaml- workingDirectory: arrow\dev\tasks\conda-recipes-- # Configure the VM.- - script: |- set "CI=azure"- run_conda_forge_build_setup- displayName: conda-forge build setup-- - script: |- rmdir C:\strawberry /s /q- continueOnError: true- displayName: remove strawberryperl-- # Special cased version setting some more things!- - script: |- conda.exe build arrow-cpp parquet-cpp pyarrow -m .ci_support\%CONFIG%.yaml- displayName: Build recipe (vs2008)- workingDirectory: arrow\dev\tasks\conda-recipes- env:- VS90COMNTOOLS: "C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\bin"- PYTHONUNBUFFERED: 1- condition: contains(variables['CONFIG'], 'vs2008')-- - script: |- conda.exe build arrow-cpp parquet-cpp pyarrow -m .ci_support\%CONFIG%.yaml- displayName: Build recipe- workingDirectory: arrow\dev\tasks\conda-recipes- env:- PYTHONUNBUFFERED: 1- condition: not(contains(variables['CONFIG'], 'vs2008'))-- # Using github release tries to find a common ancestor between the- # currently pushed tag and the latest tag of the github repository- # (don't know why).- # The tag upload took 43 minutes because of this scan, so use an- # alternative upload script.- - task: CondaEnvironment@1- inputs:- packageSpecs: 'click github3.py jinja2 jira pygit2 ruamel.yaml setuptools_scm toolz'- installOptions: '-c conda-forge'- updateConda: false- - script: |- python arrow/dev/tasks/crossbow.py \- --queue-path . \- --queue-remote {{ queue.remote_url }} \- upload-artifacts \- --sha {{ task.branch }} \- --tag {{ task.tag }} \- --pattern "arrow/dev/tasks/conda-recipes/build_artifacts/win-64/*.tar.bz2"- env:- CROSSBOW_GITHUB_TOKEN: $(CROSSBOW_GITHUB_TOKEN)- displayName: Upload packages as a GitHub release+ - script: |+ choco install vcpython27 -fdv -y --debug+ condition: contains(variables['CONFIG'], 'vs2008')+ displayName: Install vcpython27.msi (if needed)++ - powershell: |+ Set-PSDebug -Trace 1++ $batchcontent = @"+ ECHO ON+ SET vcpython=C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0++ DIR "%vcpython%"++ CALL "%vcpython%\vcvarsall.bat" %*+ "@++ $batchDir = "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC"+ $batchPath = "$batchDir" + "\vcvarsall.bat"+ New-Item -Path $batchPath -ItemType "file" -Force++ Set-Content -Value $batchcontent -Path $batchPath++ Get-ChildItem -Path $batchDir++ Get-ChildItem -Path ($batchDir + '\..')++ condition: contains(variables['CONFIG'], 'vs2008')+ displayName: Patch vs2008 (if needed)++ - task: CondaEnvironment@1+ inputs:+ packageSpecs: 'python=3.6 conda-build conda conda-forge::conda-forge-ci-setup=2' # Optional+ installOptions: "-c conda-forge"+ updateConda: false+ displayName: Install conda-build and activate environment++ - script: set PYTHONUNBUFFERED=1++ - script: |+ git clone --no-checkout {{ arrow.remote }} arrow+ git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}+ git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursive+ displayName: Clone arrow++ # Configure the VM+ - script: setup_conda_rc .\ .\ .\.ci_support\%CONFIG%.yaml+ workingDirectory: arrow\dev\tasks\conda-recipes++ # Configure the VM.+ - script: |+ set "CI=azure"+ run_conda_forge_build_setup+ displayName: conda-forge build setup++ - script: |+ rmdir C:\strawberry /s /q+ continueOnError: true+ displayName: remove strawberryperl++ # Special cased version setting some more things!+ - script: |+ conda.exe build arrow-cpp parquet-cpp pyarrow -m .ci_support\%CONFIG%.yaml+ displayName: Build recipe (vs2008)+ workingDirectory: arrow\dev\tasks\conda-recipes+ env:+ VS90COMNTOOLS: "C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\bin"+ PYTHONUNBUFFERED: 1+ condition: contains(variables['CONFIG'], 'vs2008')++ - script: |+ conda.exe build arrow-cpp parquet-cpp pyarrow -m .ci_support\%CONFIG%.yaml+ displayName: Build recipe+ workingDirectory: arrow\dev\tasks\conda-recipes+ env:+ PYTHONUNBUFFERED: 1+ condition: not(contains(variables['CONFIG'], 'vs2008'))++ # Using github release tries to find a common ancestor between the+ # currently pushed tag and the latest tag of the github repository+ # (don't know why).+ # The tag upload took 43 minutes because of this scan, so use an+ # alternative upload script.+ - task: CondaEnvironment@1+ inputs:+ packageSpecs: 'click github3.py jinja2 jira pygit2 ruamel.yaml setuptools_scm toolz'+ installOptions: '-c conda-forge'+ updateConda: false+ - script: |+ python arrow/dev/tasks/crossbow.py ^+ --queue-path . ^+ --queue-remote {{ queue.remote_url }} ^+ upload-artifacts ^+ --sha {{ task.branch }} ^+ --tag {{ task.tag }} ^+ --pattern "arrow/dev/tasks/conda-recipes/build_artifacts/win-64/*.tar.bz2"+ env:+ CROSSBOW_GITHUB_TOKEN: $(CROSSBOW_GITHUB_TOKEN)+ displayName: Upload packages as a GitHub releasediff --git a/dev/tasks/conda-recipes/pyarrow/bld.bat b/dev/tasks/conda-recipes/pyarrow/bld.batindex 9c7eaab1c7..023baa95c5 100644--- a/dev/tasks/conda-recipes/pyarrow/bld.bat+++ b/dev/tasks/conda-recipes/pyarrow/bld.bat@@ -18,6 +18,7 @@ SET PYARROW_BUILD_TYPE=releaseSET PYARROW_WITH_FLIGHT=1SET PYARROW_WITH_GANDIVA=1SET PYARROW_WITH_PARQUET=1+SET PYARROW_CMAKE_GENERATOR=Ninja"%PYTHON%" setup.py ^build_ext ^diff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yamlindex 7f57f2ace5..c970b1c4bf 100644--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml@@ -13,6 +13,7 @@ build:requirements:build:- cmake+ - ninja- {{ compiler('c') }}- {{ compiler('cxx') }}host:diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex cc429f176b..bb55a5af09 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -260,9 +260,9 @@ tasks:############################## Conda Windows ################################conda-win-vs2015-py36:- ci: appveyor+ ci: azureplatform: win- template: conda-recipes/appveyor.win.yml+ template: conda-recipes/azure.win.ymlparams:config: win_c_compilervs2015cxx_compilervs2015python3.6vc14artifacts:@@ -270,9 +270,9 @@ tasks:- pyarrow-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2conda-win-vs2015-py37:- ci: appveyor+ ci: azureplatform: win- template: conda-recipes/appveyor.win.yml+ template: conda-recipes/azure.win.ymlparams:config: win_c_compilervs2015cxx_compilervs2015python3.7vc14artifacts: