Skip to content

Commit

Permalink
Merge pull request #18348 from branfosj/20230719152543_new_pr_Arrow1100
Browse files Browse the repository at this point in the history
fix installation of Python bindings for recent Arrow easyconfigs by add `--no-build-isolation` to `pip install` command
  • Loading branch information
boegel authored Aug 1, 2023
2 parents 08d2bb5 + 2f61086 commit c60d52f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion easybuild/easyconfigs/a/Arrow/Arrow-11.0.0-gfbf-2022b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ local_install_pyarrow_cmds += "cd %(builddir)s/*arrow-%(version)s/python && expo
local_install_pyarrow_cmds += "sed -i 's/numpy==[0-9.]*/numpy/g' pyproject.toml && "
local_install_pyarrow_cmds += "Python3_ROOT_DIR=$EBROOTPYTHON "
local_install_pyarrow_cmds += "PYARROW_CMAKE_OPTIONS='-DZSTD_LIB=$EBROOTZSTD/lib/libzstd.%s ' " % SHLIB_EXT
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 pip install --prefix %(installdir)s ."
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "
local_install_pyarrow_cmds += "python -m pip install --prefix %(installdir)s --no-build-isolation ."
postinstallcmds = [local_install_pyarrow_cmds]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
Expand Down
3 changes: 2 additions & 1 deletion easybuild/easyconfigs/a/Arrow/Arrow-6.0.0-foss-2021a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ local_install_pyarrow_cmds = "export PKG_CONFIG_PATH=%(installdir)s/lib/pkgconfi
local_install_pyarrow_cmds += "export PYTHONPATH=%(installdir)s/lib/python%(pyshortver)s/site-packages:$PYTHONPATH && "
local_install_pyarrow_cmds += "cd %(builddir)s/*arrow-%(version)s/python && export XDG_CACHE_HOME=$TMPDIR && "
local_install_pyarrow_cmds += "sed -i 's/numpy==[0-9.]*/numpy/g' pyproject.toml && "
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 pip install --prefix %(installdir)s ."
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "
local_install_pyarrow_cmds += "python -m pip install --prefix %(installdir)s --no-build-isolation ."
postinstallcmds = [local_install_pyarrow_cmds]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
Expand Down
3 changes: 2 additions & 1 deletion easybuild/easyconfigs/a/Arrow/Arrow-6.0.0-foss-2021b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ local_install_pyarrow_cmds += "export PYTHONPATH=%(installdir)s/lib/python%(pysh
local_install_pyarrow_cmds += "cd %(builddir)s/*arrow-%(version)s/python && export XDG_CACHE_HOME=$TMPDIR && "
local_install_pyarrow_cmds += "sed -i 's/numpy==[0-9.]*/numpy/g' pyproject.toml && "
local_install_pyarrow_cmds += "Python3_ROOT_DIR=$EBROOTPYTHON "
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 pip install --prefix %(installdir)s ."
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "
local_install_pyarrow_cmds += "python -m pip install --prefix %(installdir)s --no-build-isolation ."
postinstallcmds = [local_install_pyarrow_cmds]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
Expand Down
3 changes: 2 additions & 1 deletion easybuild/easyconfigs/a/Arrow/Arrow-6.0.1-foss-2021a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ local_install_pyarrow_cmds = "export PKG_CONFIG_PATH=%(installdir)s/lib/pkgconfi
local_install_pyarrow_cmds += "export PYTHONPATH=%(installdir)s/lib/python%(pyshortver)s/site-packages:$PYTHONPATH && "
local_install_pyarrow_cmds += "cd %(builddir)s/*arrow-%(version)s/python && export XDG_CACHE_HOME=$TMPDIR && "
local_install_pyarrow_cmds += "sed -i 's/numpy==[0-9.]*/numpy/g' pyproject.toml && "
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 pip install --prefix %(installdir)s ."
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "
local_install_pyarrow_cmds += "python -m pip install --prefix %(installdir)s --no-build-isolation ."
postinstallcmds = [local_install_pyarrow_cmds]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
Expand Down
3 changes: 2 additions & 1 deletion easybuild/easyconfigs/a/Arrow/Arrow-8.0.0-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ local_install_pyarrow_cmds += "export PYTHONPATH=%(installdir)s/lib/python%(pysh
local_install_pyarrow_cmds += "cd %(builddir)s/*arrow-%(version)s/python && export XDG_CACHE_HOME=$TMPDIR && "
local_install_pyarrow_cmds += "sed -i 's/numpy==[0-9.]*/numpy/g' pyproject.toml && "
local_install_pyarrow_cmds += "Python3_ROOT_DIR=$EBROOTPYTHON "
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 pip install --prefix %(installdir)s ."
local_install_pyarrow_cmds += "PYARROW_WITH_DATASET=1 PYARROW_WITH_PARQUET=1 "
local_install_pyarrow_cmds += "python -m pip install --prefix %(installdir)s --no-build-isolation ."
postinstallcmds = [local_install_pyarrow_cmds]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
Expand Down

0 comments on commit c60d52f

Please sign in to comment.