Skip to content

Commit c280178

Browse files
phofllithomas1
andauthored
DOC: Add note for building with setuptools (#53227)
* DOC: Add note for building with setuptools * Update doc/source/development/contributing_environment.rst Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> * Update --------- Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
1 parent 93f9ae0 commit c280178

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/development/contributing_environment.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ To compile pandas with setuptools, run::
249249

250250
python setup.py develop
251251

252+
.. note::
253+
If pandas is already installed (via meson), you have to uninstall it first::
254+
255+
python -m pip uninstall pandas
256+
257+
This is because python setup.py develop will not uninstall the loader script that ``meson-python``
258+
uses to import the extension from the build folder, which may cause errors such as an
259+
``FileNotFoundError`` to be raised.
260+
252261
.. note::
253262
You will need to repeat this step each time the C extensions change, for example
254263
if you modified any file in ``pandas/_libs`` or if you did a fetch and merge from ``upstream/main``.

0 commit comments

Comments
 (0)