aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-15 06:13:10 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-15 06:13:10 -0400
commit619e229c9777f0ee0851d8c5c94caaad7d89d434 (patch)
tree2013eec1df4def402792a3b932d904b714b7e493 /setuptools/command/bdist_egg.py
parentb0657c80db7891a9eca038199d5d4c2e2bafed03 (diff)
parente04c75ab906caadff4609ef34de8973c8e92eff8 (diff)
downloadexternal_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.tar.gz
external_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.tar.bz2
external_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.zip
Merge branch 'master' into docs/setup.cfg-only
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 98470f17..1b28d4c9 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -11,13 +11,14 @@ import os
import re
import textwrap
import marshal
+import warnings
from setuptools.extern import six
from pkg_resources import get_build_platform, Distribution, ensure_directory
from pkg_resources import EntryPoint
from setuptools.extension import Library
-from setuptools import Command
+from setuptools import Command, SetuptoolsDeprecationWarning
try:
# Python 2.7 or >=3.2
@@ -278,6 +279,12 @@ class bdist_egg(Command):
if ep is None:
return 'w' # not an eggsecutable, do it the usual way.
+ warnings.warn(
+ "Eggsecutables are deprecated and will be removed in a future "
+ "version.",
+ SetuptoolsDeprecationWarning
+ )
+
if not ep.attrs or ep.extras:
raise DistutilsSetupError(
"eggsecutable entry point (%r) cannot have 'extras' "