summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2018-11-04 12:37:40 -0500
committerGitHub <noreply@github.com>2018-11-04 12:37:40 -0500
commit46af765c49f548523b8212f6e08e1edb12f22ab6 (patch)
tree106c81e047b38819f967c3079f379c1ffee0e664 /setuptools/command/egg_info.py
parent6ed6fe8def487aa77ee67d5ab3adcb2b66814831 (diff)
parentbff67db79c5c1f65cde5fea9919f121dacbc0e7b (diff)
downloadpython-setuptools-git-46af765c49f548523b8212f6e08e1edb12f22ab6.tar.gz
Merge pull request #1554 from shashanksingh28/egg_include_setup_py
Egg include setup py
Diffstat (limited to 'setuptools/command/egg_info.py')
-rw-r--r--setuptools/command/egg_info.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index e1022d31..d9fe3da3 100644
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -575,6 +575,12 @@ class manifest_maker(sdist):
self.filelist.extend(rcfiles)
elif os.path.exists(self.manifest):
self.read_manifest()
+
+ if os.path.exists("setup.py"):
+ # setup.py should be included by default, even if it's not
+ # the script called to create the sdist
+ self.filelist.append("setup.py")
+
ei_cmd = self.get_finalized_command('egg_info')
self.filelist.graft(ei_cmd.egg_info)