From 78c72b71fc6329e2d30e018e7472c4c460b8139e Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Sun, 14 May 2023 18:08:20 +0200 Subject: [PATCH 1/3] DOC: Add note for building with setuptools --- doc/source/development/contributing_environment.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 8bc15d6968afc..f369c927d064f 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -249,6 +249,11 @@ To compile pandas with setuptools, run:: python setup.py develop +.. note:: + If pandas is already installed, you have to uninstall it first:: + + pip uninstall pandas + .. note:: You will need to repeat this step each time the C extensions change, for example if you modified any file in ``pandas/_libs`` or if you did a fetch and merge from ``upstream/main``. From ebc08be210b9a68b40eedfdd037497e521c1e419 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Wed, 17 May 2023 00:08:08 +0200 Subject: [PATCH 2/3] Update doc/source/development/contributing_environment.rst Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> --- doc/source/development/contributing_environment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index f369c927d064f..9923db805e224 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -250,7 +250,7 @@ To compile pandas with setuptools, run:: python setup.py develop .. note:: - If pandas is already installed, you have to uninstall it first:: + If pandas is already installed (via meson), you have to uninstall it first:: pip uninstall pandas From 3f1fbb1333a716bd4b7a9628066c7a0de8e8110b Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Wed, 17 May 2023 00:09:49 +0200 Subject: [PATCH 3/3] Update --- doc/source/development/contributing_environment.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 9923db805e224..fe8b533f1907d 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -252,7 +252,11 @@ To compile pandas with setuptools, run:: .. note:: If pandas is already installed (via meson), you have to uninstall it first:: - pip uninstall pandas + python -m pip uninstall pandas + +This is because python setup.py develop will not uninstall the loader script that ``meson-python`` +uses to import the extension from the build folder, which may cause errors such as an +``FileNotFoundError`` to be raised. .. note:: You will need to repeat this step each time the C extensions change, for example