diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index a2417616cf80a..ea5dbbb43dde5 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -907,8 +907,7 @@ will only run the ``GroupByMethods`` benchmark defined in ``groupby.py``. You can also run the benchmark suite using the version of ``pandas`` already installed in your current Python environment. This can be -useful if you do not have virtualenv or conda, or are using the -``setup.py develop`` approach discussed above; for the in-place build +useful if you do not have virtualenv or conda; for the in-place build you need to set ``PYTHONPATH``, e.g. ``PYTHONPATH="$PWD/.." asv [remaining arguments]``. You can run benchmarks using an existing Python diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index c09e8595f0241..f5d2915759ec7 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -211,7 +211,6 @@ for :ref:`building pandas with GitPod `. Step 3: build and install pandas -------------------------------- -There are currently two supported ways of building pandas, pip/meson and setuptools(setup.py). Historically, pandas has only supported using setuptools to build pandas. However, this method requires a lot of convoluted code in setup.py and also has many issues in compiling pandas in parallel due to limitations in setuptools. @@ -255,28 +254,6 @@ With pip, it is possible to chain together multiple config settings. For example and building with debug symbols would look like ``-Cbuilddir="your builddir here" -Csetup-args="-Dbuildtype=debug"``. -**Compiling pandas with setup.py** - -.. note:: - This method of compiling pandas will be deprecated and removed very soon, as the meson backend matures. - -To compile pandas with setuptools, run:: - - python setup.py develop - -.. note:: - If pandas is already installed (via meson), you have to uninstall it first:: - - 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 - if you modified any file in ``pandas/_libs`` or if you did a fetch and merge from ``upstream/main``. - **Checking the build** At this point you should be able to import pandas from your locally built version::