From 089b0d09cd956f861b225b69a46672e387ff064f Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 31 Mar 2015 12:00:56 -0700 Subject: [PATCH] disable install from master while it's broken by The Big Split with informative note about `pip install -e` --- setup.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/setup.py b/setup.py index a2887bd74..a7679e6ae 100755 --- a/setup.py +++ b/setup.py @@ -225,6 +225,24 @@ setup_args['cmdclass'] = { 'jsversion' : JavascriptVersion, } +### Temporarily disable install while it's broken during the big split +from textwrap import dedent +from distutils.command.install import install + +class DisabledInstall(install): + def run(self): + msg = dedent(""" + While we are in the midst of The Big Split, + IPython cannot be installed from master. + You can use `pip install -e .` for an editable install, + which still works. + """) + print(msg, file=sys.stderr) + raise SystemExit(1) + +setup_args['cmdclass']['install'] = DisabledInstall + + #--------------------------------------------------------------------------- # Handle scripts, dependencies, and setuptools specific things #---------------------------------------------------------------------------