diff options
| author | Philipp A <flying-sheep@web.de> | 2019-03-27 22:34:19 +0100 |
|---|---|---|
| committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-03-27 17:34:19 -0400 |
| commit | 868d8498bbccf63c274056959055800d02cac0d5 (patch) | |
| tree | 91853e58785edcf2b36c3f8309f5a83e96889dd3 /command/check.py | |
| parent | 4c6000461394d2a969c17b98ff7b64e7d6f6eee4 (diff) | |
| download | python-setuptools-git-868d8498bbccf63c274056959055800d02cac0d5.tar.gz | |
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
Diffstat (limited to 'command/check.py')
| -rw-r--r-- | command/check.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/command/check.py b/command/check.py index 7ebe707c..04c2f964 100644 --- a/command/check.py +++ b/command/check.py @@ -120,7 +120,8 @@ class check(Command): def _check_rst_data(self, data): """Returns warnings when the provided data doesn't compile.""" - source_path = StringIO() + # the include and csv_table directives need this to be a path + source_path = self.distribution.script_name or 'setup.py' parser = Parser() settings = frontend.OptionParser(components=(Parser,)).get_default_values() settings.tab_width = 4 |
