You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2016/08/18 02:44:27 UTC

[02/11] incubator-hawq git commit: HAWQ-838. Replace python module paramiko with pexpect

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/.gitignore
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/.gitignore b/tools/bin/pythonSrc/ptyprocess-0.5.1/.gitignore
new file mode 100644
index 0000000..4b46c26
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/.gitignore
@@ -0,0 +1,7 @@
+__pycache__
+*.pyc
+
+/build/
+/dist/
+MANIFEST
+docs/_build/

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/.travis.yml
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/.travis.yml b/tools/bin/pythonSrc/ptyprocess-0.5.1/.travis.yml
new file mode 100644
index 0000000..26cb472
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/.travis.yml
@@ -0,0 +1,8 @@
+language: python
+python:
+  - "2.7"
+  - "3.3"
+  - "3.4"
+# command to run tests
+script: py.test --verbose --verbose
+sudo: False

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/LICENSE
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/LICENSE b/tools/bin/pythonSrc/ptyprocess-0.5.1/LICENSE
new file mode 100644
index 0000000..9c77274
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/LICENSE
@@ -0,0 +1,16 @@
+Ptyprocess is under the ISC license, as code derived from Pexpect.
+    http://opensource.org/licenses/ISC
+
+Copyright (c) 2013-2014, Pexpect development team
+Copyright (c) 2012, Noah Spurrier <no...@noah.org>
+
+PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE
+WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE COPYRIGHT NOTICE
+AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. THE SOFTWARE IS PROVIDED
+"AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
+SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/README.rst
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/README.rst b/tools/bin/pythonSrc/ptyprocess-0.5.1/README.rst
new file mode 100644
index 0000000..b928e86
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/README.rst
@@ -0,0 +1,15 @@
+Launch a subprocess in a pseudo terminal (pty), and interact with both the
+process and its pty.
+
+Sometimes, piping stdin and stdout is not enough. There might be a password
+prompt that doesn't read from stdin, output that changes when it's going to a
+pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
+If you need to automate these things, running the process in a pseudo terminal
+(pty) is the answer.
+
+Interface::
+
+    p = PtyProcessUnicode.spawn(['python'])
+    p.read(20)
+    p.write('6+6\n')
+    p.read(20)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/Makefile
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/Makefile b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/Makefile
new file mode 100644
index 0000000..265a1a4
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/Makefile
@@ -0,0 +1,177 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = _build
+
+# User-friendly check for sphinx-build
+ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
+$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
+endif
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  texinfo    to make Texinfo files"
+	@echo "  info       to make Texinfo files and run them through makeinfo"
+	@echo "  gettext    to make PO message catalogs"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  xml        to make Docutils-native XML files"
+	@echo "  pseudoxml  to make pseudoxml-XML files for display purposes"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Ptyprocess.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Ptyprocess.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/Ptyprocess"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Ptyprocess"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	$(MAKE) -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+latexpdfja:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through platex and dvipdfmx..."
+	$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+	@echo
+	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+texinfo:
+	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+	@echo
+	@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+	@echo "Run \`make' in that directory to run these through makeinfo" \
+	      "(use \`make info' here to do that automatically)."
+
+info:
+	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+	@echo "Running Texinfo files through makeinfo..."
+	make -C $(BUILDDIR)/texinfo info
+	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+gettext:
+	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+	@echo
+	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."
+
+xml:
+	$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
+	@echo
+	@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
+
+pseudoxml:
+	$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
+	@echo
+	@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/api.rst
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/api.rst b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/api.rst
new file mode 100644
index 0000000..05f7f90
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/api.rst
@@ -0,0 +1,10 @@
+Ptyprocess API
+==============
+
+.. module:: ptyprocess
+
+.. autoclass:: PtyProcess
+
+   .. automethod:: spawn
+
+.. autoclass:: PtyProcessUnicode

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/conf.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/conf.py b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/conf.py
new file mode 100644
index 0000000..da2296d
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/conf.py
@@ -0,0 +1,266 @@
+# -*- coding: utf-8 -*-
+#
+# Ptyprocess documentation build configuration file, created by
+# sphinx-quickstart on Mon Oct 13 11:03:02 2014.
+#
+# This file is execfile()d with the current directory set to its
+# containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys
+import os
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration ------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+# ones.
+extensions = [
+    'sphinx.ext.autodoc',
+    'sphinx.ext.intersphinx',
+    'sphinx.ext.viewcode',
+]
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'Ptyprocess'
+copyright = u'2014, Thomas Kluyver'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '0.5'
+# The full version, including alpha/beta/rc tags.
+release = version + '.1'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = ['_build']
+
+# The reST default role (used for this markup: `text`) to use for all
+# documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+# If true, keep warnings as "system message" paragraphs in the built documents.
+#keep_warnings = False
+
+
+# -- Options for HTML output ----------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# Add any extra paths that contain custom files (such as robots.txt or
+# .htaccess) here, relative to this directory. These files are copied
+# directly to the root of the documentation.
+#html_extra_path = []
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'Ptyprocessdoc'
+
+
+# -- Options for LaTeX output ---------------------------------------------
+
+latex_elements = {
+# The paper size ('letterpaper' or 'a4paper').
+#'papersize': 'letterpaper',
+
+# The font size ('10pt', '11pt' or '12pt').
+#'pointsize': '10pt',
+
+# Additional stuff for the LaTeX preamble.
+#'preamble': '',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title,
+#  author, documentclass [howto, manual, or own class]).
+latex_documents = [
+  ('index', 'Ptyprocess.tex', u'Ptyprocess Documentation',
+   u'Thomas Kluyver', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output ---------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('index', 'ptyprocess', u'Ptyprocess Documentation',
+     [u'Thomas Kluyver'], 1)
+]
+
+# If true, show URL addresses after external links.
+#man_show_urls = False
+
+
+# -- Options for Texinfo output -------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+#  dir menu entry, description, category)
+texinfo_documents = [
+  ('index', 'Ptyprocess', u'Ptyprocess Documentation',
+   u'Thomas Kluyver', 'Ptyprocess', 'One line description of project.',
+   'Miscellaneous'),
+]
+
+# Documents to append as an appendix to all manuals.
+#texinfo_appendices = []
+
+# If false, no module index is generated.
+#texinfo_domain_indices = True
+
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
+#texinfo_show_urls = 'footnote'
+
+# If true, do not generate a @detailmenu in the "Top" node's menu.
+#texinfo_no_detailmenu = False
+
+
+# Example configuration for intersphinx: refer to the Python standard library.
+intersphinx_mapping = {'http://docs.python.org/': None}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.png
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.png b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.png
new file mode 100644
index 0000000..d78f8a3
Binary files /dev/null and b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.png differ

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.svg
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.svg b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.svg
new file mode 100644
index 0000000..457f376
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/images/pty_vs_popen.svg
@@ -0,0 +1,759 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="554.44196"
+   height="327.38452"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="pty_vs_popen.svg">
+  <defs
+     id="defs4">
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="SquareM"
+       style="overflow:visible">
+      <path
+         id="path3838"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Lstart"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Lstart"
+       style="overflow:visible">
+      <path
+         id="path3783"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="matrix(1.1,0,0,1.1,1.1,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Tail"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Tail"
+       style="overflow:visible">
+      <g
+         id="g3801"
+         transform="scale(-1.2,-1.2)">
+        <path
+           id="path3803"
+           d="M -3.8048674,-3.9585227 0.54352094,0"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+        <path
+           id="path3805"
+           d="M -1.2866832,-3.9585227 3.0617053,0"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+        <path
+           id="path3807"
+           d="M 1.3053582,-3.9585227 5.6537466,0"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+        <path
+           id="path3809"
+           d="M -3.8048674,4.1775838 0.54352094,0.21974226"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+        <path
+           id="path3811"
+           d="M -1.2866832,4.1775838 3.0617053,0.21974226"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+        <path
+           id="path3813"
+           d="M 1.3053582,4.1775838 5.6537466,0.21974226"
+           style="fill:none;stroke:#000000;stroke-width:0.80000001;stroke-linecap:round"
+           inkscape:connector-curvature="0" />
+      </g>
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lstart"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lstart"
+       style="overflow:visible">
+      <path
+         id="path3765"
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="matrix(0.8,0,0,0.8,10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Lend"
+       style="overflow:visible">
+      <path
+         id="path3786"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lend"
+       style="overflow:visible">
+      <path
+         id="path3768"
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Lend-9"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path3786-2"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="matrix(-1.1,0,0,-1.1,-1.1,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Lend-6"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path3786-27"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="matrix(-1.1,0,0,-1.1,-1.1,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="SquareM-5"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path3838-7"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker10742"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10744"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker10746"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10748"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker10750"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10752"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker10754"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10756"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+    <marker
+       inkscape:stockid="SquareM"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker10758"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10760"
+         d="M -5,-5 -5,5 5,5 5,-5 -5,-5 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="scale(0.4,0.4)" />
+    </marker>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.98994949"
+     inkscape:cx="77.797977"
+     inkscape:cy="137.24456"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1301"
+     inkscape:window-height="744"
+     inkscape:window-x="65"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1"
+     fit-margin-top="1"
+     fit-margin-left="1"
+     fit-margin-right="1"
+     fit-margin-bottom="1"
+     units="cm" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-40.758533,29.820888)">
+    <g
+       id="g11880">
+      <a
+         style="fill:#b380ff"
+         id="a6328">
+        <path
+           sodipodi:type="arc"
+           style="fill:#b380ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           id="path4575"
+           sodipodi:cx="160.71428"
+           sodipodi:cy="222.89789"
+           sodipodi:rx="41.07143"
+           sodipodi:ry="25.535715"
+           d="m 201.78571,222.89789 c 0,14.10298 -18.38831,25.53571 -41.07143,25.53571 -22.68313,0 -41.07143,-11.43273 -41.07143,-25.53571 0,-14.10299 18.3883,-25.53572 41.07143,-25.53572 22.68312,0 41.07143,11.43273 41.07143,25.53572 z"
+           transform="translate(-4.6428572,12.857143)" />
+      </a>
+      <text
+         sodipodi:linespacing="125%"
+         id="text10591"
+         y="240.97427"
+         x="138.65004"
+         style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           y="240.97427"
+           x="138.65004"
+           id="tspan10593"
+           sodipodi:role="line">Child</tspan></text>
+      <g
+         id="g10626">
+        <path
+           sodipodi:type="arc"
+           style="fill:#b380ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           id="path4575-2"
+           sodipodi:cx="160.71428"
+           sodipodi:cy="222.89789"
+           sodipodi:rx="41.07143"
+           sodipodi:ry="25.535715"
+           d="m 201.78571,222.89789 c 0,14.10298 -18.38831,25.53571 -41.07143,25.53571 -22.68313,0 -41.07143,-11.43273 -41.07143,-25.53571 0,-14.10299 18.3883,-25.53572 41.07143,-25.53572 22.68312,0 41.07143,11.43273 41.07143,25.53572 z"
+           transform="translate(2.6428639,-191.24999)" />
+        <text
+           xml:space="preserve"
+           style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+           x="140.40549"
+           y="36.651806"
+           id="text6334"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan6336"
+             x="140.40549"
+             y="36.651806">Parent</tspan></text>
+      </g>
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path2991"
+         d="m 196.72731,244.88337 c 67.0421,-0.73967 67.7774,-97.99531 67.7774,-97.99531"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-mid:none;marker-end:none" />
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path2991-7"
+         d="m 196.14285,226.15435 c 43.35572,-25.82886 35.12946,-81.02577 35.12946,-81.02577"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-mid:none;marker-end:none" />
+      <a
+         id="a6331">
+        <path
+           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-end:none"
+           d="M 115.87982,226.83468 C 83.964646,190.58994 84.459212,146.54858 84.459212,146.54858"
+           id="path2991-7-8"
+           inkscape:connector-curvature="0"
+           sodipodi:nodetypes="cc" />
+      </a>
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path5637"
+         d="M 138.92857,54.147895 C 93.997282,79.826286 84.654646,124.86218 84.654646,124.86218"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-end:none" />
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path5641"
+         d="M 263.9496,124.76501 C 252.52103,80.836439 194.64286,49.147895 194.64286,49.147895"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#SquareM)" />
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path5643"
+         d="M 232.25054,123.75485 C 221.88288,81.1682 185.35714,54.147895 185.35714,54.147895"
+         style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#SquareM)" />
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245"
+         y="240.57648"
+         x="90"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="240.57648"
+           x="90"
+           id="tspan6247"
+           sodipodi:role="line">stdin</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-8"
+         y="213.07455"
+         x="184.47076"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           id="tspan6270"
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="213.07455"
+           x="184.47076"
+           sodipodi:role="line">stdout</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-8-8"
+         y="262.00311"
+         x="192.32663"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           id="tspan6298"
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="262.00311"
+           x="192.32663"
+           sodipodi:role="line">stderr</tspan></text>
+      <g
+         transform="translate(18,0)"
+         id="g11773">
+        <g
+           id="g11763">
+          <rect
+             y="120.8597"
+             x="58.558922"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7"
+             style="fill:#ff8080;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6308"
+             y="129.96561"
+             x="63.277264"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="129.96561"
+               x="63.277264"
+               id="tspan6310"
+               sodipodi:role="line">w</tspan></text>
+        </g>
+        <g
+           id="g11768">
+          <rect
+             y="135.43114"
+             x="58.558922"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7-4"
+             style="fill:#b3b3b3;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6304"
+             y="144.58977"
+             x="64.540932"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="144.58977"
+               x="64.540932"
+               id="tspan6306"
+               sodipodi:role="line">r</tspan></text>
+        </g>
+      </g>
+      <g
+         transform="translate(54,-16)"
+         id="g10674">
+        <g
+           id="g10664"
+           transform="translate(0,29.14287)">
+          <rect
+             y="121.72949"
+             x="168.7959"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7-0"
+             style="fill:#ff8080;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6308-1"
+             y="130.8354"
+             x="173.51424"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="130.8354"
+               x="173.51424"
+               id="tspan6310-7"
+               sodipodi:role="line">w</tspan></text>
+        </g>
+        <g
+           id="g10669">
+          <rect
+             y="136.30093"
+             x="168.7959"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7-4-7"
+             style="fill:#b3b3b3;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6304-5"
+             y="145.45956"
+             x="174.77791"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="145.45956"
+               x="174.77791"
+               id="tspan6306-6"
+               sodipodi:role="line">r</tspan></text>
+        </g>
+      </g>
+      <g
+         transform="translate(86.857134,-15.571435)"
+         id="g10674-6">
+        <g
+           id="g10664-6"
+           transform="translate(0,29.14287)">
+          <rect
+             y="121.72949"
+             x="168.7959"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7-0-5"
+             style="fill:#ff8080;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6308-1-9"
+             y="130.8354"
+             x="173.51424"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="130.8354"
+               x="173.51424"
+               id="tspan6310-7-6"
+               sodipodi:role="line">w</tspan></text>
+        </g>
+        <g
+           id="g10669-5">
+          <rect
+             y="136.30093"
+             x="168.7959"
+             height="13.836793"
+             width="15.97965"
+             id="rect4573-0-7-4-7-4"
+             style="fill:#b3b3b3;fill-rule:evenodd;stroke:#000000;stroke-width:0.73463506px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6304-5-3"
+             y="145.45956"
+             x="174.77791"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="145.45956"
+               x="174.77791"
+               id="tspan6306-6-1"
+               sodipodi:role="line">r</tspan></text>
+        </g>
+      </g>
+      <text
+         sodipodi:linespacing="125%"
+         id="text10726"
+         y="139.6479"
+         x="135.03683"
+         style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           style="font-size:16px;font-weight:bold;-inkscape-font-specification:Sans Bold"
+           y="139.6479"
+           x="135.03683"
+           id="tspan10728"
+           sodipodi:role="line">Popen</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-8-89"
+         y="158.43169"
+         x="234.46947"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
+         xml:space="preserve"><tspan
+           id="tspan6270-24"
+           style="font-size:9px;font-style:normal;-inkscape-font-specification:Sans"
+           y="158.43169"
+           x="234.46947"
+           sodipodi:role="line">pipes</tspan></text>
+    </g>
+    <g
+       id="g11847"
+       transform="translate(-10,0.39179)">
+      <a
+         style="fill:#b380ff"
+         id="a6328-0"
+         transform="translate(233.85132,-0.39179)">
+        <path
+           sodipodi:type="arc"
+           style="fill:#b380ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           id="path4575-8"
+           sodipodi:cx="160.71428"
+           sodipodi:cy="222.89789"
+           sodipodi:rx="41.07143"
+           sodipodi:ry="25.535715"
+           d="m 201.78571,222.89789 c 0,14.10298 -18.38831,25.53571 -41.07143,25.53571 -22.68313,0 -41.07143,-11.43273 -41.07143,-25.53571 0,-14.10299 18.3883,-25.53572 41.07143,-25.53572 22.68312,0 41.07143,11.43273 41.07143,25.53572 z"
+           transform="translate(-4.6428572,12.857143)" />
+      </a>
+      <text
+         sodipodi:linespacing="125%"
+         id="text10591-3"
+         y="240.5825"
+         x="372.50137"
+         style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           y="240.5825"
+           x="372.50137"
+           id="tspan10593-2"
+           sodipodi:role="line">Child</tspan></text>
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path11075"
+         d="m 397.80427,110.64896 0,-52.85714"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:none;marker-end:url(#marker10758)" />
+      <g
+         id="g10626-5"
+         transform="translate(233.85132,-0.39179)">
+        <path
+           sodipodi:type="arc"
+           style="fill:#b380ff;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           id="path4575-2-4"
+           sodipodi:cx="160.71428"
+           sodipodi:cy="222.89789"
+           sodipodi:rx="41.07143"
+           sodipodi:ry="25.535715"
+           d="m 201.78571,222.89789 c 0,14.10298 -18.38831,25.53571 -41.07143,25.53571 -22.68313,0 -41.07143,-11.43273 -41.07143,-25.53571 0,-14.10299 18.3883,-25.53572 41.07143,-25.53572 22.68312,0 41.07143,11.43273 41.07143,25.53572 z"
+           transform="translate(2.6428639,-191.24999)" />
+        <text
+           xml:space="preserve"
+           style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+           x="140.40549"
+           y="36.651806"
+           id="text6334-0"
+           sodipodi:linespacing="125%"><tspan
+             sodipodi:role="line"
+             id="tspan6336-9"
+             x="140.40549"
+             y="36.651806">Parent</tspan></text>
+      </g>
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path2991-4"
+         d="m 430.57864,244.49159 c 72.59794,2.79586 4.037,-103.77087 -17.74871,-113.05659"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-mid:none;marker-end:none" />
+      <path
+         sodipodi:nodetypes="cc"
+         inkscape:connector-curvature="0"
+         id="path2991-7-87"
+         d="m 429.99418,225.76257 c 42.23788,-26.36983 -30.60585,-91.62802 -30.60585,-91.62802"
+         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-mid:none;marker-end:none" />
+      <a
+         id="a6331-7"
+         transform="translate(233.85132,-0.39179)">
+        <path
+           style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#SquareM);marker-end:none"
+           d="m 115.87982,226.83468 c -50.09792,-32.20413 30.963,-94.8423 30.963,-94.8423"
+           id="path2991-7-8-4"
+           inkscape:connector-curvature="0"
+           sodipodi:nodetypes="cc" />
+      </a>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-6"
+         y="240.18468"
+         x="323.85132"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="240.18468"
+           x="323.85132"
+           id="tspan6247-3"
+           sodipodi:role="line">stdin</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-8-6"
+         y="207.68279"
+         x="410.10779"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           id="tspan6270-2"
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="207.68279"
+           x="410.10779"
+           sodipodi:role="line">stdout</tspan></text>
+      <text
+         sodipodi:linespacing="125%"
+         id="text6245-8-8-1"
+         y="261.61133"
+         x="426.17795"
+         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           id="tspan6298-3"
+           style="font-size:9px;font-style:italic;-inkscape-font-specification:Sans Italic"
+           y="261.61133"
+           x="426.17795"
+           sodipodi:role="line">stderr</tspan></text>
+      <g
+         transform="translate(227.5656,-301.02546)"
+         id="g11065">
+        <g
+           id="g11055">
+          <rect
+             y="421.34998"
+             x="147.24721"
+             height="13.362738"
+             width="44.791309"
+             id="rect4573-0-7-0-55"
+             style="fill:#5599ff;fill-rule:evenodd;stroke:#000000;stroke-width:0.73500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6308-1-6"
+             y="431.01376"
+             x="159.1624"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="431.01376"
+               x="159.1624"
+               id="tspan6310-7-9"
+               sodipodi:role="line">slave</tspan></text>
+        </g>
+        <g
+           id="g11060">
+          <rect
+             y="407.25223"
+             x="147.24721"
+             height="13.362738"
+             width="44.791309"
+             id="rect4573-0-7-0-55-9"
+             style="fill:#80ffb3;fill-rule:evenodd;stroke:#000000;stroke-width:0.73500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+          <text
+             sodipodi:linespacing="125%"
+             id="text6308-1-6-7"
+             y="416.68555"
+             x="155.16631"
+             style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+             xml:space="preserve"><tspan
+               y="416.68555"
+               x="155.16631"
+               id="tspan6310-7-9-7"
+               sodipodi:role="line">master</tspan></text>
+        </g>
+      </g>
+      <text
+         sodipodi:linespacing="125%"
+         id="text10726-9"
+         y="116.71899"
+         x="429.1268"
+         style="font-size:8px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+         xml:space="preserve"><tspan
+           style="font-size:16px;font-weight:bold;-inkscape-font-specification:Sans Bold"
+           y="116.71899"
+           x="429.1268"
+           id="tspan10728-7"
+           sodipodi:role="line">Pseudoterminal</tspan><tspan
+           id="tspan11761"
+           style="font-size:16px;font-weight:bold;-inkscape-font-specification:Sans Bold"
+           y="136.71899"
+           x="429.1268"
+           sodipodi:role="line">(pty)</tspan></text>
+    </g>
+  </g>
+</svg>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/index.rst
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/index.rst b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/index.rst
new file mode 100644
index 0000000..ae73700
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/docs/index.rst
@@ -0,0 +1,53 @@
+Ptyprocess
+==========
+
+.. include:: ../README.rst
+
+Contents:
+
+.. toctree::
+   :maxdepth: 2
+
+   api
+
+What is a pty?
+--------------
+
+A pty is a kernel-level object which processes can write data to and read data
+from, a bit like a pipe.
+
+Unlike a pipe, data moves through a single pty in both directions. When you use
+a program in a shell pipeline, or with :class:`subprocess.Popen` in Python, up
+to three pipes are created for the process's standard streams (stdin, stdout
+and stderr). When you run a program using ptyprocess, all three of its standard
+streams are connected to a single pty:
+
+.. image:: images/pty_vs_popen.png
+
+A pty also does more than a pipe. It keeps track of the window size (rows and
+columns of characters) and notifies child processes (with a SIGWINCH signal)
+when it changes. In *cooked mode*, it does some processing of data sent from the
+parent process, so for instance the byte ``03`` (entered as Ctrl-C) will cause
+SIGINT to be sent to the child process.
+
+Many command line programs behave differently if they detect that stdin or stdout
+is connected to a terminal instead of a pipe (using 
+`isatty() <http://linux.die.net/man/3/isatty>`_), because this normally means
+that they're being used interactively by a human user.
+They may format output differently (e.g. ``ls`` lists files in columns)
+or prompt the user to confirm actions.
+When you run these programs in ptyprocess, they will exhibit their 'interactive'
+behaviour, instead of the 'pipe' behaviour you'll see using ``Popen()``.
+
+.. seealso::
+
+   `The TTY demystified <http://www.linusakesson.net/programming/tty/>`_
+     Detailed article by Linus Akesson
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/flit.ini
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/flit.ini b/tools/bin/pythonSrc/ptyprocess-0.5.1/flit.ini
new file mode 100644
index 0000000..27928ca
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/flit.ini
@@ -0,0 +1,17 @@
+[metadata]
+module = ptyprocess
+author = Thomas Kluyver
+author-email = thomas@kluyver.me.uk
+home-page = https://github.com/pexpect/ptyprocess
+description-file = README.rst
+classifiers = Development Status :: 5 - Production/Stable
+    Environment :: Console
+    Intended Audience :: Developers
+    Intended Audience :: System Administrators
+    License :: OSI Approved :: ISC License (ISCL)
+    Operating System :: POSIX
+    Operating System :: MacOS :: MacOS X
+    Programming Language :: Python
+    Programming Language :: Python :: 2.7
+    Programming Language :: Python :: 3
+    Topic :: Terminals

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/__init__.py b/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/__init__.py
new file mode 100644
index 0000000..c831e41
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/__init__.py
@@ -0,0 +1,4 @@
+"""Run a subprocess in a pseudo terminal"""
+from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError
+
+__version__ = '0.5.1'

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a1a2f2c5/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/_fork_pty.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/_fork_pty.py b/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/_fork_pty.py
new file mode 100644
index 0000000..d00eb65
--- /dev/null
+++ b/tools/bin/pythonSrc/ptyprocess-0.5.1/ptyprocess/_fork_pty.py
@@ -0,0 +1,77 @@
+"""Substitute for the forkpty system call, to support Solaris.
+"""
+import os
+import errno
+
+from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD)
+
+def fork_pty():
+    '''This implements a substitute for the forkpty system call. This
+    should be more portable than the pty.fork() function. Specifically,
+    this should work on Solaris.
+
+    Modified 10.06.05 by Geoff Marshall: Implemented __fork_pty() method to
+    resolve the issue with Python's pty.fork() not supporting Solaris,
+    particularly ssh. Based on patch to posixmodule.c authored by Noah
+    Spurrier::
+
+        http://mail.python.org/pipermail/python-dev/2003-May/035281.html
+
+    '''
+
+    parent_fd, child_fd = os.openpty()
+    if parent_fd < 0 or child_fd < 0:
+        raise OSError("os.openpty() failed")
+
+    pid = os.fork()
+    if pid == CHILD:
+        # Child.
+        os.close(parent_fd)
+        pty_make_controlling_tty(child_fd)
+
+        os.dup2(child_fd, STDIN_FILENO)
+        os.dup2(child_fd, STDOUT_FILENO)
+        os.dup2(child_fd, STDERR_FILENO)
+
+    else:
+        # Parent.
+        os.close(child_fd)
+
+    return pid, parent_fd
+
+def pty_make_controlling_tty(tty_fd):
+    '''This makes the pseudo-terminal the controlling tty. This should be
+    more portable than the pty.fork() function. Specifically, this should
+    work on Solaris. '''
+
+    child_name = os.ttyname(tty_fd)
+
+    # Disconnect from controlling tty, if any.  Raises OSError of ENXIO
+    # if there was no controlling tty to begin with, such as when
+    # executed by a cron(1) job.
+    try:
+        fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
+        os.close(fd)
+    except OSError as err:
+        if err.errno != errno.ENXIO:
+            raise
+
+    os.setsid()
+
+    # Verify we are disconnected from controlling tty by attempting to open
+    # it again.  We expect that OSError of ENXIO should always be raised.
+    try:
+        fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
+        os.close(fd)
+        raise ExceptionPexpect("OSError of errno.ENXIO should be raised.")
+    except OSError as err:
+        if err.errno != errno.ENXIO:
+            raise
+
+    # Verify we can open child pty.
+    fd = os.open(child_name, os.O_RDWR)
+    os.close(fd)
+
+    # Verify we now have a controlling tty.
+    fd = os.open("/dev/tty", os.O_WRONLY)
+    os.close(fd)
\ No newline at end of file