@@ -59,7 +59,7 @@ feature, code or documentation improvement).
59
59
#. Install Cython _ and build the project with pip in :ref: `editable_mode `::
60
60
61
61
pip install cython
62
- pip install --verbose --editable .
62
+ pip install --verbose --no-build-isolation -- editable .
63
63
64
64
#. Check that the installed scikit-learn has a version number ending with
65
65
`.dev0 `::
@@ -71,8 +71,11 @@ feature, code or documentation improvement).
71
71
72
72
.. note ::
73
73
74
- You will have to re-run the ``pip install --editable . `` command every time
75
- the source code of a Cython file is updated (ending in `.pyx ` or `.pxd `).
74
+ You will have to run the ``pip install --no-build-isolation --editable . ``
75
+ command every time the source code of a Cython file is updated
76
+ (ending in `.pyx ` or `.pxd `). Use the ``--no-build-isolation `` flag to
77
+ avoid compiling the whole project each time, only the files you have
78
+ modified.
76
79
77
80
Dependencies
78
81
------------
@@ -152,9 +155,9 @@ Editable mode
152
155
153
156
If you run the development version, it is cumbersome to reinstall the package
154
157
each time you update the sources. Therefore it is recommended that you install
155
- in with the ``pip install --editable . `` command, which allows you to edit the
156
- code in-place. This builds the extension in place and creates a link to the
157
- development directory (see `the pip docs
158
+ in with the ``pip install --no-build-isolation -- editable . `` command, which
159
+ allows you to edit the code in-place. This builds the extension in place and
160
+ creates a link to the development directory (see `the pip docs
158
161
<https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs> `_).
159
162
160
163
This is fundamentally similar to using the command ``python setup.py develop ``
@@ -207,7 +210,7 @@ environment variables in the current command prompt.
207
210
208
211
Finally, build scikit-learn from this command prompt::
209
212
210
- pip install --verbose --editable .
213
+ pip install --verbose --no-build-isolation -- editable .
211
214
212
215
.. _compiler_macos :
213
216
@@ -240,7 +243,7 @@ scikit-learn from source::
240
243
"conda-forge::compilers>=1.0.4" conda-forge::llvm-openmp
241
244
conda activate sklearn-dev
242
245
make clean
243
- pip install --verbose --editable .
246
+ pip install --verbose --no-build-isolation -- editable .
244
247
245
248
.. note ::
246
249
@@ -302,7 +305,7 @@ Finally, build scikit-learn in verbose mode (to check for the presence of the
302
305
``-fopenmp `` flag in the compiler commands)::
303
306
304
307
make clean
305
- pip install --verbose --editable .
308
+ pip install --verbose --no-build-isolation -- editable .
306
309
307
310
.. _compiler_linux :
308
311
@@ -351,7 +354,7 @@ in the user folder using conda::
351
354
352
355
conda create -n sklearn-dev numpy scipy joblib cython conda-forge::compilers
353
356
conda activate sklearn-dev
354
- pip install --verbose --editable .
357
+ pip install --verbose --no-build-isolation -- editable .
355
358
356
359
.. _compiler_freebsd :
357
360
@@ -374,7 +377,7 @@ can set the environment variables to these locations::
374
377
375
378
Finally, build the package using the standard command::
376
379
377
- pip install --verbose --editable .
380
+ pip install --verbose --no-build-isolation -- editable .
378
381
379
382
For the upcoming FreeBSD 12.1 and 11.3 versions, OpenMP will be included in
380
383
the base system and these steps will not be necessary.
0 commit comments