|
22 | 22 |
|
23 | 23 | import glob |
24 | 24 | import os |
| 25 | +import sys |
25 | 26 |
|
26 | 27 | from distutils.core import Extension |
27 | 28 | from distutils.sysconfig import get_python_lib |
@@ -60,11 +61,14 @@ def read(file_name): |
60 | 61 | doc_path = os.path.join(source_path, 'doc', 'sphinx', 'source') |
61 | 62 |
|
62 | 63 | # Read and merge includes |
63 | | - with open(absolut_file_name) as f: |
64 | | - lines = f.readlines() |
65 | | - text = merge_include(lines, doc_path) |
66 | | - |
67 | | - return text |
| 64 | + if os.path.exists(absolut_file_name): |
| 65 | + with open(absolut_file_name) as f: |
| 66 | + lines = f.readlines() |
| 67 | + text = merge_include(lines, doc_path) |
| 68 | + return text |
| 69 | + else: |
| 70 | + sys.stderr.write("WARNING: README {} not found\n".format(absolut_file_name)) |
| 71 | + return '' |
68 | 72 |
|
69 | 73 | #################################################################################################### |
70 | 74 |
|
@@ -115,7 +119,7 @@ def read(file_name): |
115 | 119 | # cf. http://pypi.python.org/pypi?%3Aaction=list_classifiers |
116 | 120 | classifiers=[ |
117 | 121 | "Topic :: Software Development :: Version Control", |
118 | | - "Intended Audience :: Developers", |
| 122 | + "Intended Audience :: Developers", |
119 | 123 | "Development Status :: 5 - Production/Stable", |
120 | 124 | "License :: OSI Approved :: GNU General Public License (GPL)", |
121 | 125 | "Operating System :: OS Independent", |
|
0 commit comments