Skip to content

Commit

Permalink
Add recommended 'pip' command-line to meta.rst
Browse files Browse the repository at this point in the history
Follow-up of conda-forge#518
  • Loading branch information
nicoddemus committed Feb 9, 2018
1 parent 6142dc2 commit 284a3ac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/meta.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ dependency and rebuild the package you should increase the build number.
When the package version changes you should reset the build number to ``0``.


Single Version, Externally Managed
----------------------------------
Many packages use ``python setup.py install --single-version-externally-managed --record record.txt``
Use pip
-------
Normally packages should use ``python -m pip install --no-deps --ignore-installed .`` as the installation script
in the ``build/script`` section or ``bld.bat/build.sh`` scripts, while adding ``pip`` to the build requirements.

These options should be added to setup.py if a project uses setuptools. The goal is to prevent ``setuptools``
from creating an ``egg-info`` directory because it does not interact well with conda.
These options should be used to ensure a clean installation of the package without its dependencies and without
``egg-info`` directories, which do not interact well with conda.


Downloading extra sources and data files
Expand Down

0 comments on commit 284a3ac

Please sign in to comment.