PageRenderTime 27ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Lib/site-packages/setuptools-22.0.5.dist-info/DESCRIPTION.rst

https://gitlab.com/areema/myproject
ReStructuredText | 238 lines | 165 code | 73 blank | 0 comment | 0 complexity | 48681eef2ec4cf1e5ac74d1d97a558b1 MD5 | raw file
  1. ===============================
  2. Installing and Using Setuptools
  3. ===============================
  4. .. contents:: **Table of Contents**
  5. `Change History <https://pythonhosted.org/setuptools/history.html>`_.
  6. -------------------------
  7. Installation Instructions
  8. -------------------------
  9. The recommended way to bootstrap setuptools on any system is to download
  10. `ez_setup.py`_ and run it using the target Python environment. Different
  11. operating systems have different recommended techniques to accomplish this
  12. basic routine, so below are some examples to get you started.
  13. Setuptools requires Python 2.6 or later. To install setuptools
  14. on Python 2.4 or Python 2.5, use the `bootstrap script for Setuptools 1.x
  15. <https://raw.githubusercontent.com/pypa/setuptools/bootstrap-py24/ez_setup.py>`_.
  16. The link provided to ez_setup.py is a bookmark to bootstrap script for the
  17. latest known stable release.
  18. .. _ez_setup.py: https://bootstrap.pypa.io/ez_setup.py
  19. Windows (Powershell 3 or later)
  20. ===============================
  21. For best results, uninstall previous versions FIRST (see `Uninstalling`_).
  22. Using Windows 8 (which includes PowerShell 3) or earlier versions of Windows
  23. with PowerShell 3 installed, it's possible to install with one simple
  24. Powershell command. Start up Powershell and paste this command::
  25. > (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -
  26. You must start the Powershell with Administrative privileges or you may choose
  27. to install a user-local installation::
  28. > (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python - --user
  29. If you have Python 3.3 or later, you can use the ``py`` command to install to
  30. different Python versions. For example, to install to Python 3.3 if you have
  31. Python 2.7 installed::
  32. > (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | py -3 -
  33. The recommended way to install setuptools on Windows is to download
  34. `ez_setup.py`_ and run it. The script will download the appropriate
  35. distribution file and install it for you.
  36. Once installation is complete, you will find an ``easy_install`` program in
  37. your Python ``Scripts`` subdirectory. For simple invocation and best results,
  38. add this directory to your ``PATH`` environment variable, if it is not already
  39. present. If you did a user-local install, the ``Scripts`` subdirectory is
  40. ``$env:APPDATA\Python\Scripts``.
  41. Windows (simplified)
  42. ====================
  43. For Windows without PowerShell 3 or for installation without a command-line,
  44. download `ez_setup.py`_ using your preferred web browser or other technique
  45. and "run" that file.
  46. Unix (wget)
  47. ===========
  48. Most Linux distributions come with wget.
  49. Download `ez_setup.py`_ and run it using the target Python version. The script
  50. will download the appropriate version and install it for you::
  51. > wget https://bootstrap.pypa.io/ez_setup.py -O - | python
  52. Note that you will may need to invoke the command with superuser privileges to
  53. install to the system Python::
  54. > wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
  55. Alternatively, Setuptools may be installed to a user-local path::
  56. > wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user
  57. Note that on some older systems (noted on Debian 6 and CentOS 5 installations),
  58. `wget` may refuse to download `ez_setup.py`, complaining that the certificate common name `*.c.ssl.fastly.net`
  59. does not match the host name `bootstrap.pypa.io`. In addition, the `ez_setup.py` script may then encounter similar problems using
  60. `wget` internally to download `setuptools-x.y.zip`, complaining that the certificate common name of `www.python.org` does not match the
  61. host name `pypi.python.org`. Those are known issues, related to a bug in the older versions of `wget`
  62. (see `Issue 59 <https://bitbucket.org/pypa/pypi/issue/59#comment-5881915>`_). If you happen to encounter them,
  63. install Setuptools as follows::
  64. > wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
  65. > python ez_setup.py --insecure
  66. Unix including Mac OS X (curl)
  67. ==============================
  68. If your system has curl installed, follow the ``wget`` instructions but
  69. replace ``wget`` with ``curl`` and ``-O`` with ``-o``. For example::
  70. > curl https://bootstrap.pypa.io/ez_setup.py -o - | python
  71. Advanced Installation
  72. =====================
  73. For more advanced installation options, such as installing to custom
  74. locations or prefixes, download and extract the source
  75. tarball from `Setuptools on PyPI <https://pypi.python.org/pypi/setuptools>`_
  76. and run setup.py with any supported distutils and Setuptools options.
  77. For example::
  78. setuptools-x.x$ python setup.py install --prefix=/opt/setuptools
  79. Use ``--help`` to get a full options list, but we recommend consulting
  80. the `EasyInstall manual`_ for detailed instructions, especially `the section
  81. on custom installation locations`_.
  82. .. _EasyInstall manual: https://pythonhosted.org/setuptools/EasyInstall
  83. .. _the section on custom installation locations: https://pythonhosted.org/setuptools/EasyInstall#custom-installation-locations
  84. Downloads
  85. =========
  86. All setuptools downloads can be found at `the project's home page in the Python
  87. Package Index`_. Scroll to the very bottom of the page to find the links.
  88. .. _the project's home page in the Python Package Index: https://pypi.python.org/pypi/setuptools
  89. In addition to the PyPI downloads, the development version of ``setuptools``
  90. is available from the `Bitbucket repo`_, and in-development versions of the
  91. `0.6 branch`_ are available as well.
  92. .. _Bitbucket repo: https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev
  93. .. _0.6 branch: http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06
  94. Uninstalling
  95. ============
  96. On Windows, if Setuptools was installed using an ``.exe`` or ``.msi``
  97. installer, simply use the uninstall feature of "Add/Remove Programs" in the
  98. Control Panel.
  99. Otherwise, to uninstall Setuptools or Distribute, regardless of the Python
  100. version, delete all ``setuptools*`` and ``distribute*`` files and
  101. directories from your system's ``site-packages`` directory
  102. (and any other ``sys.path`` directories) FIRST.
  103. If you are upgrading or otherwise plan to re-install Setuptools or Distribute,
  104. nothing further needs to be done. If you want to completely remove Setuptools,
  105. you may also want to remove the 'easy_install' and 'easy_install-x.x' scripts
  106. and associated executables installed to the Python scripts directory.
  107. --------------------------------
  108. Using Setuptools and EasyInstall
  109. --------------------------------
  110. Here are some of the available manuals, tutorials, and other resources for
  111. learning about Setuptools, Python Eggs, and EasyInstall:
  112. * `The EasyInstall user's guide and reference manual`_
  113. * `The setuptools Developer's Guide`_
  114. * `The pkg_resources API reference`_
  115. * `The Internal Structure of Python Eggs`_
  116. Questions, comments, and bug reports should be directed to the `distutils-sig
  117. mailing list`_. If you have written (or know of) any tutorials, documentation,
  118. plug-ins, or other resources for setuptools users, please let us know about
  119. them there, so this reference list can be updated. If you have working,
  120. *tested* patches to correct problems or add features, you may submit them to
  121. the `setuptools bug tracker`_.
  122. .. _setuptools bug tracker: https://github.com/pypa/setuptools/issues
  123. .. _The Internal Structure of Python Eggs: https://pythonhosted.org/setuptools/formats.html
  124. .. _The setuptools Developer's Guide: https://pythonhosted.org/setuptools/setuptools.html
  125. .. _The pkg_resources API reference: https://pythonhosted.org/setuptools/pkg_resources.html
  126. .. _The EasyInstall user's guide and reference manual: https://pythonhosted.org/setuptools/easy_install.html
  127. .. _distutils-sig mailing list: http://mail.python.org/pipermail/distutils-sig/
  128. -------
  129. Credits
  130. -------
  131. * The original design for the ``.egg`` format and the ``pkg_resources`` API was
  132. co-created by Phillip Eby and Bob Ippolito. Bob also implemented the first
  133. version of ``pkg_resources``, and supplied the OS X operating system version
  134. compatibility algorithm.
  135. * Ian Bicking implemented many early "creature comfort" features of
  136. easy_install, including support for downloading via Sourceforge and
  137. Subversion repositories. Ian's comments on the Web-SIG about WSGI
  138. application deployment also inspired the concept of "entry points" in eggs,
  139. and he has given talks at PyCon and elsewhere to inform and educate the
  140. community about eggs and setuptools.
  141. * Jim Fulton contributed time and effort to build automated tests of various
  142. aspects of ``easy_install``, and supplied the doctests for the command-line
  143. ``.exe`` wrappers on Windows.
  144. * Phillip J. Eby is the seminal author of setuptools, and
  145. first proposed the idea of an importable binary distribution format for
  146. Python application plug-ins.
  147. * Significant parts of the implementation of setuptools were funded by the Open
  148. Source Applications Foundation, to provide a plug-in infrastructure for the
  149. Chandler PIM application. In addition, many OSAF staffers (such as Mike
  150. "Code Bear" Taylor) contributed their time and stress as guinea pigs for the
  151. use of eggs and setuptools, even before eggs were "cool". (Thanks, guys!)
  152. * Tarek Ziadé is the principal author of the Distribute fork, which
  153. re-invigorated the community on the project, encouraged renewed innovation,
  154. and addressed many defects.
  155. * Since the merge with Distribute, Jason R. Coombs is the
  156. maintainer of setuptools. The project is maintained in coordination with
  157. the Python Packaging Authority (PyPA) and the larger Python community.
  158. .. _files:
  159. ---------------
  160. Code of Conduct
  161. ---------------
  162. Everyone interacting in the setuptools project's codebases, issue trackers,
  163. chat rooms, and mailing lists is expected to follow the
  164. `PyPA Code of Conduct`_.
  165. .. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/