Commit 5525fef1359556f3921d5a8a6df481011a15c158
1 parent
43eabd0c
setup.py: added missing package zipfile27 (fixed issue #121)
Showing
1 changed file
with
5 additions
and
9 deletions
setup.py
| ... | ... | @@ -21,6 +21,7 @@ to install this package. |
| 21 | 21 | # 2016-07-19 v0.50 PL: - create CLI scripts using entry points (by 2*yo) |
| 22 | 22 | # 2016-07-29 PL: - use setuptools if available |
| 23 | 23 | # 2016-09-05 PL: - added more entry points |
| 24 | +# 2017-01-18 v0.51 PL: - added package zipfile27 (issue #121) | |
| 24 | 25 | |
| 25 | 26 | #--- TODO --------------------------------------------------------------------- |
| 26 | 27 | |
| ... | ... | @@ -80,6 +81,7 @@ packages=[ |
| 80 | 81 | 'oletools.thirdparty.pyparsing', |
| 81 | 82 | 'oletools.thirdparty.colorclass', |
| 82 | 83 | 'oletools.thirdparty.tablestream', |
| 84 | + 'oletools.thirdparty.zipfile27', | |
| 83 | 85 | ] |
| 84 | 86 | ##setupdir = '.' |
| 85 | 87 | ##package_dir={'': setupdir} |
| ... | ... | @@ -180,6 +182,9 @@ package_data={ |
| 180 | 182 | 'oletools.thirdparty.colorclass': [ |
| 181 | 183 | 'LICENSE.txt', |
| 182 | 184 | ], |
| 185 | + 'oletools.thirdparty.zipfile27': [ | |
| 186 | + 'LICENSE.txt', | |
| 187 | + ], | |
| 183 | 188 | # 'oletools.thirdparty.tablestream': [ |
| 184 | 189 | # 'LICENSE', 'README', |
| 185 | 190 | # ], |
| ... | ... | @@ -285,16 +290,7 @@ entry_points = { |
| 285 | 290 | # === MAIN ===================================================================== |
| 286 | 291 | |
| 287 | 292 | def main(): |
| 288 | - # TODO: remove this test once all tools are ported to Python 3 | |
| 289 | 293 | # TODO: warning about Python 2.6 |
| 290 | -# if sys.version >= '3.0': | |
| 291 | -# s = "Sorry, %s %s requires Python 2.x." | |
| 292 | -# print(s % (name, version)) | |
| 293 | -# sys.exit(1) | |
| 294 | -# ## if sys.version < required_python_version: | |
| 295 | -## s = "I'm sorry, but %s %s requires Python %s or later." | |
| 296 | -## print(s % (name, version, required_python_version)) | |
| 297 | -## sys.exit(1) | |
| 298 | 294 | ## # set default location for "data_files" to |
| 299 | 295 | ## # platform specific "site-packages" location |
| 300 | 296 | ## for scheme in list(INSTALL_SCHEMES.values()): | ... | ... |