8000 MAINT: warn in egg_info command if using setuptools.sdist. · numpy/numpy@dae1a38 · GitHub
[go: up one dir, main page]

Skip to content

Commit dae1a38

Browse files
Ralf Gommerscharris
authored andcommitted
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.
1 parent 7f5efd1 commit dae1a38

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

numpy/distutils/command/egg_info.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
from __future__ import division, absolute_import, print_function
22

3+
import sys
4+
35
from setuptools.command.egg_info import egg_info as _egg_info
46

57
class egg_info(_egg_info):
68
def run(self):
9+
if 'sdist' in sys.argv:
10+
import warnings
11+
warnings.warn("`build_src` is being run, this may lead to missing "
12+
"files in your sdist! See numpy issue gh-7127 for "
13+
"details", UserWarning)
14+
715
# We need to ensure that build_src has been executed in order to give
816
# setuptools' egg_info command real filenames instead of functions which
917
# generate files.

0 commit comments

Comments
 (0)
0