| 1 |
import py |
| 2 |
from pypy.config import pypyoption |
| 3 |
from rpython.config import translationoption, config |
| 4 |
|
| 5 |
thisdir = py.path.local(__file__).dirpath() |
| 6 |
|
| 7 |
if __name__ == '__main__': |
| 8 |
c = config.Config(pypyoption.pypy_optiondescription).usemodules |
| 9 |
prefix = "objspace.usemodules" |
| 10 |
thisdir.join(prefix + ".rst").ensure() |
| 11 |
for p in c.getpaths(include_groups=True): |
| 12 |
basename = prefix + "." + p + ".rst" |
| 13 |
f = thisdir.join(basename) |
| 14 |
|
| 15 |
|
| 16 |
print "making docs for", p |
| 17 |
text = ["Use the '%s' module. " % (p, )] |
| 18 |
if p in pypyoption.essential_modules: |
| 19 |
text.append("This module is essential, included by default and should not be removed.") |
| 20 |
elif p in pypyoption.default_modules: |
| 21 |
text.append("This module is expected to be working and is included by default.") |
| 22 |
elif p in pypyoption.working_modules: |
| 23 |
text.append("This module is expected to be fully working.") |
| 24 |
text.append("") |
| 25 |
f.write("\n".join(text)) |
| 26 |
|
| 27 |
|