diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2015-02-26 08:21:05 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2015-02-26 08:21:05 +0100 |
commit | f3ed080b04db9387d270bee2f99a90b44455a897 (patch) | |
tree | 5376258e0aded077a0377fd644dff62d00624963 | |
parent | f56c5b9672439758648f3f77db85e48dd79aa656 (diff) | |
download | setuptools-scm-f3ed080b04db9387d270bee2f99a90b44455a897.tar.gz |
fail in all install cases on fresh checkoutv1.2.0
-rw-r--r-- | setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -11,11 +11,16 @@ pip usage is recommended """ from __future__ import print_function import os +import sys import setuptools +PROBLEMATIC_COMMANDS = 'install', 'develop', 'easy_install', 'bdist_egg' if not os.path.isdir('setuptools_scm.egg-info'): print(__doc__) + if any(c in sys.argv for c in PROBLEMATIC_COMMANDS): + sys.exit('please run `python setup.py egg_info` first') + def scm_config(): from setuptools_scm.version import ( |