Skip to content

Commit f2cbf4e

Browse files
authored
BLD: set inplace in setup.cfg (#37973)
1 parent b329b94 commit f2cbf4e

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ RUN conda env update -n base -f "$pandas_home/environment.yml"
4343

4444
# Build C extensions and pandas
4545
RUN cd "$pandas_home" \
46-
&& python setup.py build_ext --inplace -j 4 \
46+
&& python setup.py build_ext -j 4 \
4747
&& python -m pip install -e .

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ clean_pyc:
99
-find . -name '*.py[co]' -exec rm {} \;
1010

1111
build: clean_pyc
12-
python setup.py build_ext --inplace
12+
python setup.py build_ext
1313

1414
lint-diff:
1515
git diff upstream/master --name-only -- "*.py" | xargs flake8

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
. ~/virtualenvs/pandas-dev/bin/activate && \
4141
python -m pip install --no-deps -U pip wheel setuptools && \
4242
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
43-
python setup.py build_ext -q -i -j2 && \
43+
python setup.py build_ext -q -j2 && \
4444
python -m pip install --no-build-isolation -e . && \
4545
pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml"
4646
displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'

ci/azure/windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- bash: |
3535
source activate pandas-dev
3636
conda list
37-
python setup.py build_ext -q -i -j 4
37+
python setup.py build_ext -q -j 4
3838
python -m pip install --no-build-isolation -e .
3939
displayName: 'Build'
4040

ci/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ conda list pandas
131131
# Make sure any error below is reported as such
132132

133133
echo "[Build extensions]"
134-
python setup.py build_ext -q -i -j2
134+
python setup.py build_ext -q -j2
135135

136136
echo "[Updating pip]"
137137
python -m pip install --no-deps -U pip wheel setuptools

doc/source/development/contributing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ See https://www.jetbrains.com/help/pycharm/docker.html for details.
183183

184184
Note that you might need to rebuild the C extensions if/when you merge with upstream/master using::
185185

186-
python setup.py build_ext --inplace -j 4
186+
python setup.py build_ext -j 4
187187

188188
.. _contributing.dev_c:
189189

@@ -268,7 +268,7 @@ We'll now kick off a three-step process:
268268
source activate pandas-dev
269269
270270
# Build and install pandas
271-
python setup.py build_ext --inplace -j 4
271+
python setup.py build_ext -j 4
272272
python -m pip install -e . --no-build-isolation --no-use-pep517
273273
274274
At this point you should be able to import pandas from your locally built version::
@@ -315,7 +315,7 @@ You'll need to have at least Python 3.6.1 installed on your system.
315315
python -m pip install -r requirements-dev.txt
316316
317317
# Build and install pandas
318-
python setup.py build_ext --inplace -j 4
318+
python setup.py build_ext -j 4
319319
python -m pip install -e . --no-build-isolation --no-use-pep517
320320
321321
**Unix**/**macOS with pyenv**
@@ -339,7 +339,7 @@ Consult the docs for setting up pyenv `here <https://github.com/pyenv/pyenv>`__.
339339
python -m pip install -r requirements-dev.txt
340340
341341
# Build and install pandas
342-
python setup.py build_ext --inplace -j 4
342+
python setup.py build_ext -j 4
343343
python -m pip install -e . --no-build-isolation --no-use-pep517
344344
345345
**Windows**
@@ -365,7 +365,7 @@ should already exist.
365365
python -m pip install -r requirements-dev.txt
366366
367367
# Build and install pandas
368-
python setup.py build_ext --inplace -j 4
368+
python setup.py build_ext -j 4
369369
python -m pip install -e . --no-build-isolation --no-use-pep517
370370
371371
Creating a branch

pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
raise ImportError(
3434
f"C extension: {module} not built. If you want to import "
3535
"pandas from the source directory, you may need to run "
36-
"'python setup.py build_ext --inplace --force' to build the C extensions first."
36+
"'python setup.py build_ext --force' to build the C extensions first."
3737
) from e
3838

3939
from pandas._config import (

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
[build_ext]
3+
inplace = 1
4+
25
# See the docstring in versioneer.py for instructions. Note that you must
36
# re-run 'versioneer.py setup' after changing this section, and commit the
47
# resulting files.

0 commit comments

Comments
 (0)