diff options
| author | FELD Boris <lothiraldan@gmail.com> | 2011-01-30 11:56:46 +0100 |
|---|---|---|
| committer | FELD Boris <lothiraldan@gmail.com> | 2011-01-30 11:56:46 +0100 |
| commit | 0cbe175fc060a25898bab4c7d54264f245f0db0d (patch) | |
| tree | 595290b5e9d462b2e43d0922944051d28228038d /distutils2 | |
| parent | 8e97c9393c53f75a4ee6e5d844169676510ffb95 (diff) | |
| download | disutils2-0cbe175fc060a25898bab4c7d54264f245f0db0d.tar.gz | |
No file that does not exists can be present in distribution.data_files.
Correct bugs in get_inputs in install_data.
Diffstat (limited to 'distutils2')
| -rw-r--r-- | distutils2/command/install_data.py | 2 | ||||
| -rw-r--r-- | distutils2/tests/test_command_sdist.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/distutils2/command/install_data.py b/distutils2/command/install_data.py index 59cf90e..8ef089d 100644 --- a/distutils2/command/install_data.py +++ b/distutils2/command/install_data.py @@ -66,7 +66,7 @@ class install_data(Command): return self.data_files.keys() def get_inputs(self): - return self.data_files or [] + return self.data_files.keys() def get_outputs(self): return self.outfiles diff --git a/distutils2/tests/test_command_sdist.py b/distutils2/tests/test_command_sdist.py index bf1c28c..90f826e 100644 --- a/distutils2/tests/test_command_sdist.py +++ b/distutils2/tests/test_command_sdist.py @@ -207,7 +207,6 @@ class SDistTestCase(support.TempdirManager, support.LoggingCatcher, dist.data_files = {'data/data.dt' : '{appdata}/data.dt', 'inroot.txt' : '{appdata}/inroot.txt', - 'notexisting' : '{appdata}/notexisting', 'some/file.txt' : '{appdata}/file.txt', 'some/other_file.txt' : '{appdata}/other_file.txt'} |
