Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

259 строки
11 KiB

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