diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-01-27 15:35:27 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-01-27 15:35:27 -0700 |
commit | 2b34f4bf652189e0415d5bf48ef7aa3294302871 (patch) | |
tree | 93d408cede70f43ffa8ef3fe26ae9f87170601dd /numpy | |
parent | cc2b0495118e4855acfeaea3253abf449f3e91dd (diff) | |
parent | 6ae1ff280b3a6c115fe468c79c5cf4f16f998f89 (diff) | |
download | numpy-2b34f4bf652189e0415d5bf48ef7aa3294302871.tar.gz |
Merge pull request #7131 from charris/fix-setuptools-sdist
Fix setuptools sdist
Diffstat (limited to 'numpy')
-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. |