Skip to content
Snippets Groups Projects
Commit e9126baa authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Add docs for InstallError.

parent 23f3f1ad
Branches
Tags
No related merge requests found
......@@ -1844,6 +1844,20 @@ dedicated process.
.. _prefix-objects:
Failing the build
----------------------
Sometimes you don't want a package to successfully install unless some
condition is true. You can explicitly cause the build to fail from
``install()`` by raising an ``InstallError``, for example:
.. code-block:: python
if spec.architecture.startswith('darwin'):
raise InstallError('This package does not build on Mac OS X!')
Prefix objects
----------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment