From 1b0b91670df67e915119d3bb7ef4d9cc8b58b5a6 Mon Sep 17 00:00:00 2001 From: Alenka Frim Date: Tue, 4 Oct 2022 09:00:06 +0200 Subject: [PATCH 1/3] Add info about CONDA_DLL_SEARCH_MODIFICATION_ENABLE to the docs --- docs/source/developers/python.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/source/developers/python.rst b/docs/source/developers/python.rst index 3f33f2e68a7..7b22ab4c60f 100644 --- a/docs/source/developers/python.rst +++ b/docs/source/developers/python.rst @@ -558,6 +558,7 @@ Now, we can build pyarrow: $ pushd arrow\python $ set PYARROW_WITH_PARQUET=1 + $ set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1 $ python setup.py build_ext --inplace $ popd @@ -566,6 +567,14 @@ Now, we can build pyarrow: For building pyarrow, the above defined environment variables need to also be set. Remember this if to want to re-build ``pyarrow`` after your initial build. +.. note:: + + In case you are following this steps and are therefore using Python + version < 3.10 together with Conda, then ``CONDA_DLL_SEARCH_MODIFICATION_ENABLE`` + environment variable needs to be set to ``1``. + + If you are using Python 3.10 or newer then this environment variable is not needed. + Then run the unit tests with: .. code-block:: From 4054390d9d6b2e4731422b96a3f75d68d774e2c2 Mon Sep 17 00:00:00 2001 From: Alenka Frim Date: Tue, 4 Oct 2022 19:14:20 +0200 Subject: [PATCH 2/3] Update docs/source/developers/python.rst Co-authored-by: Joris Van den Bossche --- docs/source/developers/python.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/developers/python.rst b/docs/source/developers/python.rst index 7b22ab4c60f..f2f00fecad0 100644 --- a/docs/source/developers/python.rst +++ b/docs/source/developers/python.rst @@ -569,7 +569,7 @@ Now, we can build pyarrow: .. note:: - In case you are following this steps and are therefore using Python + In case you are following the above steps and are therefore using Python version < 3.10 together with Conda, then ``CONDA_DLL_SEARCH_MODIFICATION_ENABLE`` environment variable needs to be set to ``1``. From 067a9a2fa6d5cfb54e91da32592ded7c200fe7e3 Mon Sep 17 00:00:00 2001 From: Alenka Frim Date: Wed, 5 Oct 2022 08:36:04 +0200 Subject: [PATCH 3/3] Change text in the note --- docs/source/developers/python.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/source/developers/python.rst b/docs/source/developers/python.rst index f2f00fecad0..7e72c5c7265 100644 --- a/docs/source/developers/python.rst +++ b/docs/source/developers/python.rst @@ -569,11 +569,8 @@ Now, we can build pyarrow: .. note:: - In case you are following the above steps and are therefore using Python - version < 3.10 together with Conda, then ``CONDA_DLL_SEARCH_MODIFICATION_ENABLE`` - environment variable needs to be set to ``1``. - - If you are using Python 3.10 or newer then this environment variable is not needed. + If you are using Conda with Python 3.9 or earlier, you must + set ``CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1``. Then run the unit tests with: