Source

sphinx-contrib / make-ext.py

Diff from to

make-ext.py

     fp = open(os.path.join('_template', filename), 'r')
     tmp = string.Template(fp.read())
     fp.close()
-    fp = open(os.path.join(name, 'setup.py'), 'w')
+    fp = open(os.path.join(name, filename), 'w')
     fp.write(tmp.safe_substitute(**globals()))
     fp.close()