diff options
author | Shashank Singh <shashanksingh28@gmail.com> | 2018-10-28 12:47:43 -0400 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2018-11-02 20:30:54 -0400 |
commit | fcfe6ef3b7a49f68a9d732558ad80a7afe98aaa9 (patch) | |
tree | 037dc8a4234836947f4697b128ebc841765b10c8 /setuptools/command | |
parent | d3e08a321065f9c84ac923417f9d80ae510adaaf (diff) | |
download | external_python_setuptools-fcfe6ef3b7a49f68a9d732558ad80a7afe98aaa9.tar.gz external_python_setuptools-fcfe6ef3b7a49f68a9d732558ad80a7afe98aaa9.tar.bz2 external_python_setuptools-fcfe6ef3b7a49f68a9d732558ad80a7afe98aaa9.zip |
Add setup.py to egg-info by default
Fixes GH issue #1506
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/egg_info.py | 6 |
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) |