Explorar o código

Removed genpycode's manual-generating functionality

Josh Yelon %!s(int64=20) %!d(string=hai) anos
pai
achega
180ba05832
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      direct/src/ffi/DoGenPyCode.py

+ 0 - 13
direct/src/ffi/DoGenPyCode.py

@@ -40,7 +40,6 @@ Options:
   -O          no C++ comments or assertion statements
   -O          no C++ comments or assertion statements
   -n          Don't use squeezeTool to squeeze the result into one .pyz file
   -n          Don't use squeezeTool to squeeze the result into one .pyz file
   -s          Don't delete source files after squeezing
   -s          Don't delete source files after squeezing
-  -m          Generate the API reference manual as well
 
 
 Any additional names listed on the command line are taken to be names
 Any additional names listed on the command line are taken to be names
 of libraries that are to be instrumented.
 of libraries that are to be instrumented.
@@ -56,7 +55,6 @@ codeLibs = []
 etcPath = []
 etcPath = []
 doSqueeze = True
 doSqueeze = True
 deleteSourceAfterSqueeze = True
 deleteSourceAfterSqueeze = True
-generateManual = False
 native = False  # This is set by genPyCode.py
 native = False  # This is set by genPyCode.py
 
 
 def doGetopts():
 def doGetopts():
@@ -66,7 +64,6 @@ def doGetopts():
     global codeLibs
     global codeLibs
     global doSqueeze
     global doSqueeze
     global deleteSourceAfterSqueeze
     global deleteSourceAfterSqueeze
-    global generateManual
     global etcPath
     global etcPath
 
 
     # These options are allowed but are flagged as warnings (they are
     # These options are allowed but are flagged as warnings (they are
@@ -117,8 +114,6 @@ def doGetopts():
             doSqueeze = False
             doSqueeze = False
         elif (flag == '-s'):
         elif (flag == '-s'):
             deleteSourceAfterSqueeze = False
             deleteSourceAfterSqueeze = False
-        elif (flag == '-m'):
-            generateManual = True
         elif (flag in ['-g', '-t', '-p', '-o']):
         elif (flag in ['-g', '-t', '-p', '-o']):
             FFIConstants.notify.warning("option is deprecated: %s" % (flag))
             FFIConstants.notify.warning("option is deprecated: %s" % (flag))
             
             
@@ -244,7 +239,6 @@ def run():
     global codeLibs
     global codeLibs
     global doSqueeze
     global doSqueeze
     global deleteSourceAfterSqueeze
     global deleteSourceAfterSqueeze
-    global generateManual
     global etcPath
     global etcPath
 
 
     doGetopts()
     doGetopts()
@@ -262,10 +256,3 @@ def run():
         if doSqueeze:
         if doSqueeze:
             db.squeezeGeneratedCode(outputDir, deleteSourceAfterSqueeze)
             db.squeezeGeneratedCode(outputDir, deleteSourceAfterSqueeze)
 
 
-    if generateManual:
-        import epydoc.cli
-        import direct.directbase.DirectStart
-        mandir = os.path.join(outputDir,"docs")
-        cmd = ["epydoc","-n","Panda3D","-o",mandir,"--docformat","panda","--ignore-param-mismatch",directDir]+codeLibs
-        sys.argv = cmd
-        epydoc.cli.cli()