Skip to content

Commit 1ade31b

Browse files
phofllithomas1
authored andcommitted
DOC: Add note for building with setuptools (pandas-dev#53227)
* DOC: Add note for building with setuptools * Update doc/source/development/contributing_environment.rst Co-authored-by: Thomas Li <[email protected]> * Update --------- Co-authored-by: Thomas Li <[email protected]>
1 parent 26ed455 commit 1ade31b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/development/contributing_environment.rst

+9
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)