diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2016-01-27 21:59:57 +0100 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-01-27 14:48:34 -0700 |
commit | 6ae1ff280b3a6c115fe468c79c5cf4f16f998f89 (patch) | |
tree | 93d408cede70f43ffa8ef3fe26ae9f87170601dd | |
parent | 6770f985b3663338d023dd707d43a6a53f530668 (diff) | |
download | numpy-6ae1ff280b3a6c115fe468c79c5cf4f16f998f89.tar.gz |
MAINT: warn in egg_info command if using setuptools.sdist.
Warn in numpy/distutils/command/egg_info.py if using setuptools.sdist.
See gh-7127 for details.
-rw-r--r-- | numpy/distutils/command/egg_info.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/distutils/command/egg_info.py b/numpy/distutils/command/egg_info.py index b7104de5b..972a27df3 100644 --- a/numpy/distutils/command/egg_info.py +++ b/numpy/distutils/command/egg_info.py @@ -1,9 +1,17 @@ from __future__ import division, absolute_import, print_function +import sys + from setuptools.command.egg_info import egg_info as _egg_info class egg_info(_egg_info): def run(self): + if 'sdist' in sys.argv: + import warnings + warnings.warn("`build_src` is being run, this may lead to missing " + "files in your sdist! See numpy issue gh-7127 for " + "details", UserWarning) + # We need to ensure that build_src has been executed in order to give # setuptools' egg_info command real filenames instead of functions which # generate files. |