home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activepython / ActivePython-2.1.1.msi / Python21_PPM_PyPMHelps.py < prev    next >
Encoding:
Text File  |  2001-07-26  |  6.4 KB  |  199 lines

  1. # Copyright 2001 (C) ActiveState Tool Corp., All Rights Reserved.
  2. #
  3.  
  4. helpquerydb="""
  5. prints the fullpath to the database file the PyPPM uses.
  6. """
  7.  
  8. InstPackXML="""
  9. <PACKAGE NAME="%s">
  10. <LOCATION>%s</LOCATION>
  11. <INSTPACKLIST></INSTPACKLIST>
  12. <INSTROOT></INSTROOT>
  13. <INSTDATE>%s</INSTDATE>
  14. <INSTPPD>
  15. </INSTPPD>
  16. </PACKAGE>
  17. """
  18.  
  19. OptString="""
  20. <OPTIONS BUILDDIR="%s"
  21.  CLEAN="%s"
  22.  CONFIRM="%s"
  23.  DOWNLOADSTATUS="%s"
  24.  FORCEINSTALL="%s"
  25.  IGNORECASE="%s"
  26.  MORE="%s"
  27.  ROOT="%s"
  28.  TRACE="%s"
  29.  TRACEFILE="%s"
  30.  VERBOSE="%s"/>"""
  31.  
  32. helpgenconfig="""
  33.  ppm genconfig
  34.  
  35. This command will print a valid PPM config file (ppm.xml) to STDOUT.  This 
  36. can be useful if the PPM config file ever gets damaged leaving PPM
  37. unusable.
  38.  
  39. If required, this command should be run from a shell prompt:
  40.  
  41.     C:\Python\Lib> pyppm genconfig > ppm.xml
  42. """
  43.  
  44. helphelp="""
  45. Commands:
  46.          exit              - leave the program.
  47.          help [command]    - prints this screen, or help on 'command'.
  48.       install PACKAGES  - installs specified PACKAGES.
  49.     quit              - leave the program.
  50.     query [options]   - query information about installed packages.
  51.     search [options]  - search information about available packages.
  52.     set [options]     - set/display current options.
  53.     verify [options]  - verifies current install is up to date.
  54.     version           - displays PPM version number"""
  55.  
  56. helpinstall="""
  57.  ppm install [--location=location] package1 [... packageN]
  58.  
  59. Installs the specified software packages. Attempts to install from the 
  60. URL or directory 'location' if the '--location' option is specfied. 
  61.  
  62. The 'package' arguments may be either package names ('foo'), pathnames 
  63. (p:/packages/foo.ppd) or URLs (http://www.ActiveState.com/packages/foo.ppd)
  64. to specific PPD files.
  65.  
  66. In the case where a package name is specified, and the '--location'
  67. option is not used, ppm will refer to the default repository locations.
  68.  
  69. See also: 'confirm' option.
  70. """
  71.  
  72. helpquery= """ 
  73.  ppm query [--case|nocase] [--abstract|author] PATTERN
  74.  
  75. Searches for 'PATTERN' (a regular expression) in the name of any installed 
  76. package.  If a search is successful, information about the matching 
  77. package(s) is displayed.  If 'PATTERN' is omitted, information about
  78. all installed packages will be displayed.
  79.  
  80. If either '--abstract' or '--author' is specified, PATTERN will be 
  81. searched for in the <ABSTRACT> or <AUTHOR> tags of the installed packages.
  82.  
  83. The '--case' and '--nocase' options can be used to override the default
  84. case-sensitivity search settings.
  85.  
  86. See also: 'case' option.
  87. """
  88.  
  89. # XXX the following command is removed from this version of the ActivePython
  90. # PPM because we do not have it yet.
  91. # remove PACKAGES   - removes the specified PACKAGES from the system.
  92. helpremove=""" 
  93.  ppm remove package1 [... packageN]
  94.  
  95. Reads information from the PPD file for the named software package and
  96. removes the package from the system.
  97.  
  98. See also: 'confirm' option.
  99. """
  100.  
  101. helpsearch="""
  102.  ppm search [--case|nocase] [--abstract|author] PATTERN
  103.  
  104. Displays a list of any packages matching 'PATTERN' (a regular expression)
  105. available from the repository locations in the PPM data file.  If 'PATTERN' is
  106. omitted, information about all available packages will be displayed.
  107.  
  108. If either '--abstract' or '--author' is specified, PATTERN will be
  109. searched for in the <ABSTRACT> or <AUTHOR> tags of the available packages.
  110.  
  111. The '--case' and '--nocase' options can be used to override the default
  112. case-sensitivity search settings.
  113.  
  114. See also: 'case' option.
  115. """
  116.  
  117. helpset="""
  118. Sets or displays current options.  With no arguments, current option
  119. settings are displayed.
  120.  
  121. Available options:
  122.  
  123.     --ignorecase|-i [1|0]
  124.         - Sets case-sensitive searches.  If one of '1' or '0' is
  125.           not specified, the current setting is toggled.
  126.  
  127.     --clean|-c [1|0]
  128.         - Sets removal of temporary files from package's build 
  129.           area, on successful installation of a package.  If one of
  130.           '1' or '0' is not specified, the current setting is
  131.           toggled.
  132.  
  133.     --confirm|-o [1|0]
  134.         - Sets confirmation of 'install', 'remove' and 'upgrade'.
  135.           If one of '1' or '0' is not specified, the current
  136.           setting is toggled.
  137.  
  138.     --verbose|-v [1|0]
  139.         - Display additional package information for 'query' and
  140.           'search' commands.
  141.  
  142.     --downloadstatus|-d NUMBER
  143.         - If non-zero, updates the download status after each NUMBER 
  144.           of bytes transferred during an 'install'.  This can be
  145.           reassuring when installing a large package (e.g. Tk) over
  146.           a low-speed connection.
  147.  
  148.     --build|-b DIRECTORY
  149.         - Changes the package build directory to DIRECTORY.
  150.  
  151.     --root|-r DIRECTORY
  152.         - Changes the install root directory.  Packages will be
  153.           installed under this new root.
  154.  
  155.     --trace|-t NUMBER
  156.         - Tracing level--default is 1, maximum is 4, 0 indicates
  157.           no tracing.
  158.  
  159.     --tracefile|-a FILENAME
  160.         - File to contain tracing information, default is 'PPM.LOG'.
  161.  
  162.     --save|-s
  163.         - Saves the current options as default options for future
  164.           sessions.
  165. """
  166.  
  167. helpverify="""
  168.  ppm verify [--location=location] [--upgrade] [--force] [package1 ... packageN]
  169.  
  170. Verifies that the currently installed packages are up to date.  If no
  171. packages are specified as arguments, all installed packages will be verified.
  172.  
  173. If the '--upgrade' option is specified, any package for which an upgrade 
  174. is available will be upgraded.  
  175.  
  176. If the '--location' option is specified, upgrades will be looked for at 
  177. the specified URL or directory.
  178.  
  179. If the '--force' option is specified, all currently installed packages will 
  180. be reinstalled regardless of whether they are out of date or not.
  181.  
  182. See also: 'confirm' option.
  183. """
  184.  
  185. helpversion="""
  186. prints the version of the ActivePython Package Repository client. 
  187. """
  188.  
  189. configstr ="""
  190. <PPMCONFIG>
  191.     <PPMVER>2,1,3,0</PPMVER>
  192.     <PLATFORM CPU="x86" OSVALUE="%s" OSVERSION="0,0,0,0" />
  193.     <OPTIONS BUILDDIR="%s" CLEAN="1" CONFIRM="1" DOWNLOADSTATUS="16384" FORCEINSTALL="1" IGNORECASE="1" MORE="0" ROOT="%s" TRACE="0" TRACEFILE="" VERBOSE="1" />
  194.     <REPOSITORY LOCATION="http://www.ActiveState.com/cgibin/PyPPM/2.1/pyppmserver.pl?urn:/PyPPMServer" NAME="ActiveState Package Repository" SUMMARYFILE="fetch_summary"/>
  195.     <PPMPRECIOUS>Distutils;zipfile</PPMPRECIOUS>
  196. </PPMCONFIG>
  197. """
  198.  
  199.