Skip to content

Commit ef55eeb

Browse files
setup update
1 parent 9f8b8b6 commit ef55eeb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

setup_data.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import glob
2424
import os
25+
import sys
2526

2627
from distutils.core import Extension
2728
from distutils.sysconfig import get_python_lib
@@ -60,11 +61,14 @@ def read(file_name):
6061
doc_path = os.path.join(source_path, 'doc', 'sphinx', 'source')
6162

6263
# 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 ''
6872

6973
####################################################################################################
7074

@@ -115,7 +119,7 @@ def read(file_name):
115119
# cf. http://pypi.python.org/pypi?%3Aaction=list_classifiers
116120
classifiers=[
117121
"Topic :: Software Development :: Version Control",
118-
"Intended Audience :: Developers",
122+
"Intended Audience :: Developers",
119123
"Development Status :: 5 - Production/Stable",
120124
"License :: OSI Approved :: GNU General Public License (GPL)",
121125
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)