summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorBastian Venthur <bastian.venthur@flixbus.com>2019-05-15 12:20:25 +0200
committerBastian Venthur <bastian.venthur@flixbus.com>2019-05-15 12:20:25 +0200
commit314386fd5d4d0e925960f3e9982102095b9579c9 (patch)
treecfdaedd82a6baf20c77e06548d3f8966a52bb21e /setuptools/command
parent6310f99fd48cce9c01827bca8a7ffd82d2182a4c (diff)
downloadpython-setuptools-git-314386fd5d4d0e925960f3e9982102095b9579c9.tar.gz
Deprecated Eggsecutable Scripts
Closes: #1557
Diffstat (limited to 'setuptools/command')
-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 9f8df917..ae44eaa2 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' "