Skip to content

Commit 04f1978

Browse files
committed
Make the pip command-line more prominent
A colleague of mine missed the `.` so it seems better to have the command-line in its own code section, the same goes for `pip` as dependency which I missed sometimes myself.
1 parent d11dd7c commit 04f1978

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/meta.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,24 @@ When the package version changes you should reset the build number to ``0``.
169169

170170
Use pip
171171
-------
172-
Normally packages should use ``python -m pip install --no-deps --ignore-installed .`` as the installation script
173-
in the ``build/script`` section or ``bld.bat/build.sh`` scripts, while adding ``pip`` to the build requirements.
172+
Normally packages should use this line:
174173

175-
These options should be used to ensure a clean installation of the package without its dependencies and without
176-
``egg-info`` directories, which do not interact well with conda.
174+
.. code-block:: yaml
175+
176+
build:
177+
script: python -m pip install --no-deps --ignore-installed .
178+
179+
as the installation script in the ``meta.yml`` file or ``bld.bat/build.sh`` script files,
180+
while adding ``pip`` to the build requirements:
181+
182+
.. code-block:: yaml
183+
184+
requirements:
185+
build:
186+
- pip
187+
188+
These options should be used to ensure a clean installation of the package without its
189+
dependencies and without ``egg-info`` directories, which do not interact well with conda.
177190

178191

179192
Downloading extra sources and data files

0 commit comments

Comments
 (0)