7 * #2925: Merge with pypa/distutils@92082ee42c including introduction of deprecation warning on Version classes.
16 * #2914: Merge with pypa/distutils@8f2df0bf6.
25 * #2893: Restore deprecated support for newlines in the Summary field.
34 * #2902: Merge with pypa/distutils@85db7a41242.
38 * #2906: In ensure_local_distutils, re-use DistutilsMetaFinder to load the module. Avoids race conditions when _distutils_system_mod is employed.
47 * #2875: Introduce changes from pypa/distutils@514e9d0, including support for overrides from Debian and pkgsrc, unlocking the possibility of making SETUPTOOLS_USE_DISTUTILS=local the default again.
56 * #2885: Fixed errors when encountering LegacyVersions.
65 * #2497: Update packaging to 21.2.
66 * #2877: Back out deprecation of setup_requires and replace instead by a deprecation of setuptools.installer and fetch_build_egg. Now setup_requires is still supported when installed as part of a PEP 517 build, but is deprecated when an unsatisfied requirement is encountered.
67 * #2879: Bump packaging to 21.2.
71 * #2867: PNG/ICO images replaced with SVG in the docs.
72 * #2867: Added support to SVG "favicons" via "in-tree" Sphinx extension.
81 * #2880: Removed URL requirement for ``pytest-virtualenv`` in ``setup.cfg``.
82 PyPI rejects packages with dependencies external to itself.
83 Instead the test dependency was overwritten via ``tox.ini``
92 * #2856: Support for custom commands that inherit directly from ``distutils`` is
93 **deprecated**. Users should extend classes provided by setuptools instead.
97 * #2870: Started failing on invalid inline description with line breaks :class:`ValueError` -- by :user:`webknjaz`
101 * #2698: Exposed exception classes from ``distutils.errors`` via ``setuptools.errors``.
102 * #2866: Incorporate changes from pypa/distutils@f1b0a2b.
104 Documentation changes
105 ^^^^^^^^^^^^^^^^^^^^^
106 * #2227: Added sphinx theme customisations to display the new logo in the sidebar and
107 use its colours as "accent" in the documentation -- by :user:`abravalheri`
108 * #2227: Added new setuptools logo, including editable files and artwork documentation
109 -- by :user:`abravalheri`
110 * #2698: Added mentions to ``setuptools.errors`` as a way of handling custom command
112 * #2698: Added instructions to migrate from ``distutils.commands`` and
113 ``distutils.errors`` in the porting guide.
114 * #2871: Added a note to the docs that it is possible to install
115 ``setup.py``-less projects in editable mode with :doc:`pip v21.1+
116 <pip:index>`, only having ``setup.cfg`` and ``pyproject.toml`` in
117 project root -- by :user:`webknjaz`
126 * #2849: Add fallback for custom ``build_py`` commands inheriting directly from
127 :mod:`distutils`, while still handling ``include_package_data=True`` for
137 * #2847: Suppress 'setup.py install' warning under bdist_wheel.
146 * #2846: Move PkgResourcesDeprecationWarning above implicitly-called function so that it's in the namespace when version warnings are generated in an environment that contains them.
155 * #1461: Fix inconsistency with ``include_package_data`` and ``packages_data`` in sdist
156 by replacing the loop breaking mechanism between the ``sdist`` and
157 ``egg_info`` commands -- by :user:`abravalheri`
166 * #2497: Officially deprecated PEP 440 non-compliant versions.
168 Documentation changes
169 ^^^^^^^^^^^^^^^^^^^^^
170 * #2832: Removed the deprecated ``data_files`` option from the example in the
171 declarative configuration docs -- by :user:`abravalheri`
172 * #2832: Change type of ``data_files`` option from ``dict`` to ``section`` in
173 declarative configuration docs (to match previous example) -- by
183 * #917: ``setup.py install`` and ``easy_install`` commands are now officially deprecated. Use other standards-based installers (like pip) and builders (like build). Workloads reliant on this behavior should pin to this major version of Setuptools. See `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html>`_ for more background.
184 * #1988: Deprecated the ``bdist_rpm`` command. Binary packages should be built as wheels instead.
186 * #2785: Replace ``configparser``'s ``readfp`` with ``read_file``, deprecated since Python 3.2.
188 * #2823: Officially deprecated support for ``setup_requires``. Users are encouraged instead to migrate to PEP 518 ``build-system.requires`` in ``pyproject.toml``. Users reliant on ``setup_requires`` should consider pinning to this major version to avoid disruption.
192 * #2762: Changed codecov.yml to configure the threshold to be lower
193 -- by :user:`tanvimoharir`
202 * #2757: Add windows arm64 launchers for scripts generated by easy_install.
203 * #2800: Added ``--owner`` and ``--group`` options to the ``sdist`` command,
204 for specifying file ownership within the produced tarball (similarly
205 to the corresponding distutils ``sdist`` options).
207 Documentation changes
208 ^^^^^^^^^^^^^^^^^^^^^
209 * #2792: Document how the legacy and non-legacy versions are compared, and reference to the `PEP 440 <https://www.python.org/dev/peps/pep-0440/>`_ scheme.
218 * #2796: Merge with pypa/distutils@02e9f65ab0
227 * #2773: Retain case in setup.cfg during sdist.
236 * #2777: Build does not fail fast when ``use_2to3`` is supplied but set to a false value.
245 * #2769: Build now fails fast when ``use_2to3`` is supplied.
254 * #2765: In Distribution.finalize_options, suppress known removed entry points to avoid issues with older Setuptools.
263 * #2086: Removed support for 2to3 during builds. Projects should port to a unified codebase or pin to an older version of Setuptools using PEP 518 build-requires.
265 Documentation changes
266 ^^^^^^^^^^^^^^^^^^^^^
267 * #2746: add python_requires example
276 * #2712: Added implicit globbing support for `[options.data_files]` values.
278 Documentation changes
279 ^^^^^^^^^^^^^^^^^^^^^
280 * #2737: fix various syntax and style errors in code snippets in docs
289 * #2722: Added support for ``SETUPTOOLS_EXT_SUFFIX`` environment variable to override the suffix normally detected from the ``sysconfig`` module.
298 * #2465: Documentation is now published using the Furo theme.
307 * #2724: Added detection of Windows ARM64 build environments using the ``VSCMD_ARG_TGT_ARCH`` environment variable.
316 * #2692: Globs are now sorted in 'license_files' restoring reproducibility by eliminating variance from disk order.
317 * #2714: Update to distutils at pypa/distutils@e2627b7.
318 * #2715: Removed reliance on deprecated ssl.match_hostname by removing the ssl support. Now any index operations rely on the native SSL implementation.
320 Documentation changes
321 ^^^^^^^^^^^^^^^^^^^^^
322 * #2604: Revamped the backward/cross tool compatibility section to remove
324 Add some examples and the version since when ``entry_points`` are
325 supported in declarative configuration.
326 Tried to make the reading flow a bit leaner, gather some information
327 that were a bit dispersed.
336 * #2645: License files excluded via the ``MANIFEST.in`` but matched by either
337 the ``license_file`` (deprecated) or ``license_files`` options,
338 will be nevertheless included in the source distribution. - by :user:`cdce8p`
342 * #2628: Write long description in message payload of PKG-INFO file. - by :user:`cdce8p`
343 * #2645: Added ``License-File`` (multiple) to the output package metadata.
344 The field will contain the path of a license file, matched by the
345 ``license_file`` (deprecated) and ``license_files`` options,
346 relative to ``.dist-info``. - by :user:`cdce8p`
347 * #2678: Moved Setuptools' own entry points into declarative config.
348 * #2680: Vendored `more_itertools <https://pypi.org/project/more-itertools>`_ for Setuptools.
349 * #2681: Setuptools own setup.py no longer declares setup_requires, but instead expects wheel to be installed as declared by pyproject.toml.
353 * #2650: Updated the docs build tooling to support the latest version of
354 Towncrier and show the previews of not-yet-released setuptools versions
355 in the changelog -- :user:`webknjaz`
364 * #2640: Fixed handling of multiline license strings. - by :user:`cdce8p`
365 * #2641: Setuptools will now always try to use the latest supported
366 metadata version for ``PKG-INFO``. - by :user:`cdce8p`
375 * #2653: Incorporated assorted changes from pypa/distutils.
376 * #2657: Adopted docs from distutils.
377 * #2663: Added Visual Studio Express 2017 support -- by :user:`dofuuz`
381 * #2644: Fixed ``DeprecationWarning`` due to ``threading.Thread.setDaemon`` in tests -- by :user:`tirkarthi`
382 * #2654: Made the changelog generator compatible
383 with Towncrier >= 19.9 -- :user:`webknjaz`
384 * #2664: Relax the deprecation message in the distutils hack.
393 * #2620: The ``license_file`` option is now marked as deprecated.
394 Use ``license_files`` instead. -- by :user:`cdce8p`
398 * #2620: If neither ``license_file`` nor ``license_files`` is specified, the ``sdist``
399 option will now auto-include files that match the following patterns:
400 ``LICEN[CS]E*``, ``COPYING*``, ``NOTICE*``, ``AUTHORS*``.
401 This matches the behavior of ``bdist_wheel``. -- by :user:`cdce8p`
405 * #2620: The ``license_file`` and ``license_files`` options now support glob patterns. -- by :user:`cdce8p`
406 * #2632: Implemented ``VendorImporter.find_spec()`` method to get rid
407 of ``ImportWarning`` that Python 3.10 emits when only the old-style
408 importer hooks are present -- by :user:`webknjaz`
410 Documentation changes
411 ^^^^^^^^^^^^^^^^^^^^^
412 * #2620: Added documentation for the ``license_files`` option. -- by :user:`cdce8p`
421 * #2566: Remove the deprecated ``bdist_wininst`` command. Binary packages should be built as wheels instead. -- by :user:`hroncok`
430 * #2608: Added informative error message to PEP 517 build failures owing to
431 an empty ``setup.py`` -- by :user:`layday`
437 No significant changes.
446 * #2595: Reduced scope of dash deprecation warning to Setuptools/distutils only -- by :user:`melissa-kun-li`
453 Documentation changes
454 ^^^^^^^^^^^^^^^^^^^^^
455 * #2584: Added ``sphinx-inline-tabs`` extension to allow for comparison of ``setup.py`` and its equivalent ``setup.cfg`` -- by :user:`amy-lei`
459 * #2592: Made option keys in the ``[metadata]`` section of ``setup.cfg`` case-sensitive. Users having
460 uppercase option spellings will get a warning suggesting to make them to lowercase
461 -- by :user:`melissa-kun-li`
470 * #1608: Removed the conversion of dashes to underscores in the :code:`extras_require` and :code:`data_files` of :code:`setup.cfg` to support the usage of dashes. Method will warn users when they use a dash-separated key which in the future will only allow an underscore. Note: the method performs the dash to underscore conversion to preserve compatibility, but future versions will no longer support it -- by :user:`melissa-kun-li`
479 * #2582: Simplified build-from-source story by providing bootstrapping metadata in a separate egg-info directory. Build requirements no longer include setuptools itself. Sdist once again includes the pyproject.toml. Project can no longer be installed from source on pip 19.x, but install from source is still supported on pip < 19 and pip >= 20 and install from wheel is still supported with pip >= 9.
483 * #1932: Handled :code:`AttributeError` by raising :code:`DistutilsSetupError` in :code:`dist.check_specifier()` when specifier is not a string -- by :user:`melissa-kun-li`
484 * #2570: Correctly parse cmdclass in setup.cfg.
486 Documentation changes
487 ^^^^^^^^^^^^^^^^^^^^^
488 * #2553: Added userguide example for markers in extras_require -- by :user:`pwoolvett`
497 * #1937: Preserved case-sensitivity of keys in setup.cfg so that entry point names are case-sensitive. Changed sensitivity of configparser. NOTE: Any projects relying on case-insensitivity will need to adapt to accept the original case as published. -- by :user:`melissa-kun-li`
498 * #2573: Fixed error in uploading a Sphinx doc with the :code:`upload_docs` command. An html builder will be used.
499 Note: :code:`upload_docs` is deprecated for PyPi, but is supported for other sites -- by :user:`melissa-kun-li`
508 * #1527: Removed bootstrap script. Now Setuptools requires pip or another pep517-compliant builder such as 'build' to build. Now Setuptools can be installed from Github main branch.
517 * #2537: Remove fallback support for fetch_build_eggs using easy_install. Now pip is required for setup_requires to succeed.
518 * #2544: Removed 'easy_install' top-level model (runpy entry point) and 'easy_install' console script.
519 * #2545: Removed support for eggsecutables.
523 * #2459: Tests now run in parallel via pytest-xdist, completing in about half the time. Special thanks to :user:`webknjaz` for hard work implementing test isolation. To run without parallelization, disable the plugin with ``tox -- -p no:xdist``.
532 * #2539: Fix AttributeError in Description validation.
541 * #1390: Validation of Description field now is more lenient, emitting a warning and mangling the value to be valid (replacing newlines with spaces).
550 * #2536: Reverted tag deduplication handling.
559 * #1390: Newlines in metadata description/Summary now trigger a ValueError.
560 * #2481: Define ``create_module()`` and ``exec_module()`` methods in ``VendorImporter``
561 to get rid of ``ImportWarning`` -- by :user:`hroncok`
562 * #2489: ``pkg_resources`` behavior for zipimport now matches the regular behavior, and finds
563 ``.egg-info`` (previoulsy would only find ``.dist-info``) -- by :user:`thatch`
564 * #2529: Fixed an issue where version tags may be added multiple times
573 * #2493: Use importlib.import_module() rather than the deprecated loader.load_module()
574 in pkg_resources namespace delaration -- by :user:`encukou`
576 Documentation changes
577 ^^^^^^^^^^^^^^^^^^^^^
578 * #2525: Fix typo in the document page about entry point. -- by :user:`jtr109`
582 * #2534: Avoid hitting network during test_easy_install.
591 * #2505: Disable inclusion of package data as it causes 'tests' to be included as data.
600 * #2534: Avoid hitting network during test_virtualenv.test_test_command.
609 * #2486: Project adopts jaraco/skeleton for shared package maintenance.
613 * #2477: Restore inclusion of rst files in sdist.
614 * #2484: Setuptools has replaced the master branch with the main branch.
615 * #2485: Fixed failing test when pip 20.3+ is present.
616 -- by :user:`yan12125`
617 * #2487: Fix tests with pytest 6.2
618 -- by :user:`yan12125`
627 * #2435: Require Python 3.6 or later.
629 Documentation changes
630 ^^^^^^^^^^^^^^^^^^^^^
631 * #2430: Fixed inconsistent RST title nesting levels caused by #2399
632 -- by :user:`webknjaz`
633 * #2430: Fixed a typo in Sphinx docs that made docs dev section disappear
634 as a result of PR #2426 -- by :user:`webknjaz`
638 * #2471: Removed the tests that guarantee that the vendored dependencies can be built by distutils.
646 Documentation changes
647 ^^^^^^^^^^^^^^^^^^^^^
648 * #2394: Extended towncrier news template to include change note categories.
649 This allows to see what types of changes a given version introduces
650 -- by :user:`webknjaz`
651 * #2427: Started enforcing strict syntax and reference validation
652 in the Sphinx docs -- by :user:`webknjaz`
653 * #2428: Removed redundant Sphinx ``Makefile`` support -- by :user:`webknjaz`
657 * #2401: Enabled test results reporting in AppVeyor CI
658 -- by :user:`webknjaz`
659 * #2420: Replace Python 3.9.0 beta with 3.9.0 final on GitHub Actions.
660 * #2421: Python 3.9 Trove classifier got added to the dist metadata
661 -- by :user:`webknjaz`
669 Documentation changes
670 ^^^^^^^^^^^^^^^^^^^^^
671 * #2093: Finalized doc revamp.
672 * #2097: doc: simplify index and group deprecated files
673 * #2102: doc overhaul step 2: break main doc into multiple sections
674 * #2111: doc overhaul step 3: update userguide
675 * #2395: Added a ``:user:`` role to Sphinx config -- by :user:`webknjaz`
676 * #2395: Added an illustrative explanation about the change notes to fragments dir -- by :user:`webknjaz`
680 * #2379: Travis CI test suite now tests against PPC64.
681 * #2413: Suppress EOF errors (and other exceptions) when importing lib2to3.
691 * #2368: In distutils, restore support for monkeypatched CCompiler.spawn per pypa/distutils#15.
701 * #2355: When pip is imported as part of a build, leave distutils patched.
702 * #2380: There are some setuptools specific changes in the
703 ``setuptools.command.bdist_rpm`` module that are no longer needed, because
704 they are part of the ``bdist_rpm`` module in distutils in Python
705 3.5.0. Therefore, code was removed from ``setuptools.command.bdist_rpm``.
715 * #2350: Setuptools reverts using the included distutils by default. Platform maintainers and system integrators and others are *strongly* encouraged to set ``SETUPTOOLS_USE_DISTUTILS=local`` to help identify and work through the reported issues with distutils adoption, mainly to file issues and pull requests with pypa/distutils such that distutils performs as needed across every supported environment.
725 * #2363: Restore link_libpython support on Python 3.7 and earlier (see pypa/distutils#9).
735 * #2352: In distutils hack, use absolute import rather than relative to avoid bpo-30876.
745 * #2357: Restored Python 3.5 support in distutils.util for missing ``subprocess._optim_args_from_interpreter_flags``.
746 * #2358: Restored AIX support on Python 3.8 and earlier.
747 * #2361: Add Python 3.10 support to _distutils_hack. Get the 'Loader' abstract class
748 from importlib.abc rather than importlib.util.abc (alias removed in Python
759 * #2232: Once again, Setuptools overrides the stdlib distutils on import. For environments or invocations where this behavior is undesirable, users are provided with a temporary escape hatch. If the environment variable ``SETUPTOOLS_USE_DISTUTILS`` is set to ``stdlib``, Setuptools will fall back to the legacy behavior. Use of this escape hatch is discouraged, but it is provided to ease the transition while proper fixes for edge cases can be addressed.
763 * #2334: In MSVC module, refine text in error message.
773 * #2129: In pkg_resources, no longer detect any pathname ending in .egg as a Python egg. Now the path must be an unpacked egg or a zip file.
783 * #2306: When running as a PEP 517 backend, setuptools does not try to install
784 ``setup_requires`` itself. They are reported as build requirements for the
795 * #2310: Updated vendored packaging version to 20.4.
803 Documentation changes
804 ^^^^^^^^^^^^^^^^^^^^^
805 * #2300: Improve the ``safe_version`` function documentation
809 * #2297: Once again, in stubs prefer exec_module to the deprecated load_module.
819 * #2316: Removed warning when ``distutils`` is imported before ``setuptools`` when ``distutils`` replacement is not enabled.
829 * #2259: Setuptools now provides a .pth file (except for editable installs of setuptools) to the target environment to ensure that when enabled, the setuptools-provided distutils is preferred before setuptools has been imported (and even if setuptools is never imported). Honors the SETUPTOOLS_USE_DISTUTILS environment variable.
839 * #2257: Fixed two flaws in distutils._msvccompiler.MSVCCompiler.spawn.
849 * #2230: Now warn the user when setuptools is imported after distutils modules have been loaded (exempting PyPy for 3.6), directing the users of packages to import setuptools first.
859 * #2212: (Distutils) Allow spawn to accept environment. Avoid monkey-patching global state.
860 * #2249: Fix extension loading technique in stubs.
870 * #2232: In preparation for re-enabling a local copy of distutils, Setuptools now honors an environment variable, SETUPTOOLS_USE_DISTUTILS. If set to 'stdlib' (current default), distutils will be used from the standard library. If set to 'local' (default in a imminent backward-incompatible release), the local copy of distutils will be used.
880 * #2094: Removed pkg_resources.py2_warn module, which is no longer reachable.
890 * #2228: Applied fix for pypa/distutils#3, restoring expectation that spawn will raise a DistutilsExecError when attempting to execute a missing file.
900 * #2228: Disabled distutils adoption for now while emergent issues are addressed.
910 * #2165: Setuptools no longer installs a site.py file during easy_install or develop installs. As a result, .eggs on PYTHONPATH will no longer take precedence over other packages on sys.path. If this issue affects your production environment, please reach out to the maintainers at #2165.
914 * #2137: Removed (private) pkg_resources.RequirementParseError, now replaced by packaging.requirements.InvalidRequirement. Kept the name for compatibility, but users should catch InvalidRequirement instead.
915 * #2180: Update vendored packaging in pkg_resources to 19.2.
919 * #2199: Fix exception causes all over the codebase by using ``raise new_exception from old_exception``
929 * #2143: Setuptools adopts distutils from the Python 3.9 standard library and no longer depends on distutils in the standard library. When importing ``setuptools`` or ``setuptools.distutils_patch``, Setuptools will expose its bundled version as a top-level ``distutils`` package (and unload any previously-imported top-level distutils package), retaining the expectation that ``distutils``' objects are actually Setuptools objects.
930 To avoid getting any legacy behavior from the standard library, projects are advised to always "import setuptools" prior to importing anything from distutils. This behavior happens by default when using ``pip install`` or ``pep517.build``. Workflows that rely on ``setup.py (anything)`` will need to first ensure setuptools is imported. One way to achieve this behavior without modifying code is to invoke Python thus: ``python -c "import setuptools; exec(open('setup.py').read())" (anything)``.
940 * #2071: Replaced references to the deprecated imp package with references to importlib
950 * #1973: Removed ``pkg_resources.py31compat.makedirs`` in favor of the stdlib. Use ``os.makedirs()`` instead.
951 * #2198: Restore ``__requires__`` directive in easy-install wrapper scripts.
961 * #2197: Console script wrapper for editable installs now has a unified template and honors importlib_metadata if present for faster script execution on older Pythons.
965 * #2195: Fix broken entry points generated by easy-install (pip editable installs).
975 * #2194: Editable-installed entry points now load significantly faster on Python versions 3.8+.
976 * #1471: Incidentally fixed by #2194 on Python 3.8 or when importlib_metadata is present.
984 Documentation changes
985 ^^^^^^^^^^^^^^^^^^^^^
986 * #2156: Update mailing list pointer in developer docs
988 Incorporate changes from v44.1.1:
989 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
991 * #2158: Avoid loading working set during ``Distribution.finalize_options`` prior to invoking ``_install_setup_requires``, broken since v42.0.0.
1001 * #2158: Avoid loading working set during ``Distribution.finalize_options`` prior to invoking ``_install_setup_requires``, broken since v42.0.0.
1011 * #2070: In wheel-to-egg conversion, use simple pkg_resources-style namespace declaration for packages that declare namespace_packages.
1021 * #2094: Setuptools now actively crashes under Python 2. Python 3.5 or later is required. Users of Python 2 should use ``setuptools<45``.
1025 * #1700: Document all supported keywords by migrating the ones from distutils.
1035 * #1753: ``attr:`` now extracts variables through rudimentary examination of the AST,
1036 thereby supporting modules with third-party imports. If examining the AST
1037 fails to find the variable, ``attr:`` falls back to the old behavior of
1038 importing the module. Works on Python 3 only.
1044 No significant changes.
1054 * #2089: Package index functionality no longer attempts to remove an md5 fragment from the index URL. This functionality, added for distribute #163 is no longer relevant.
1058 * #2041: Preserve file modes during pkg files copying, but clear read only flag for target afterwards.
1059 * #2105: Filter ``2to3`` deprecation warnings from ``TestDevelop.test_2to3_user_mode``.
1069 * #2040: Deprecated the ``bdist_wininst`` command. Binary packages should be built as wheels instead.
1070 * #2062: Change 'Mac OS X' to 'macOS' in code.
1071 * #2075: Stop recognizing files ending with ``.dist-info`` as distribution metadata.
1072 * #2086: Deprecate 'use_2to3' functionality. Packagers are encouraged to use single-source solutions or build tool chains to manage conversions outside of setuptools.
1074 Documentation changes
1075 ^^^^^^^^^^^^^^^^^^^^^
1076 * #1698: Added documentation for ``build_meta`` (a bare minimum, not completed).
1080 * #2082: Filter ``lib2to3`` ``PendingDeprecationWarning`` and ``DeprecationWarning`` in tests,
1081 because ``lib2to3`` is `deprecated in Python 3.9 <https://bugs.python.org/issue40360>`_.
1087 No significant changes.
1097 * #1458: Added template for reporting Python 2 incompatibilities.
1103 No significant changes.
1113 * #308: Allow version number normalization to be bypassed by wrapping in a 'setuptools.sic()' call.
1114 * #1424: Prevent keeping files mode for package_data build. It may break a build if user's package data has read only flag.
1115 * #1431: In ``easy_install.check_site_dir``, ensure the installation directory exists.
1116 * #1563: In ``pkg_resources`` prefer ``find_spec`` (PEP 451) to ``find_module``.
1118 Incorporate changes from v44.1.0:
1119 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1121 * #1704: Set sys.argv[0] in setup script run by build_meta.__legacy__
1122 * #1959: Fix for Python 4: replace unsafe six.PY3 with six.PY2
1123 * #1994: Fixed a bug in the "setuptools.finalize_distribution_options" hook that lead to ignoring the order attribute of entry points managed by this hook.
1133 * #1704: Set sys.argv[0] in setup script run by build_meta.__legacy__
1134 * #1959: Fix for Python 4: replace unsafe six.PY3 with six.PY2
1135 * #1994: Fixed a bug in the "setuptools.finalize_distribution_options" hook that lead to ignoring the order attribute of entry points managed by this hook.
1145 * #65: Once again as in 3.0, removed the Features feature.
1149 * #1890: Fix vendored dependencies so importing ``setuptools.extern.some_module`` gives the same object as ``setuptools._vendor.some_module``. This makes Metadata picklable again.
1150 * #1899: Test suite now fails on warnings.
1152 Documentation changes
1153 ^^^^^^^^^^^^^^^^^^^^^
1154 * #2011: Fix broken link to distutils docs on package_data
1158 * #1991: Include pkg_resources test data in sdist, so tests can be executed from it.
1168 * #1557: Deprecated eggsecutable scripts and updated docs.
1169 * #1904: Update msvc.py to use CPython 3.8.0 mechanism to find msvc 14+
1179 * #1905: Fixed defect in _imp, introduced in 41.6.0 when the 'tests' directory is not present.
1180 * #1941: Improve editable installs with PEP 518 build isolation:
1182 * The ``--user`` option is now always available. A warning is issued if the user site directory is not available.
1183 * The error shown when the install directory is not in ``PYTHONPATH`` has been turned into a warning.
1184 * #1981: Setuptools now declares its ``tests`` and ``docs`` dependencies in metadata (extras).
1185 * #1985: Add support for installing scripts in environments where bdist_wininst is missing (i.e. Python 3.9).
1189 * #1968: Add flake8-2020 to check for misuse of sys.version or sys.version_info.
1199 * #1458: Add minimum sunset date and preamble to Python 2 warning.
1200 * #1704: Set sys.argv[0] in setup script run by build_meta.__legacy__
1201 * #1974: Add Python 3 Only Trove Classifier and remove universal wheel declaration for more complete transition from Python 2.
1211 * #1458: Drop support for Python 2. Setuptools now requires Python 3.5 or later. Install setuptools using pip >=9 or pin to Setuptools <45 to maintain 2.7 support.
1215 * #1959: Fix for Python 4: replace unsafe six.PY3 with six.PY2
1225 * #1908: Drop support for Python 3.4.
1235 * #1634: Include ``pyproject.toml`` in source distribution by default. Projects relying on the previous behavior where ``pyproject.toml`` was excluded by default should stop relying on that behavior or add ``exclude pyproject.toml`` to their MANIFEST.in file.
1239 * #1927: Setuptools once again declares 'setuptools' in the ``build-system.requires`` and adds PEP 517 build support by declaring itself as the ``build-backend``. It additionally specifies ``build-system.backend-path`` to rely on itself for those builders that support it.
1248 * #1921: Fix support for easy_install's ``find-links`` option in ``setup.cfg``.
1249 * #1922: Build dependencies (setup_requires and tests_require) now install transitive dependencies indicated by extras.
1259 * #1918: Fix regression in handling wheels compatibility tags.
1269 * #1830, #1909: Mark the easy_install script and setuptools command as deprecated, and use `pip <https://pip.pypa.io/en/stable/>`_ when available to fetch/build wheels for missing ``setup_requires``/``tests_require`` requirements, with the following differences in behavior:
1270 * support for ``python_requires``
1271 * better support for wheels (proper handling of priority with respect to PEP 425 tags)
1272 * PEP 517/518 support
1273 * eggs are not supported
1274 * no support for the ``allow_hosts`` easy_install option (``index_url``/``find_links`` are still honored)
1275 * pip environment variables are honored (and take precedence over easy_install options)
1276 * #1898: Removed the "upload" and "register" commands in favor of `twine <https://pypi.org/p/twine>`_.
1280 * #1767: Add support for the ``license_files`` option in ``setup.cfg`` to automatically
1281 include multiple license files in a source distribution.
1282 * #1829: Update handling of wheels compatibility tags:
1283 * add support for manylinux2010
1284 * fix use of removed 'm' ABI flag in Python 3.8 on Windows
1285 * #1861: Fix empty namespace package installation from wheel.
1286 * #1877: Setuptools now exposes a new entry point hook "setuptools.finalize_distribution_options", enabling plugins like `setuptools_scm <https://pypi.org/project/setuptools_scm>`_ to configure options on the distribution at finalization time.
1296 * #479: Replace usage of deprecated ``imp`` module with local re-implementation in ``setuptools._imp``.
1306 * #1891: Fix code for detecting Visual Studio's version on Windows under Python 2.
1316 * #1811: Improve Visual C++ 14.X support, mainly for Visual Studio 2017 and 2019.
1317 * #1814: Fix ``pkg_resources.Requirement`` hash/equality implementation: take PEP 508 direct URL into account.
1318 * #1824: Fix tests when running under ``python3.10``.
1319 * #1878: Formally deprecated the ``test`` command, with the recommendation that users migrate to ``tox``.
1321 Documentation changes
1322 ^^^^^^^^^^^^^^^^^^^^^
1323 * #1860: Update documentation to mention the egg format is not supported by pip and dependency links support was dropped starting with pip 19.0.
1324 * #1862: Drop ez_setup documentation: deprecated for some time (last updated in 2016), and still relying on easy_install (deprecated too).
1325 * #1868: Drop most documentation references to (deprecated) EasyInstall.
1326 * #1884: Added a trove classifier to document support for Python 3.8.
1330 * #1886: Added Python 3.8 release to the Travis test matrix.
1340 * #1847: In declarative config, now traps errors when invalid ``python_requires`` values are supplied.
1350 * #1690: When storing extras, rely on OrderedSet to retain order of extras as indicated by the packager, which will also be deterministic on Python 2.7 (with PYTHONHASHSEED unset) and Python 3.6+.
1354 * #1858: Fixed failing integration test triggered by 'long_description_content_type' in packaging.
1364 * #479: Remove some usage of the deprecated ``imp`` module.
1368 * #1565: Changed html_sidebars from string to list of string as per
1369 https://www.sphinx-doc.org/en/master/changes.html#id58
1379 * #1697: Moved most of the constants from setup.py to setup.cfg
1380 * #1749: Fixed issue with the PEP 517 backend where building a source distribution would fail if any tarball existed in the destination directory.
1381 * #1750: Fixed an issue with PEP 517 backend where wheel builds would fail if the destination directory did not already exist.
1382 * #1756: Force metadata-version >= 1.2. when project urls are present.
1383 * #1769: Improve ``package_data`` check: ensure the dictionary values are lists/tuples of strings.
1384 * #1788: Changed compatibility fallback logic for ``html.unescape`` to avoid accessing ``HTMLParser.unescape`` when not necessary. ``HTMLParser.unescape`` is deprecated and will be removed in Python 3.9.
1385 * #1790: Added the file path to the error message when a ``UnicodeDecodeError`` occurs while reading a metadata file.
1387 Documentation changes
1388 ^^^^^^^^^^^^^^^^^^^^^
1389 * #1776: Use license classifiers rather than the license field.
1399 * #1671: Fixed issue with the PEP 517 backend that prevented building a wheel when the ``dist/`` directory contained existing ``.whl`` files.
1400 * #1709: In test.paths_on_python_path, avoid adding unnecessary duplicates to the PYTHONPATH.
1401 * #1741: In package_index, now honor "current directory" during a checkout of git and hg repositories under Windows
1411 * #1735: When parsing setup.cfg files, setuptools now requires the files to be encoded as UTF-8. Any other encoding will lead to a UnicodeDecodeError. This change removes support for specifying an encoding using a 'coding: ' directive in the header of the file, a feature that was introduces in 40.7. Given the recent release of the aforementioned feature, it is assumed that few if any projects are utilizing the feature to specify an encoding other than UTF-8.
1421 * #1675: Added support for ``setup.cfg``-only projects when using the ``setuptools.build_meta`` backend. Projects that have enabled PEP 517 no longer need to have a ``setup.py`` and can use the purely declarative ``setup.cfg`` configuration file instead.
1422 * #1720: Added support for ``pkg_resources.parse_requirements``-style requirements in ``setup_requires`` when ``setup.py`` is invoked from the ``setuptools.build_meta`` build backend.
1423 * #1664: Added the path to the ``PKG-INFO`` or ``METADATA`` file in the exception
1424 text when the ``Version:`` header can't be found.
1426 Documentation changes
1427 ^^^^^^^^^^^^^^^^^^^^^
1428 * #1705: Removed some placeholder documentation sections referring to deprecated features.
1438 * #1652: Added the ``build_meta:__legacy__`` backend, a "compatibility mode" PEP 517 backend that can be used as the default when ``build-backend`` is left unspecified in ``pyproject.toml``.
1439 * #1635: Resource paths are passed to ``pkg_resources.resource_string`` and similar no longer accept paths that traverse parents, that begin with a leading ``/``. Violations of this expectation raise DeprecationWarnings and will become errors. Additionally, any paths that are absolute on Windows are strictly disallowed and will raise ValueErrors.
1440 * #1536: ``setuptools`` will now automatically include licenses if ``setup.cfg`` contains a ``license_file`` attribute, unless this file is manually excluded inside ``MANIFEST.in``.
1450 * #1670: In package_index, revert to using a copy of splituser from Python 3.8. Attempts to use ``urllib.parse.urlparse`` led to problems as reported in #1663 and #1668. This change serves as an alternative to #1499 and fixes #1668.
1460 * #1666: Restore port in URL handling in package_index.
1470 * #1660: On Python 2, when reading config files, downcast options from text to bytes to satisfy distutils expectations.
1480 * #1551: File inputs for the ``license`` field in ``setup.cfg`` files now explicitly raise an error.
1484 * #1180: Add support for non-ASCII in setup.cfg (#1062). Add support for native strings on some parameters (#1136).
1485 * #1499: ``setuptools.package_index`` no longer relies on the deprecated ``urllib.parse.splituser`` per Python #27485.
1486 * #1544: Added tests for PackageIndex.download (for git URLs).
1487 * #1625: In PEP 517 build_meta builder, ensure that sdists are built as gztar per the spec.
1497 * #1594: PEP 517 backend no longer declares setuptools as a dependency as it can be assumed.
1507 * #1592: Fix invalid dependency on external six module (instead of vendored version).
1517 * #1590: Fixed regression where packages without ``author`` or ``author_email`` fields generated malformed package metadata.
1527 * #1541: Officially deprecated the ``requires`` parameter in ``setup()``.
1531 * #1519: In ``pkg_resources.normalize_path``, additional path normalization is now performed to ensure path values to a directory is always the same, preventing false positives when checking scripts have a consistent prefix to set up on Windows.
1532 * #1545: Changed the warning class of all deprecation warnings; deprecation warning classes are no longer derived from ``DeprecationWarning`` and are thus visible by default.
1533 * #1554: ``build_meta.build_sdist`` now includes ``setup.py`` in source distributions by default.
1534 * #1576: Started monkey-patching ``get_metadata_version`` and ``read_pkg_file`` onto ``distutils.DistributionMetadata`` to retain the correct version on the ``PKG-INFO`` file in the (deprecated) ``upload`` command.
1536 Documentation changes
1537 ^^^^^^^^^^^^^^^^^^^^^
1538 * #1395: Changed Pyrex references to Cython in the documentation.
1539 * #1456: Documented that the ``rpmbuild`` packages is required for the ``bdist_rpm`` command.
1540 * #1537: Documented how to use ``setup.cfg`` for ``src/ layouts``
1541 * #1539: Added minimum version column in ``setup.cfg`` metadata table.
1542 * #1552: Fixed a minor typo in the python 2/3 compatibility documentation.
1543 * #1553: Updated installation instructions to point to ``pip install`` instead of ``ez_setup.py``.
1544 * #1560: Updated ``setuptools`` distribution documentation to remove some outdated information.
1545 * #1564: Documented ``setup.cfg`` minimum version for version and project_urls.
1549 * #1533: Restricted the ``recursive-include setuptools/_vendor`` to contain only .py and .txt files.
1550 * #1572: Added the ``concurrent.futures`` backport ``futures`` to the Python 2.7 test suite requirements.
1560 * #1335: In ``pkg_resources.normalize_path``, fix issue on Cygwin when cwd contains symlinks.
1561 * #1502: Deprecated support for downloads from Subversion in package_index/easy_install.
1562 * #1517: Dropped use of six.u in favor of ``u""`` literals.
1563 * #1520: Added support for ``data_files`` in ``setup.cfg``.
1565 Documentation changes
1566 ^^^^^^^^^^^^^^^^^^^^^
1567 * #1525: Fixed rendering of the deprecation warning in easy_install doc.
1577 * #1480: Bump vendored pyparsing in pkg_resources to 2.2.1.
1587 * #1497: Updated gitignore in repo.
1597 * #1480: Bump vendored pyparsing to 2.2.1.
1607 * #1481: Join the sdist ``--dist-dir`` and the ``build_meta`` sdist directory argument to point to the same target (meaning the build frontend no longer needs to clean manually the dist dir to avoid multiple sdist presence, and setuptools no longer needs to handle conflicts between the two).
1617 * #1402: Fixed a bug with namespace packages under Python 3.6 when one package in
1618 current directory hides another which is installed.
1619 * #1427: Set timestamp of ``.egg-info`` directory whenever ``egg_info`` command is run.
1620 * #1474: ``build_meta.get_requires_for_build_sdist`` now does not include the ``wheel`` package anymore.
1621 * #1486: Suppress warnings in pkg_resources.handle_ns.
1625 * #1479: Remove internal use of six.binary_type.
1635 * #1466: Fix handling of Unicode arguments in PEP 517 backend
1645 * #1465: Fix regression with ``egg_info`` command when tagging is used.
1655 * #1410: Deprecated ``upload`` and ``register`` commands.
1656 * #1312: Introduced find_namespace_packages() to find PEP 420 namespace packages.
1657 * #1420: Added find_namespace: directive to config parser.
1658 * #1418: Solved race in when creating egg cache directories.
1659 * #1450: Upgraded vendored PyParsing from 2.1.10 to 2.2.0.
1660 * #1451: Upgraded vendored appdirs from 1.4.0 to 1.4.3.
1661 * #1388: Fixed "Microsoft Visual C++ Build Tools" link in exception when Visual C++ not found.
1662 * #1389: Added support for scripts which have unicode content.
1663 * #1416: Moved several Python version checks over to using ``six.PY2`` and ``six.PY3``.
1667 * #1441: Removed spurious executable permissions from files that don't need them.
1677 * #1342: Drop support for Python 3.3.
1681 * #1366: In package_index, fixed handling of encoded entities in URLs.
1682 * #1383: In pkg_resources VendorImporter, avoid removing packages imported from the root.
1684 Documentation changes
1685 ^^^^^^^^^^^^^^^^^^^^^
1686 * #1379: Minor doc fixes after actually using the new release process.
1687 * #1385: Removed section on non-package data files.
1688 * #1403: Fix developer's guide.
1692 * #1404: Fix PEP 518 configuration: set build requirements in ``pyproject.toml`` to ``["wheel"]``.
1702 * #1359: Support using "file:" to load a PEP 440-compliant package version from
1704 * #1360: Fixed issue with a mismatch between the name of the package and the
1705 name of the .dist-info file in wheel files
1706 * #1364: Add ``__dir__()`` implementation to ``pkg_resources.Distribution()`` that
1707 includes the attributes in the ``_provider`` instance variable.
1708 * #1365: Take the package_dir option into account when loading the version from
1711 Documentation changes
1712 ^^^^^^^^^^^^^^^^^^^^^
1713 * #1353: Added coverage badge to README.
1714 * #1356: Made small fixes to the developer guide documentation.
1715 * #1357: Fixed warnings in documentation builds and started enforcing that the
1716 docs build without warnings in tox.
1717 * #1376: Updated release process docs.
1721 * #1343: The ``setuptools`` specific ``long_description_content_type``,
1722 ``project_urls`` and ``provides_extras`` fields are now set consistently
1723 after any ``distutils`` ``setup_keywords`` calls, allowing them to override
1725 * #1352: Added ``tox`` environment for documentation builds.
1726 * #1354: Added ``towncrier`` for changelog management.
1727 * #1355: Add PR template.
1728 * #1368: Fixed tests which failed without network connectivity.
1729 * #1369: Added unit tests for PEP 425 compatibility tags support.
1730 * #1372: Stop testing Python 3.3 in Travis CI, now that the latest version of
1731 ``wheel`` no longer installs on it.
1736 * #1340: Update all PyPI URLs to reflect the switch to the
1737 new Warehouse codebase.
1738 * #1337: In ``pkg_resources``, now support loading resources
1739 for modules loaded by the ``SourcelessFileLoader``.
1740 * #1332: Silence spurious wheel related warnings on Windows.
1745 * #1297: Restore Unicode handling for Maintainer fields in
1751 * #1296: Setuptools now vendors its own direct dependencies, no
1752 longer relying on the dependencies as vendored by pkg_resources.
1754 * #296: Removed long-deprecated support for iteration on
1755 Version objects as returned by ``pkg_resources.parse_version``.
1756 Removed the ``SetuptoolsVersion`` and
1757 ``SetuptoolsLegacyVersion`` names as well. They should not
1758 have been used, but if they were, replace with
1759 ``Version`` and ``LegacyVersion`` from ``packaging.version``.
1764 * #1288: Add support for maintainer in PKG-INFO.
1769 * #1292: Avoid generating ``Provides-Extra`` in metadata when
1770 no extra is present (but environment markers are).
1775 * #1286: Add support for Metadata 2.1 (PEP 566).
1780 * #1285: Fixed RuntimeError in pkg_resources.parse_requirements
1781 on Python 3.7 (stemming from PEP 479).
1786 * #1271: Revert to Cython legacy ``build_ext`` behavior for
1792 * #1229: Expand imports in ``build_ext`` to refine detection of
1793 Cython availability.
1795 * #1270: When Cython is available, ``build_ext`` now uses the
1801 * #1257: In bdist_egg.scan_module, fix ValueError on Python 3.7.
1806 * #1231: Removed warning when PYTHONDONTWRITEBYTECODE is enabled.
1811 * #1210: Add support for PEP 345 Project-URL metadata.
1812 * #1207: Add support for ``long_description_type`` to setup.cfg
1813 declarative config as intended and documented.
1818 * #1232: Fix trailing slash handling in ``pkg_resources.ZipProvider``.
1823 * #1220: Fix ``data_files`` handling when installing from wheel.
1828 * fix Travis' Python 3.3 job.
1833 * #1214: fix handling of namespace packages when installing
1839 * #1212: fix encoding handling of metadata when installing
1845 * #1200: easy_install now support installing from wheels:
1846 they will be installed as standalone unzipped eggs.
1851 * #1208: Improve error message when failing to locate scripts
1852 in egg-info metadata.
1857 * #458: In order to support deterministic builds, Setuptools no
1858 longer allows packages to declare ``install_requires`` as
1859 unordered sequences (sets or dicts).
1864 * #878: Drop support for Python 2.6. Python 2.6 users should
1865 rely on 'setuptools < 37dev'.
1870 * #1190: In SSL support for package index operations, use SNI
1876 * #1175: Bug fixes to ``build_meta`` module.
1881 * #701: Fixed duplicate test discovery on Python 3.
1886 * #1193: Avoid test failures in bdist_egg when
1887 PYTHONDONTWRITEBYTECODE is set.
1892 * #1054: Support ``setup_requires`` in ``setup.cfg`` files.
1897 * #1132: Removed redundant and costly serialization/parsing step
1898 in ``EntryPoint.__init__``.
1900 * #844: ``bdist_egg --exclude-source-files`` now tested and works
1906 * #1143: Added ``setuptools.build_meta`` module, an implementation
1907 of PEP-517 for Setuptools-defined packages.
1909 * #1143: Added ``dist_info`` command for producing dist_info
1915 * #170: When working with Mercurial checkouts, use Windows-friendly
1916 syntax for suppressing output.
1918 * Inspired by #1134, performed substantial refactoring of
1919 ``pkg_resources.find_on_path`` to facilitate an optimization
1920 for paths with many non-version entries.
1925 * #1075: Add new ``Description-Content-Type`` metadata field. `See here for
1926 documentation on how to use this field.
1927 <https://packaging.python.org/specifications/#description-content-type>`_
1929 * #1068: Sort files and directories when building eggs for
1930 deterministic order.
1932 * #196: Remove caching of easy_install command in fetch_build_egg.
1933 Fixes issue where ``pytest-runner-N.N`` would satisfy the installation
1936 * #1129: Fix working set dependencies handling when replacing conflicting
1937 distributions (e.g. when using ``setup_requires`` with a conflicting
1938 transitive dependency, fix #1124).
1940 * #1133: Improved handling of README files extensions and added
1941 Markdown to the list of searched READMES.
1943 * #1135: Improve performance of pkg_resources import by not invoking
1944 ``access`` or ``stat`` and using ``os.listdir`` instead.
1949 * #1131: Make possible using several files within ``file:`` directive
1950 in metadata.long_description in ``setup.cfg``.
1955 * fix #1105: Fix handling of requirements with environment
1956 markers when declared in ``setup.cfg`` (same treatment as
1962 * #462: Don't assume a directory is an egg by the ``.egg``
1968 * #1093: Fix test command handler with extras_require.
1969 * #1112, #1091, #1115: Now using Trusty containers in
1970 Travis for CI and CD.
1975 * #1092: ``pkg_resources`` now uses ``inspect.getmro`` to
1976 resolve classes in method resolution order.
1981 * #1102: Restore behavior for empty extras.
1986 * #1099: Revert commit a3ec721, restoring intended purpose of
1987 extras as part of a requirement declaration.
1994 * support extras specifiers in install_requires requirements
1999 * #1081: Environment markers indicated in ``install_requires``
2000 are now processed and treated as nameless ``extras_require``
2001 with markers, allowing their metadata in requires.txt to be
2002 correctly generated.
2004 * #1053: Tagged commits are now released using Travis-CI
2005 build stages, meaning releases depend on passing tests on
2006 all supported Python versions (Linux) and not just the latest
2012 * #1083: Correct ``py31compat.makedirs`` to correctly honor
2013 ``exist_ok`` parameter.
2014 * #1083: Also use makedirs compatibility throughout setuptools.
2019 * #1083: Avoid race condition on directory creation in
2020 ``pkg_resources.ensure_directory``.
2022 * Removed deprecation of and restored support for
2023 ``upload_docs`` command for sites other than PyPI.
2024 Only warehouse is dropping support, but services like
2025 `devpi <http://doc.devpi.net/latest/>`_ continue to
2026 support docs built by setuptools' plugins. See
2027 `this comment <https://bitbucket.org/hpk42/devpi/issues/388/support-rtd-model-for-building-uploading#comment-34292423>`_
2028 for more context on the motivation for this change.
2033 * #1042: Fix import in py27compat module that still
2034 referenced six directly, rather than through the externs
2035 module (vendored packages hook).
2040 * #980 and others: Once again, Setuptools vendors all
2041 of its dependencies. It seems to be the case that in
2042 the Python ecosystem, all build tools must run without
2043 any dependencies (build, runtime, or otherwise). At
2044 such a point that a mechanism exists that allows
2045 build tools to have dependencies, Setuptools will adopt
2051 * #1015: Fix test failures on Python 3.7.
2053 * #1024: Add workaround for Jython #2581 in monkey module.
2058 * #992: Revert change introduced in v34.4.1, now
2061 * #1016: Revert change introduced in v35.0.0 per #1014,
2062 referencing #436. The approach had unintended
2063 consequences, causing sdist installs to be missing
2069 * #436: In egg_info.manifest_maker, no longer read
2070 the file list from the manifest file, and instead
2071 re-build it on each build. In this way, files removed
2072 from the specification will not linger in the manifest.
2073 As a result, any files manually added to the manifest
2074 will be removed on subsequent egg_info invocations.
2075 No projects should be manually adding files to the
2076 manifest and should instead use MANIFEST.in or SCM
2077 file finders to force inclusion of files in the manifest.
2082 * #1008: In MSVC support, use always the last version available for Windows SDK and UCRT SDK.
2084 * #1008: In MSVC support, fix "vcruntime140.dll" returned path with Visual Studio 2017.
2086 * #992: In msvc.msvc9_query_vcvarsall, ensure the
2087 returned dicts have str values and not Unicode for
2088 compatibility with os.environ.
2093 * #995: In MSVC support, add support for "Microsoft Visual Studio 2017" and "Microsoft Visual Studio Build Tools 2017".
2095 * #999 via #1007: Extend support for declarative package
2096 config in a setup.cfg file to include the options
2097 ``python_requires`` and ``py_modules``.
2102 * #967 (and #997): Explicitly import submodules of
2103 packaging to account for environments where the imports
2104 of those submodules is not implied by other behavior.
2109 * #993: Fix documentation upload by correcting
2110 rendering of content-type in _build_multipart
2116 * #988: Trap ``os.unlink`` same as ``os.remove`` in
2117 ``auto_chmod`` error handler.
2119 * #983: Fixes to invalid escape sequence deprecations on
2125 * #941: In the upload command, if the username is blank,
2126 default to ``getpass.getuser()``.
2128 * #971: Correct distutils findall monkeypatch to match
2129 appropriate versions (namely Python 3.4.6).
2134 * #966: Add support for reading dist-info metadata and
2135 thus locating Distributions from zip files.
2137 * #968: Allow '+' and '!' in egg fragments
2138 so that it can take package names that contain
2139 PEP 440 conforming version specifiers.
2144 * #953: More aggressively employ the compatibility issue
2145 originally added in #706.
2150 * #930: ``build_info`` now accepts two new parameters
2151 to optimize and customize the building of C libraries.
2156 * #947: Loosen restriction on the version of six required,
2157 restoring compatibility with environments relying on
2158 six 1.6.0 and later.
2163 * #882: Ensure extras are honored when building the
2165 * #913: Fix issue in develop if package directory has
2171 * #935: Fix glob syntax in graft.
2176 * #581: Instead of vendoring the growing list of
2177 dependencies that Setuptools requires to function,
2178 Setuptools now requires these dependencies just like
2179 any other project. Unlike other projects, however,
2180 Setuptools cannot rely on ``setup_requires`` to
2181 demand the dependencies it needs to install because
2182 its own machinery would be necessary to pull those
2183 dependencies if not present (a bootstrapping problem).
2184 As a result, Setuptools no longer supports self upgrade or
2185 installation in the general case. Instead, users are
2186 directed to use pip to install and upgrade using the
2187 ``wheel`` distributions of setuptools.
2189 Users are welcome to contrive other means to install
2190 or upgrade Setuptools using other means, such as
2191 pre-installing the Setuptools dependencies with pip
2192 or a bespoke bootstrap tool, but such usage is not
2193 recommended and is not supported.
2195 As discovered in #940, not all versions of pip will
2196 successfully install Setuptools from its pre-built
2197 wheel. If you encounter issues with "No module named
2198 six" or "No module named packaging", especially
2199 following a line "Running setup.py egg_info for package
2200 setuptools", then your pip is not new enough.
2202 There's an additional issue in pip where setuptools
2203 is upgraded concurrently with other source packages,
2204 described in pip #4253. The proposed workaround is to
2205 always upgrade Setuptools first prior to upgrading
2206 other packages that would upgrade Setuptools.
2211 * #921: Correct issue where certifi fallback not being
2217 Installation via pip, as indicated in the `Python Packaging
2218 User's Guide <https://packaging.python.org/installing/>`_,
2219 is the officially-supported mechanism for installing
2220 Setuptools, and this recommendation is now explicit in the
2221 much more concise README.
2223 Other edits and tweaks were made to the documentation. The
2224 codebase is unchanged.
2229 * #619: Removed support for the ``tag_svn_revision``
2230 distribution option. If Subversion tagging support is
2231 still desired, consider adding the functionality to
2232 setuptools_svn in setuptools_svn #2.
2237 * #866: Use ``dis.Bytecode`` on Python 3.4 and later in
2238 ``setuptools.depends``.
2243 * #889: Backport proposed fix for disabling interpolation in
2244 distutils.Distribution.parse_config_files.
2249 * #884: Restore support for running the tests under
2250 `pytest-runner <https://github.com/pytest-dev/pytest-runner>`_
2251 by ensuring that PYTHONPATH is honored in tests invoking
2257 * #706: Add rmtree compatibility shim for environments where
2258 rmtree fails when passed a unicode string.
2263 * #893: Only release sdist in zip format as warehouse now
2264 disallows releasing two different formats.
2269 * #704: More selectively ensure that 'rmtree' is not invoked with
2270 a byte string, enabling it to remove files that are non-ascii,
2273 * #712: In 'sandbox.run_setup', ensure that ``__file__`` is
2274 always a ``str``, modeling the behavior observed by the
2275 interpreter when invoking scripts and modules.
2280 * #891: In 'test' command on test failure, raise DistutilsError,
2281 suppression invocation of subsequent commands.
2286 * #890: Revert #849. ``global-exclude .foo`` will not match all
2287 ``*.foo`` files any more. Package authors must add an explicit
2288 wildcard, such as ``global-exclude *.foo``, to match all
2289 ``.foo`` files. See #886, #849.
2294 * #885: Fix regression where 'pkg_resources._rebuild_mod_path'
2295 would fail when a namespace package's '__path__' was not
2296 a list with a sort attribute.
2301 * #250: Install '-nspkg.pth' files for packages installed
2302 with 'setup.py develop'. These .pth files allow
2303 namespace packages installed by pip or develop to
2304 co-mingle. This change required the removal of the
2305 change for #805 and pip #1924, introduced in 28.3.0 and implicated
2306 in #870, but means that namespace packages not in a
2307 site packages directory will no longer work on Python
2308 earlier than 3.5, whereas before they would work on
2309 Python not earlier than 3.3.
2314 * #879: For declarative config:
2316 - read_configuration() now accepts ignore_option_errors argument. This allows scraping tools to read metadata without a need to download entire packages. E.g. we can gather some stats right from GitHub repos just by downloading setup.cfg.
2318 - packages find: directive now supports fine tuning from a subsection. The same arguments as for find() are accepted.
2323 * #394 via #862: Added support for `declarative package
2324 config in a setup.cfg file
2325 <https://setuptools.pypa.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files>`_.
2330 * #850: In test command, invoke unittest.main with
2331 indication not to exit the process.
2336 * #854: Bump to vendored Packaging 16.8.
2341 * #846: Also trap 'socket.error' when opening URLs in
2344 * #849: Manifest processing now matches the filename
2345 pattern anywhere in the filename and not just at the
2346 start. Restores behavior found prior to 28.5.0.
2351 * #864: Drop support for Python 3.2. Systems requiring
2352 Python 3.2 support must use 'setuptools < 30'.
2354 * #825: Suppress warnings for single files.
2356 * #830 via #843: Once again restored inclusion of data
2357 files to sdists, but now trap TypeError caused by
2358 techniques employed rjsmin and similar.
2363 * #861: Re-release of v29.0.1 with the executable script
2364 launchers bundled. Now, launchers are included by default
2365 and users that want to disable this behavior must set the
2366 environment variable
2367 'SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES' to
2368 a false value like "false" or "0".
2373 * #841: Drop special exception for packages invoking
2374 win32com during the build/install process. See
2375 Distribute #118 for history.
2380 * #629: Per the discussion, refine the sorting to use version
2381 value order for more accurate detection of the latest
2382 available version when scanning for packages. See also
2385 * #837: Rely on the config var "SO" for Python 3.3.0 only
2386 when determining the ext filename.
2391 * #827: Update PyPI root for dependency links.
2393 * #833: Backed out changes from #830 as the implementation
2394 seems to have problems in some cases.
2399 * #832: Moved much of the namespace package handling
2400 functionality into a separate module for re-use in something
2402 * #830: ``sdist`` command no longer suppresses the inclusion
2403 of data files, re-aligning with the expectation of distutils
2404 and addressing #274 and #521.
2409 * #816: Fix manifest file list order in tests.
2414 * #629: When scanning for packages, ``pkg_resources`` now
2415 ignores empty egg-info directories and gives precedence to
2416 packages whose versions are lexicographically greatest,
2417 a rough approximation for preferring the latest available
2423 * #810: Tests are now invoked with tox and not setup.py test.
2424 * #249 and #450 via #764: Avoid scanning the whole tree
2425 when building the manifest. Also fixes a long-standing bug
2426 where patterns in ``MANIFEST.in`` had implicit wildcard
2427 matching. This caused ``global-exclude .foo`` to exclude
2428 all ``*.foo`` files, but also ``global-exclude bar.py`` to
2429 exclude ``foo_bar.py``.
2434 * #732: Now extras with a hyphen are honored per PEP 426.
2435 * #811: Update to pyparsing 2.1.10.
2436 * Updated ``setuptools.command.sdist`` to re-use most of
2437 the functionality directly from ``distutils.command.sdist``
2438 for the ``add_defaults`` method with strategic overrides.
2439 See #750 for rationale.
2440 * #760 via #762: Look for certificate bundle where SUSE
2441 Linux typically presents it. Use ``certifi.where()`` to locate
2447 * #809: In ``find_packages()``, restore support for excluding
2448 a parent package without excluding a child package.
2450 * #805: Disable ``-nspkg.pth`` behavior on Python 3.3+ where
2451 PEP-420 functionality is adequate. Fixes pip #1924.
2456 * #803: Bump certifi to 2016.9.26.
2461 * #733: Do not search excluded directories for packages.
2462 This introduced a backwards incompatible change in ``find_packages()``
2463 so that ``find_packages(exclude=['foo']) == []``, excluding subpackages of ``foo``.
2464 Previously, ``find_packages(exclude=['foo']) == ['foo.bar']``,
2465 even though the parent ``foo`` package was excluded.
2467 * #795: Bump certifi.
2469 * #719: Suppress decoding errors and instead log a warning
2470 when metadata cannot be decoded.
2475 * #790: In MSVC monkeypatching, explicitly patch each
2476 function by name in the target module instead of inferring
2477 the module from the function's ``__module__``. Improves
2478 compatibility with other packages that might have previously
2479 patched distutils functions (i.e. NumPy).
2484 * #794: In test command, add installed eggs to PYTHONPATH
2485 when invoking tests so that subprocesses will also have the
2486 dependencies available. Fixes `tox 330
2487 <https://github.com/tox-dev/tox/issues/330>`_.
2489 * #795: Update vendored pyparsing 2.1.9.
2494 * #520 and #513: Suppress ValueErrors in fixup_namespace_packages
2497 * Nicer, more consistent interfaces for msvc monkeypatching.
2502 * #779 via #781: Fix circular import.
2507 * #778: Fix MSVC monkeypatching.
2512 * Introduce the (private) ``monkey`` module to encapsulate
2513 the distutils monkeypatching behavior.
2518 * Now use Warehouse by default for
2519 ``upload``, patching ``distutils.config.PyPIRCCommand`` to
2520 affect default behavior.
2522 Any config in .pypirc should be updated to replace
2524 https://pypi.python.org/pypi/
2528 https://upload.pypi.org/legacy/
2530 Similarly, any passwords stored in the keyring should be
2531 updated to use this new value for "system".
2533 The ``upload_docs`` command will continue to use the python.org
2534 site, but the command is now deprecated. Users are urged to use
2535 Read The Docs instead.
2537 * #776: Use EXT_SUFFIX for py_limited_api renaming.
2539 * #774 and #775: Use LegacyVersion from packaging when
2540 detecting numpy versions.
2545 * Re-release of 26.1.0 with pytest pinned to allow for automated
2546 deployment and thus proper packaging environment variables,
2547 fixing issues with missing executable launchers.
2552 * #763: ``pkg_resources.get_default_cache`` now defers to the
2553 `appdirs project <https://pypi.org/project/appdirs>`_ to
2554 resolve the cache directory. Adds a vendored dependency on
2555 appdirs to pkg_resources.
2560 * #748: By default, sdists are now produced in gzipped tarfile
2561 format by default on all platforms, adding forward compatibility
2562 for the same behavior in Python 3.6 (See Python #27819).
2564 * #459 via #736: On Windows with script launchers,
2565 sys.argv[0] now reflects
2566 the name of the entry point, consistent with the behavior in
2567 distlib and pip wrappers.
2569 * #752 via #753: When indicating ``py_limited_api`` to Extension,
2570 it must be passed as a keyword argument.
2575 * Add Extension(py_limited_api=True). When set to a truthy value,
2576 that extension gets a filename appropriate for code using Py_LIMITED_API.
2577 When used correctly this allows a single compiled extension to work on
2578 all future versions of CPython 3.
2579 The py_limited_api argument only controls the filename. To be
2580 compatible with multiple versions of Python 3, the C extension
2581 will also need to set -DPy_LIMITED_API=... and be modified to use
2582 only the functions in the limited API.
2587 * #739 Fix unquoted libpaths by fixing compatibility between ``numpy.distutils`` and ``distutils._msvccompiler`` for numpy < 1.11.2 (Fix issue #728, error also fixed in Numpy).
2589 * #731: Bump certifi.
2591 * Style updates. See #740, #741, #743, #744, #742, #747.
2593 * #735: include license file.
2598 * #612 via #730: Add a LICENSE file which needs to be provided by the terms of
2604 * #725: revert ``library_dir_option`` patch (Error is related to ``numpy.distutils`` and make errors on non Numpy users).
2610 * #723: Improve patch for ``library_dir_option``.
2617 * #707: Fix Python 2 compatibility for MSVC by catching errors properly.
2618 * #715: Fix unquoted libpaths by patching ``library_dir_option``.
2623 * #714 and #704: Revert fix as it breaks other components
2624 downstream that can't handle unicode. See #709, #710,
2630 * #704: Fix errors when installing a zip sdist that contained
2631 files named with non-ascii characters on Windows would
2632 crash the install when it attempted to clean up the build.
2633 * #646: MSVC compatibility - catch errors properly in
2634 RegistryInfo.lookup.
2635 * #702: Prevent UnboundLocalError when initial working_set
2641 * #686: Fix issue in sys.path ordering by pkg_resources when
2642 rewrite technique is "raw".
2643 * #699: Fix typo in msvc support.
2648 * #609: Setuptools will now try to download a distribution from
2649 the next possible download location if the first download fails.
2650 This means you can now specify multiple links as ``dependency_links``
2651 and all links will be tried until a working download link is encountered.
2656 * #688: Fix AttributeError in setup.py when invoked not from
2657 the current directory.
2662 * Cleanup of setup.py script.
2664 * Fixed documentation builders by allowing setup.py
2665 to be imported without having bootstrapped the
2668 * More style cleanup. See #677, #678, #679, #681, #685.
2673 * #674: Default ``sys.path`` manipulation by easy-install.pth
2674 is now "raw", meaning that when writing easy-install.pth
2675 during any install operation, the ``sys.path`` will not be
2676 rewritten and will no longer give preference to easy_installed
2679 To retain the old behavior when using any easy_install
2680 operation (including ``setup.py install`` when setuptools is
2681 present), set the environment variable:
2683 SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite
2685 This project hopes that that few if any environments find it
2686 necessary to retain the old behavior, and intends to drop
2687 support for it altogether in a future release. Please report
2688 any relevant concerns in the ticket for this change.
2693 * #398: Fix shebang handling on Windows in script
2694 headers where spaces in ``sys.executable`` would
2695 produce an improperly-formatted shebang header,
2696 introduced in 12.0 with the fix for #188.
2698 * #663, #670: More style updates.
2703 * #516: Disable ``os.link`` to avoid hard linking
2704 in ``sdist.make_distribution``, avoiding errors on
2705 systems that support hard links but not on the
2706 file system in which the build is occurring.
2711 * #667: Update Metadata-Version to 1.2 when
2712 ``python_requires`` is supplied.
2717 * #631: Add support for ``python_requires`` keyword.
2722 * More style updates. See #660, #661, #641.
2727 * #659: ``setup.py`` now will fail fast and with a helpful
2728 error message when the necessary metadata is missing.
2729 * More style updates. See #656, #635, #640,
2730 #644, #650, #652, and #655.
2735 * Updated style in much of the codebase to match
2736 community expectations. See #632, #633, #634,
2737 #637, #639, #638, #642, #648.
2742 * If MSVC++14 is needed ``setuptools.msvc`` now redirect
2743 user to Visual C++ Build Tools web page.
2748 * #625 and #626: Fixes on ``setuptools.msvc`` mainly
2749 for Python 2 and Linux.
2754 * Pull Request #174: Add more aggressive support for
2755 standalone Microsoft Visual C++ compilers in
2756 msvc9compiler patch.
2757 Particularly : Windows SDK 6.1 and 7.0
2758 (MSVC++ 9.0), Windows SDK 7.1 (MSVC++ 10.0),
2759 Visual C++ Build Tools 2015 (MSVC++14)
2760 * Renamed ``setuptools.msvc9_support`` to
2761 ``setuptools.msvc``.
2766 Re-release of v23.2.0, which was missing the intended
2769 * #623: Remove used of deprecated 'U' flag when reading
2775 * #619: Deprecated ``tag_svn_revision`` distribution
2781 * #611: Removed ARM executables for CLI and GUI script
2782 launchers on Windows. If this was a feature you cared
2783 about, please comment in the ticket.
2784 * #604: Removed docs building support. The project
2785 now relies on documentation hosted at
2786 https://setuptools.pypa.io/.
2791 * #604: Restore repository for upload_docs command
2792 to restore publishing of docs during release.
2797 * #589: Upload releases to pypi.io using the upload
2798 hostname and legacy path.
2803 * #589: Releases are now uploaded to pypi.io (Warehouse)
2804 even when releases are made on Twine via Travis.
2809 * #589: Releases are now uploaded to pypi.io (Warehouse).
2814 * #190: On Python 2, if unicode is passed for packages to
2815 ``build_py`` command, it will be handled just as with
2821 Intended to be v21.3.0, but jaraco accidentally released as
2824 * #598: Setuptools now lists itself first in the User-Agent
2825 for web requests, better following the guidelines in
2827 <https://tools.ietf.org/html/rfc7231#section-5.5.3>`_.
2832 * Minor fixes to changelog and docs.
2837 * #261: Exclude directories when resolving globs in
2843 * #539: In the easy_install get_site_dirs, honor all
2844 paths found in ``site.getsitepackages``.
2849 * #572: In build_ext, now always import ``_CONFIG_VARS``
2850 from ``distutils`` rather than from ``sysconfig``
2851 to allow ``distutils.sysconfig.customize_compiler``
2852 configure the OS X compiler for ``-dynamiclib``.
2857 * Removed ez_setup.py from Setuptools sdist. The
2858 bootstrap script will be maintained in its own
2859 branch and should be generally be retrieved from
2860 its canonical location at
2861 https://bootstrap.pypa.io/ez_setup.py.
2866 * #553: egg_info section is now generated in a
2867 deterministic order, matching the order generated
2868 by earlier versions of Python. Except on Python 2.6,
2869 order is preserved when existing settings are present.
2870 * #556: Update to Packaging 16.7, restoring support
2871 for deprecated ``python_implmentation`` marker.
2872 * #555: Upload command now prompts for a password
2873 when uploading to PyPI (or other repository) if no
2874 password is present in .pypirc or in the keyring.
2879 * #548: Update certify version to 2016.2.28
2880 * #545: Safely handle deletion of non-zip eggs in rotate
2886 * Issue #544: Fix issue with extra environment marker
2887 processing in WorkingSet due to refactor in v20.7.0.
2892 * Issue #543: Re-release so that latest release doesn't
2893 cause déjà vu with distribute and setuptools 0.7 in
2899 * Refactored extra environment marker processing
2901 * Issue #533: Fixed intermittent test failures.
2902 * Issue #536: In msvc9_support, trap additional exceptions
2903 that might occur when importing
2904 ``distutils.msvc9compiler`` in mingw environments.
2905 * Issue #537: Provide better context when package
2906 metadata fails to decode in UTF-8.
2911 * Issue #523: Restored support for environment markers,
2912 now honoring 'extra' environment markers.
2917 * Issue #523: Disabled support for environment markers
2918 introduced in v20.5.
2923 * Issue #503: Restore support for PEP 345 environment
2924 markers by updating to Packaging 16.6.
2929 * New release process that relies on
2930 `bumpversion <https://github.com/peritus/bumpversion>`_
2931 and Travis CI for continuous deployment.
2932 * Project versioning semantics now follow
2933 `semver <https://semver.org>`_ precisely.
2934 The 'v' prefix on version numbers now also allows
2935 version numbers to be referenced in the changelog,
2936 e.g. http://setuptools.pypa.io/en/latest/history.html#v20-6-0.
2941 * BB Pull Request #185, #470: Add support for environment markers
2942 in requirements in install_requires, setup_requires,
2943 tests_require as well as adding a test for the existing
2944 extra_requires machinery.
2949 * Issue #422: Moved hosting to
2950 `Github <https://github.com/pypa/setuptools>`_
2951 from `Bitbucket <https://bitbucket.org/pypa/setuptools>`_.
2952 Issues have been migrated, though all issues and comments
2953 are attributed to bb-migration. So if you have a particular
2954 issue or issues to which you've been subscribed, you will
2955 want to "watch" the equivalent issue in Github.
2956 The Bitbucket project will be retained for the indefinite
2957 future, but Github now hosts the canonical project repository.
2962 * Issue #519: Remove import hook when reloading the
2963 ``pkg_resources`` module.
2964 * BB Pull Request #184: Update documentation in ``pkg_resources``
2965 around new ``Requirement`` implementation.
2970 * BB Pull Request #179: ``pkg_resources.Requirement`` objects are
2971 now a subclass of ``packaging.requirements.Requirement``,
2972 allowing any environment markers and url (if any) to be
2973 affiliated with the requirement
2974 * BB Pull Request #179: Restore use of RequirementParseError
2975 exception unintentionally dropped in 20.2.
2980 * Issue #502: Correct regression in parsing of multiple
2981 version specifiers separated by commas and spaces.
2986 * Issue #499: Restore compatibility for legacy versions
2987 by bumping to packaging 16.4.
2992 * Changelog now includes release dates and links to PEPs.
2993 * BB Pull Request #173: Replace dual PEP 345 _markerlib implementation
2994 and PEP 426 implementation of environment marker support from
2995 packaging 16.1 and PEP 508. Fixes Issue #122.
2996 See also BB Pull Request #175, BB Pull Request #168, and
2997 BB Pull Request #164. Additionally:
2999 - ``Requirement.parse`` no longer retains the order of extras.
3000 - ``parse_requirements`` now requires that all versions be
3001 PEP-440 compliant, as revealed in #499. Packages released
3002 with invalid local versions should be re-released using
3003 the proper local version syntax, e.g. ``mypkg-1.0+myorg.1``.
3008 * Update ``upload_docs`` command to also honor keyring
3009 for password resolution.
3014 * Added support for using passwords from keyring in the upload
3015 command. See `the upload docs
3016 <https://setuptools.pypa.io/en/latest/setuptools.html#upload-upload-source-and-or-egg-distributions-to-pypi>`_
3022 * Issue #118: Once again omit the package metadata (egg-info)
3023 from the list of outputs in ``--record``. This version of setuptools
3024 can no longer be used to upgrade pip earlier than 6.0.
3029 * Off-project PR: `0dcee79 <https://github.com/pypa/setuptools/commit/0dcee791dfdcfacddaaec79b29f30a347a147413>`_ and `f9bd9b9 <https://github.com/pypa/setuptools/commit/f9bd9b9f5df54ef5a0bf8d16c3a889ab8c640580>`_
3030 For FreeBSD, also `honor root certificates from ca_root_nss <https://github.com/pypa/setuptools/commit/3ae46c30225eb46e1f5aada1a19e88b79f04dc72>`_.
3035 * Issue #491: Correct regression incurred in 19.4 where
3036 a double-namespace package installed using pip would
3042 * Restore compatibility for PyPy 3 compatibility lost in
3043 19.4.1 addressing Issue #487.
3044 * ``setuptools.launch`` shim now loads scripts in a new
3045 namespace, avoiding getting relative imports from
3046 the setuptools package on Python 2.
3051 * Added a new entry script ``setuptools.launch``,
3052 implementing the shim found in
3053 ``pip.util.setuptools_build``. Use this command to launch
3054 distutils-only packages under setuptools in the same way that
3055 pip does, causing the setuptools monkeypatching of distutils
3056 to be invoked prior to invoking a script. Useful for debugging
3057 or otherwise installing a distutils-only package under
3058 setuptools when pip isn't available or otherwise does not
3059 expose the desired functionality. For example::
3061 $ python -m setuptools.launch setup.py develop
3063 * Issue #488: Fix dual manifestation of Extension class in
3064 extension packages installed as dependencies when Cython
3070 * Issue #486: Correct TypeError when getfilesystemencoding
3072 * Issue #139: Clarified the license as MIT.
3073 * BB Pull Request #169: Removed special handling of command
3074 spec in scripts for Jython.
3079 * Issue #487: Use direct invocation of ``importlib.machinery``
3080 in ``pkg_resources`` to avoid missing detection on relevant
3086 * Issue #341: Correct error in path handling of package data
3087 files in ``build_py`` command when package is empty.
3088 * Distribute #323, Issue #141, Issue #207, and
3089 BB Pull Request #167: Another implementation of
3090 ``pkg_resources.WorkingSet`` and ``pkg_resources.Distribution``
3091 that supports replacing an extant package with a new one,
3092 allowing for setup_requires dependencies to supersede installed
3093 packages for the session.
3098 * Issue #229: Implement new technique for readily incorporating
3099 dependencies conditionally from vendored copies or primary
3100 locations. Adds a new dependency on six.
3105 * BB Pull Request #163: Add get_command_list method to Distribution.
3106 * BB Pull Request #162: Add missing whitespace to multiline string
3112 * Issue #476: Cast version to string (using default encoding)
3113 to avoid creating Unicode types on Python 2 clients.
3114 * Issue #477: In Powershell downloader, use explicit rendering
3115 of strings, rather than rely on ``repr``, which can be
3116 incorrect (especially on Python 2).
3121 * Issue #215: The bootstrap script ``ez_setup.py`` now
3122 automatically detects
3123 the latest version of setuptools (using PyPI JSON API) rather
3124 than hard-coding a particular value.
3125 * Issue #475: Fix incorrect usage in _translate_metadata2.
3130 * Issue #442: Use RawConfigParser for parsing .pypirc file.
3131 Interpolated values are no longer honored in .pypirc files.
3136 * Issue #440: Prevent infinite recursion when a SandboxViolation
3137 or other UnpickleableException occurs in a sandbox context
3138 with setuptools hidden. Fixes regression introduced in Setuptools
3144 * Deprecated ``egg_info.get_pkg_info_revision``.
3145 * Issue #471: Don't rely on repr for an HTML attribute value in
3147 * Issue #419: Avoid errors in FileMetadata when the metadata directory
3149 * Issue #472: Remove deprecated use of 'U' in mode parameter
3155 * Issue #469: Refactored logic for Issue #419 fix to re-use metadata
3156 loading from Provider.
3161 * Update dependency on certify.
3162 * BB Pull Request #160: Improve detection of gui script in
3163 ``easy_install._adjust_header``.
3164 * Made ``test.test_args`` a non-data property; alternate fix
3165 for the issue reported in BB Pull Request #155.
3166 * Issue #453: In ``ez_setup`` bootstrap module, unload all
3167 ``pkg_resources`` modules following download.
3168 * BB Pull Request #158: Honor PEP-488 when excluding
3169 files for namespace packages.
3170 * Issue #419 and BB Pull Request #144: Add experimental support for
3171 reading the version info from distutils-installed metadata rather
3172 than using the version in the filename.
3177 * Issue #464: Correct regression in invocation of superclass on old-style
3183 * Issue #439: When installing entry_point scripts under development,
3184 omit the version number of the package, allowing any version of the
3190 * In preparation for dropping support for Python 3.2, a warning is
3191 now logged when pkg_resources is imported on Python 3.2 or earlier
3193 * `Add support for python_platform_implementation environment marker
3194 <https://github.com/pypa/setuptools/commit/94416707fd59a65f4a8f7f70541d6b3fc018b626>`_.
3195 * `Fix dictionary mutation during iteration
3196 <https://github.com/pypa/setuptools/commit/57ebfa41e0f96b97e599ecd931b7ae8a143e096e>`_.
3201 * Issue #446: Test command now always invokes unittest, even
3202 if no test suite is supplied.
3207 * Correct another regression in setuptools.findall
3208 where the fix for Python #12885 was lost.
3213 * Issue #425: Correct regression in setuptools.findall.
3218 * BB Pull Request #135: Setuptools now allows disabling of
3219 the manipulation of the sys.path
3220 during the processing of the easy-install.pth file. To do so, set
3221 the environment variable ``SETUPTOOLS_SYS_PATH_TECHNIQUE`` to
3222 anything but "rewrite" (consider "raw"). During any install operation
3223 with manipulation disabled, setuptools packages will be appended to
3226 Future versions may change the default behavior to disable
3227 manipulation. If so, the default behavior can be retained by setting
3228 the variable to "rewrite".
3230 * Issue #257: ``easy_install --version`` now shows more detail
3231 about the installation location and Python version.
3233 * Refactor setuptools.findall in preparation for re-submission
3239 * Issue #412: More efficient directory search in ``find_packages``.
3244 * Upgrade to vendored packaging 15.3.
3249 * Issue #401: Fix failure in test suite.
3254 * Dropped support for builds with Pyrex. Only Cython is supported.
3255 * Issue #288: Detect Cython later in the build process, after
3256 ``setup_requires`` dependencies are resolved.
3257 Projects backed by Cython can now be readily built
3258 with a ``setup_requires`` dependency. For example::
3260 ext = setuptools.Extension('mylib', ['src/CythonStuff.pyx', 'src/CStuff.c'])
3264 setup_requires=['cython'],
3267 For compatibility with older versions of setuptools, packagers should
3268 still include ``src/CythonMod.c`` in the source distributions or
3269 require that Cython be present before building source distributions.
3270 However, for systems with this build of setuptools, Cython will be
3271 downloaded on demand.
3272 * Issue #396: Fixed test failure on OS X.
3273 * BB Pull Request #136: Remove excessive quoting from shebang headers
3279 * Backed out unintended changes to pkg_resources, restoring removal of
3280 deprecated imp module (`ref
3281 <https://bitbucket.org/pypa/setuptools/commits/f572ec9563d647fa8d4ffc534f2af8070ea07a8b#comment-1881283>`_).
3286 * Issue #380: Add support for range operators on environment
3292 * Issue #378: Do not use internal importlib._bootstrap module.
3293 * Issue #390: Disallow console scripts with path separators in
3294 the name. Removes unintended functionality and brings behavior
3295 into parity with pip.
3300 * BB Pull Request #130: Better error messages for errors in
3301 parsed requirements.
3302 * BB Pull Request #133: Removed ``setuptools.tests`` from the
3304 * BB Pull Request #129: Address deprecation warning due to usage
3310 * Issue #373: Provisionally expose
3311 ``pkg_resources._initialize_master_working_set``, allowing for
3312 imperative re-initialization of the master working set.
3317 * Updated to Packaging 15.1 to address Packaging #28.
3318 * Fix ``setuptools.sandbox._execfile()`` with Python 3.1.
3323 * BB Pull Request #126: DistributionNotFound message now lists the package or
3324 packages that required it. E.g.::
3326 pkg_resources.DistributionNotFound: The 'colorama>=0.3.1' distribution was not found and is required by smlib.log.
3328 Note that zc.buildout once dependended on the string rendering of this
3329 message to determine the package that was not found. This expectation
3330 has since been changed, but older versions of buildout may experience
3331 problems. See Buildout #242 for details.
3336 * Issue #307: Removed PEP-440 warning during parsing of versions
3337 in ``pkg_resources.Distribution``.
3338 * Issue #364: Replace deprecated usage with recommended usage of
3339 ``EntryPoint.load``.
3344 * Issue #254: When creating temporary egg cache on Unix, use mode 755
3345 for creating the directory to avoid the subsequent warning if
3346 the directory is group writable.
3351 * Issue #137: Update ``Distribution.hashcmp`` so that Distributions with
3352 None for pyversion or platform can be compared against Distributions
3353 defining those attributes.
3358 * Issue #360: Removed undesirable behavior from test runs, preventing
3359 write tests and installation to system site packages.
3364 * BB Pull Request #125: Add ``__ne__`` to Requirement class.
3365 * Various refactoring of easy_install.
3370 * Bootstrap script now accepts ``--to-dir`` to customize save directory or
3371 allow for re-use of existing repository of setuptools versions. See
3372 BB Pull Request #112 for background.
3373 * Issue #285: ``easy_install`` no longer will default to installing
3374 packages to the "user site packages" directory if it is itself installed
3375 there. Instead, the user must pass ``--user`` in all cases to install
3376 packages to the user site packages.
3377 This behavior now matches that of "pip install". To configure
3378 an environment to always install to the user site packages, consider
3379 using the "install-dir" and "scripts-dir" parameters to easy_install
3380 through an appropriate distutils config file.
3385 * Issue #359: Include pytest.ini in the sdist so invocation of py.test on the
3386 sdist honors the pytest configuration.
3391 Re-release of 13.0. Intermittent connectivity issues caused the release
3392 process to fail and PyPI uploads no longer accept files for 13.0.
3397 * Issue #356: Back out BB Pull Request #119 as it requires Setuptools 10 or later
3398 as the source during an upgrade.
3399 * Removed build_py class from setup.py. According to 892f439d216e, this
3400 functionality was added to support upgrades from old Distribute versions,
3406 * BB Pull Request #119: Restore writing of ``setup_requires`` to metadata
3407 (previously added in 8.4 and removed in 9.0).
3412 * Documentation is now linked using the rst.linker package.
3413 * Fix ``setuptools.command.easy_install.extract_wininst_cfg()``
3414 with Python 2.6 and 2.7.
3415 * Issue #354. Added documentation on building setuptools
3421 * Issue #345: Unload all modules under pkg_resources during
3422 ``ez_setup.use_setuptools()``.
3423 * Issue #336: Removed deprecation from ``ez_setup.use_setuptools``,
3424 as it is clearly still used by buildout's bootstrap. ``ez_setup``
3425 remains deprecated for use by individual packages.
3426 * Simplified implementation of ``ez_setup.use_setuptools``.
3431 * BB Pull Request #118: Soften warning for non-normalized versions in
3437 * Issue #339: Correct Attribute reference in ``cant_write_to_target``.
3438 * Issue #336: Deprecated ``ez_setup.use_setuptools``.
3443 * Issue #335: Fix script header generation on Windows.
3448 * Fixed incorrect class attribute in ``install_scripts``. Tests would be nice.
3453 * Issue #331: Fixed ``install_scripts`` command on Windows systems corrupting
3459 * Restore ``setuptools.command.easy_install.sys_executable`` for pbr
3460 compatibility. For the future, tools should construct a CommandSpec
3466 * Issue #188: Setuptools now support multiple entities in the value for
3467 ``build.executable``, such that an executable of "/usr/bin/env my-python" may
3468 be specified. This means that systems with a specified executable whose name
3469 has spaces in the path must be updated to escape or quote that value.
3470 * Deprecated ``easy_install.ScriptWriter.get_writer``, replaced by ``.best()``
3471 with slightly different semantics (no force_windows flag).
3476 * Issue #327: Formalize and restore support for any printable character in an
3482 * Expose ``EntryPoint.resolve`` in place of EntryPoint._load, implementing the
3483 simple, non-requiring load. Deprecated all uses of ``EntryPoint._load``
3484 except for calling with no parameters, which is just a shortcut for
3485 ``ep.require(); ep.resolve();``.
3487 Apps currently invoking ``ep.load(require=False)`` should instead do the
3488 following if wanting to avoid the deprecating warning::
3490 getattr(ep, "resolve", lambda: ep.load(require=False))()
3495 * Pip #2326: Report deprecation warning at stacklevel 2 for easier diagnosis.
3500 * Issue #281: Since Setuptools 6.1 (Issue #268), a ValueError would be raised
3501 in certain cases where VersionConflict was raised with two arguments, which
3502 occurred in ``pkg_resources.WorkingSet.find``. This release adds support
3503 for indicating the dependent packages while maintaining support for
3504 a VersionConflict when no dependent package context is known. New unit tests
3505 now capture the expected interface.
3510 * Interop #3: Upgrade to Packaging 15.0; updates to PEP 440 so that >1.7 does
3511 not exclude 1.7.1 but does exclude 1.7.0 and 1.7.0.post1.
3516 * Issue #323: Fix regression in entry point name parsing.
3521 * Deprecated use of EntryPoint.load(require=False). Passing a boolean to a
3522 function to select behavior is an anti-pattern. Instead use
3523 ``Entrypoint._load()``.
3524 * Substantial refactoring of all unit tests. Tests are now much leaner and
3525 re-use a lot of fixtures and contexts for better clarity of purpose.
3530 * Issue #320: Added a compatibility implementation of
3531 ``sdist._default_revctrl``
3532 so that systems relying on that interface do not fail (namely, Ubuntu 12.04
3533 and similar Debian releases).
3538 * Issue #319: Fixed issue installing pure distutils packages.
3543 * Issue #313: Removed built-in support for subversion. Projects wishing to
3544 retain support for subversion will need to use a third party library. The
3545 extant implementation is being ported to `setuptools_svn
3546 <https://pypi.org/project/setuptools_svn/>`_.
3547 * Issue #315: Updated setuptools to hide its own loaded modules during
3548 installation of another package. This change will enable setuptools to
3549 upgrade (or downgrade) itself even when its own metadata and implementation
3555 * Prefer vendored packaging library `as recommended
3556 <https://github.com/pypa/setuptools/commit/170657b68f4b92e7e1bf82f5e19a831f5744af67>`_.
3561 * Issue #312: Restored presence of pkg_resources API tests (doctest) to sdist.
3566 * Issue #314: Disabled support for ``setup_requires`` metadata to avoid issue
3567 where Setuptools was unable to upgrade over earlier versions.
3572 * BB Pull Request #106: Now write ``setup_requires`` metadata.
3577 * Issue #311: Decoupled pkg_resources from setuptools once again.
3578 ``pkg_resources`` is now a package instead of a module.
3583 * Issue #306: Suppress warnings about Version format except in select scenarios
3584 (such as installation).
3589 * BB Pull Request #85: Search egg-base when adding egg-info to manifest.
3594 * Upgrade ``packaging`` to 14.5, giving preference to "rc" as designator for
3595 release candidates over "c".
3596 * PEP-440 warnings are now raised as their own class,
3597 ``pkg_resources.PEP440Warning``, instead of RuntimeWarning.
3598 * Disabled warnings on empty versions.
3603 * Upgrade ``packaging`` to 14.4, fixing an error where there is a
3604 different result for if 2.0.5 is contained within >2.0dev and >2.0.dev even
3605 though normalization rules should have made them equal.
3606 * Issue #296: Add warning when a version is parsed as legacy. This warning will
3607 make it easier for developers to recognize deprecated version numbers.
3612 * Issue #296: Restored support for ``__hash__`` on parse_version results.
3617 * Issue #296: Restored support for ``__getitem__`` and sort operations on
3618 parse_version result.
3623 * Issue #296: Restore support for iteration over parse_version result, but
3624 deprecated that usage with a warning. Fixes failure with buildout.
3629 * Implement PEP 440 within
3630 pkg_resources and setuptools. This change
3631 deprecates some version numbers such that they will no longer be installable
3632 without using the ``===`` escape hatch. See `the changes to test_resources
3633 <https://bitbucket.org/pypa/setuptools/commits/dcd552da643c4448056de84c73d56da6d70769d5#chg-setuptools/tests/test_resources.py>`_
3634 for specific examples of version numbers and specifiers that are no longer
3635 supported. Setuptools now "vendors" the `packaging
3636 <https://github.com/pypa/packaging>`_ library.
3641 * Issue #80, Issue #209: Eggs that are downloaded for ``setup_requires``,
3642 ``test_requires``, etc. are now placed in a ``./.eggs`` directory instead of
3643 directly in the current directory. This choice of location means the files
3644 can be readily managed (removed, ignored). Additionally,
3645 later phases or invocations of setuptools will not detect the package as
3646 already installed and ignore it for permanent install (See #209).
3648 This change is indicated as backward-incompatible as installations that
3649 depend on the installation in the current directory will need to account for
3650 the new location. Systems that ignore ``*.egg`` will probably need to be
3651 adapted to ignore ``.eggs``. The files will need to be manually moved or
3652 will be retrieved again. Most use cases will require no attention.
3657 * Issue #268: When resolving package versions, a VersionConflict now reports
3658 which package previously required the conflicting version.
3663 * Issue #262: Fixed regression in pip install due to egg-info directories
3664 being omitted. Re-opens Issue #118.
3669 * Issue #259: Fixed regression with namespace package handling on ``single
3670 version, externally managed`` installs.
3675 * Issue #100: When building a distribution, Setuptools will no longer match
3676 default files using platform-dependent case sensitivity, but rather will
3677 only match the files if their case matches exactly. As a result, on Windows
3678 and other case-insensitive file systems, files with names such as
3679 'readme.txt' or 'README.TXT' will be omitted from the distribution and a
3680 warning will be issued indicating that 'README.txt' was not found. Other
3681 filenames affected are:
3686 - setup.py (or the script name)
3689 Any users producing distributions with filenames that match those above
3690 case-insensitively, but not case-sensitively, should rename those files in
3691 their repository for better portability.
3692 * BB Pull Request #72: When using ``single_version_externally_managed``, the
3693 exclusion list now includes Python 3.2 ``__pycache__`` entries.
3694 * BB Pull Request #76 and BB Pull Request #78: lines in top_level.txt are now
3695 ordered deterministically.
3696 * Issue #118: The egg-info directory is now no longer included in the list
3698 * Issue #258: Setuptools now patches distutils msvc9compiler to
3699 recognize the specially-packaged compiler package for easy extension module
3700 support on Python 2.6, 2.7, and 3.2.
3705 * Issue #237: ``pkg_resources`` now uses explicit detection of Python 2 vs.
3706 Python 3, supporting environments where builtins have been patched to make
3707 Python 3 look more like Python 2.
3712 * Issue #240: Based on real-world performance measures against 5.4, zip
3713 manifests are now cached in all circumstances. The
3714 ``PKG_RESOURCES_CACHE_ZIP_MANIFESTS`` environment variable is no longer
3715 relevant. The observed "memory increase" referenced in the 5.4 release
3716 notes and detailed in Issue #154 was likely not an increase over the status
3717 quo, but rather only an increase over not storing the zip info at all.
3722 * Issue #242: Use absolute imports in svn_utils to avoid issues if the
3723 installing package adds an xml module to the path.
3728 * Issue #239: Fix typo in 5.5 such that fix did not take.
3733 * Issue #239: Setuptools now includes the setup_requires directive on
3734 Distribution objects and validates the syntax just like install_requires
3735 and tests_require directives.
3740 * Issue #236: Corrected regression in execfile implementation for Python 2.6.
3745 * Python #7776: (ssl_support) Correct usage of host for validation when
3746 tunneling for HTTPS.
3751 * Issue #154: ``pkg_resources`` will now cache the zip manifests rather than
3752 re-processing the same file from disk multiple times, but only if the
3753 environment variable ``PKG_RESOURCES_CACHE_ZIP_MANIFESTS`` is set. Clients
3754 that package many modules in the same zip file will see some improvement
3755 in startup time by enabling this feature. This feature is not enabled by
3756 default because it causes a substantial increase in memory usage.
3761 * Issue #185: Make svn tagging work on the new style SVN metadata.
3763 * Prune revision control directories (e.g .svn) from base path
3764 as well as sub-directories.
3769 * Added a `Developer Guide
3770 <https://setuptools.pypa.io/en/latest/developer-guide.html>`_ to the official
3772 * Some code refactoring and cleanup was done with no intended behavioral
3774 * During install_egg_info, the generated lines for namespace package .pth
3775 files are now processed even during a dry run.
3780 * Issue #202: Implemented more robust cache invalidation for the ZipImporter,
3781 building on the work in Issue #168. Special thanks to Jurko Gospodnetic and
3787 * Issue #220: Restored script templates.
3792 * Renamed script templates to end with .tmpl now that they no longer need
3793 to be processed by 2to3. Fixes spurious syntax errors during build/install.
3798 * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x.
3799 * Incidentally, script templates were updated not to include the triple-quote
3802 3.7.1 and 3.8.1 and 4.0.1
3803 -------------------------
3805 * Issue #213: Use legacy StringIO behavior for compatibility under pbr.
3806 * Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed
3807 from the available versions to install.
3812 * Issue #210: ``setup.py develop`` now copies scripts in binary mode rather
3813 than text mode, matching the behavior of the ``install`` command.
3818 * Extend Issue #197 workaround to include all Python 3 versions prior to
3824 * Issue #193: Improved handling of Unicode filenames when building manifests.
3829 * Issue #203: Honor proxy settings for Powershell downloader in the bootstrap
3835 * Issue #168: More robust handling of replaced zip files and stale caches.
3836 Fixes ZipImportError complaining about a 'bad local header'.
3841 * Issue #199: Restored ``install._install`` for compatibility with earlier
3847 * Issue #195: Follow symbolic links in find_packages (restoring behavior
3849 * Issue #197: On Python 3.1, PKG-INFO is now saved in a UTF-8 encoding instead
3850 of ``sys.getpreferredencoding`` to match the behavior on Python 2.6-3.4.
3851 * Issue #192: Preferred bootstrap location is now
3852 https://bootstrap.pypa.io/ez_setup.py (mirrored from former location).
3857 * Issue #184: Correct failure where find_package over-matched packages
3858 when directory traversal isn't short-circuited.
3863 * Issue #183: Really fix test command with Python 3.1.
3868 * Issue #183: Fix additional regression in test command on Python 3.1.
3873 * Issue #180: Fix regression in test command not caught by py.test-run tests.
3878 * Issue #176: Add parameter to the test command to support a custom test
3879 runner: --test-runner or -r.
3880 * Issue #177: Now assume most common invocation to install command on
3881 platforms/environments without stack support (issuing a warning). Setuptools
3882 now installs naturally on IronPython. Behavior on CPython should be
3888 * Add ``include`` parameter to ``setuptools.find_packages()``.
3893 * BB Pull Request #39: Add support for C++ targets from Cython ``.pyx`` files.
3894 * Issue #162: Update dependency on certifi to 1.0.1.
3895 * Issue #164: Update dependency on wincertstore to 0.2.
3900 * Issue #161: Restore Features functionality to allow backward compatibility
3901 (for Features) until the uses of that functionality is sufficiently removed.
3906 * Correct typo in previous bugfix.
3911 * Issue #157: Restore support for Python 2.6 in bootstrap script where
3912 ``zipfile.ZipFile`` does not yet have support for context managers.
3917 * Issue #125: Prevent Subversion support from creating a ~/.subversion
3918 directory just for checking the presence of a Subversion repository.
3919 * Issue #12: Namespace packages are now imported lazily. That is, the mere
3920 declaration of a namespace package in an egg on ``sys.path`` no longer
3921 causes it to be imported when ``pkg_resources`` is imported. Note that this
3922 change means that all of a namespace package's ``__init__.py`` files must
3923 include a ``declare_namespace()`` call in order to ensure that they will be
3924 handled properly at runtime. In 2.x it was possible to get away without
3925 including the declaration, but only at the cost of forcing namespace
3926 packages to be imported early, which 3.0 no longer does.
3927 * Issue #148: When building (bdist_egg), setuptools no longer adds
3928 ``__init__.py`` files to namespace packages. Any packages that rely on this
3929 behavior will need to create ``__init__.py`` files and include the
3930 ``declare_namespace()``.
3931 * Issue #7: Setuptools itself is now distributed as a zip archive in addition to
3932 tar archive. ez_setup.py now uses zip archive. This approach avoids the potential
3933 security vulnerabilities presented by use of tar archives in ez_setup.py.
3934 It also leverages the security features added to ZipFile.extract in Python 2.7.4.
3935 * Issue #65: Removed deprecated Features functionality.
3936 * BB Pull Request #28: Remove backport of ``_bytecode_filenames`` which is
3937 available in Python 2.6 and later, but also has better compatibility with
3938 Python 3 environments.
3939 * Issue #156: Fix spelling of __PYVENV_LAUNCHER__ variable.
3944 * Issue #141: Restored fix for allowing setup_requires dependencies to
3945 override installed dependencies during setup.
3946 * Issue #128: Fixed issue where only the first dependency link was honored
3947 in a distribution where multiple dependency links were supplied.
3952 * Issue #144: Read long_description using codecs module to avoid errors
3953 installing on systems where LANG=C.
3958 * Issue #139: Fix regression in re_finder for CVS repos (and maybe Git repos
3964 * Issue #129: Suppress inspection of ``*.whl`` files when searching for files
3965 in a zip-imported file.
3966 * Issue #131: Fix RuntimeError when constructing an egg fetcher.
3971 * Fix NameError during installation with Python implementations (e.g. Jython)
3972 not containing parser module.
3973 * Fix NameError in ``sdist:re_finder``.
3978 * Issue #124: Fixed error in list detection in upload_docs.
3983 * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox.
3984 * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring
3985 setuptools for those versions of Python should use setuptools 1.x.
3986 * Removed ``setuptools.command.easy_install.HAS_USER_SITE``. Clients
3987 expecting this boolean variable should use ``site.ENABLE_USER_SITE``
3989 * Removed ``pkg_resources.ImpWrapper``. Clients that expected this class
3990 should use ``pkgutil.ImpImporter`` instead.
3995 * Issue #116: Correct TypeError when reading a local package index on Python
4001 * Issue #114: Use ``sys.getfilesystemencoding`` for decoding config in
4002 ``bdist_wininst`` distributions.
4004 * Issue #105 and Issue #113: Establish a more robust technique for
4005 determining the terminal encoding::
4007 1. Try ``getpreferredencoding``
4008 2. If that returns US_ASCII or None, try the encoding from
4009 ``getdefaultlocale``. If that encoding was a "fallback" because Python
4010 could not figure it out from the environment or OS, encoding remains
4012 3. If the encoding is resolved, then make sure Python actually implements
4014 4. On the event of an error or unknown codec, revert to fallbacks
4015 (UTF-8 on Darwin, ASCII on everything else).
4016 5. On the encoding is 'mac-roman' on Darwin, use UTF-8 as 'mac-roman' was
4017 a bug on older Python releases.
4019 On a side note, it would seem that the encoding only matters for when SVN
4020 does not yet support ``--xml`` and when getting repository and svn version
4021 numbers. The ``--xml`` technique should yield UTF-8 according to some
4022 messages on the SVN mailing lists. So if the version numbers are always
4023 7-bit ASCII clean, it may be best to only support the file parsing methods
4024 for legacy SVN releases and support for SVN without the subprocess command
4025 would simple go away as support for the older SVNs does.
4030 * Issue #27: ``easy_install`` will now use credentials from .pypirc if
4031 present for connecting to the package index.
4032 * BB Pull Request #21: Omit unwanted newlines in ``package_index._encode_auth``
4033 when the username/password pair length indicates wrapping.
4038 * Issue #99: Fix filename encoding issues in SVN support.
4043 * Remove exuberant warning in SVN support when SVN is not used.
4048 * Address security vulnerability in SSL match_hostname check as reported in
4050 * Prefer `backports.ssl_match_hostname
4051 <https://pypi.org/project/backports.ssl_match_hostname/>`_ for backport
4052 implementation if present.
4053 * Correct NameError in ``ssl_support`` module (``socket.error``).
4058 * Issue #26: Add support for SVN 1.7. Special thanks to Philip Thiem for the
4060 * Issue #93: Wheels are now distributed with every release. Note that as
4061 reported in Issue #108, as of Pip 1.4, scripts aren't installed properly
4062 from wheels. Therefore, if using Pip to install setuptools from a wheel,
4063 the ``easy_install`` command will not be available.
4064 * Setuptools "natural" launcher support, introduced in 1.0, is now officially
4070 * Fixed behavior of NameError handling in 'script template (dev).py' (script
4071 launcher for 'develop' installs).
4072 * ``ez_setup.py`` now ensures partial downloads are cleaned up following
4074 * Distribute #363 and Issue #55: Skip an sdist test that fails on locales
4080 * Distribute #349: ``sandbox.execfile`` now opens the target file in binary
4081 mode, thus honoring a BOM in the file when compiled.
4086 * Issue #69: Second attempt at fix (logic was reversed).
4091 * Issue #77: Fix error in upload command (Python 2.4).
4096 * Fix NameError in previous patch.
4101 * Issue #69: Correct issue where 404 errors are returned for URLs with
4102 fragments in them (such as #egg=).
4107 * Issue #75: Add ``--insecure`` option to ez_setup.py to accommodate
4108 environments where a trusted SSL connection cannot be validated.
4109 * Issue #76: Fix AttributeError in upload command with Python 2.4.
4114 * Issue #71 (Distribute #333): EasyInstall now puts less emphasis on the
4115 condition when a host is blocked via ``--allow-hosts``.
4116 * Issue #72: Restored Python 2.4 compatibility in ``ez_setup.py``.
4121 * Issue #60: On Windows, Setuptools supports deferring to another launcher,
4122 such as Vinay Sajip's `pylauncher <https://bitbucket.org/pypa/pylauncher>`_
4123 (included with Python 3.3) to launch console and GUI scripts and not install
4124 its own launcher executables. This experimental functionality is currently
4125 only enabled if the ``SETUPTOOLS_LAUNCHER`` environment variable is set to
4126 "natural". In the future, this behavior may become default, but only after
4127 it has matured and seen substantial adoption. The ``SETUPTOOLS_LAUNCHER``
4128 also accepts "executable" to force the default behavior of creating launcher
4130 * Issue #63: Bootstrap script (ez_setup.py) now prefers Powershell, curl, or
4131 wget for retrieving the Setuptools tarball for improved security of the
4132 install. The script will still fall back to a simple ``urlopen`` on
4133 platforms that do not have these tools.
4134 * Issue #65: Deprecated the ``Features`` functionality.
4135 * Issue #52: In ``VerifyingHTTPSConn``, handle a tunnelled (proxied)
4138 Backward-Incompatible Changes
4139 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4141 This release includes a couple of backward-incompatible changes, but most if
4142 not all users will find 1.0 a drop-in replacement for 0.9.
4144 * Issue #50: Normalized API of environment marker support. Specifically,
4145 removed line number and filename from SyntaxErrors when returned from
4146 ``pkg_resources.invalid_marker``. Any clients depending on the specific
4147 string representation of exceptions returned by that function may need to
4148 be updated to account for this change.
4149 * Issue #50: SyntaxErrors generated by ``pkg_resources.invalid_marker`` are
4150 normalized for cross-implementation consistency.
4151 * Removed ``--ignore-conflicts-at-my-risk`` and ``--delete-conflicting``
4152 options to easy_install. These options have been deprecated since 0.6a11.
4157 * Issue #53: Fix NameErrors in ``_vcs_split_rev_from_url``.
4162 * Issue #49: Correct AttributeError on PyPy where a hashlib.HASH object does
4163 not have a ``.name`` attribute.
4164 * Issue #34: Documentation now refers to bootstrap script in code repository
4165 referenced by bookmark.
4166 * Add underscore-separated keys to environment markers (markerlib).
4171 * Issue #44: Test failure on Python 2.4 when MD5 hash doesn't have a ``.name``
4177 * Python #17980: Fix security vulnerability in SSL certificate validation.
4182 * Issue #43: Fix issue (introduced in 0.9.1) with version resolution when
4183 upgrading over other releases of Setuptools.
4188 * Issue #42: Fix new ``AttributeError`` introduced in last fix.
4193 * Issue #42: Fix regression where blank checksums would trigger an
4199 * Distribute #386: Allow other positional and keyword arguments to os.open.
4200 * Corrected dependency on certifi mis-referenced in 0.9.
4205 * ``package_index`` now validates hashes other than MD5 in download links.
4210 * Code base now runs on Python 2.4 - Python 3.3 without Python 2to3
4216 * Distribute #375: Yet another fix for yet another regression.
4221 * Distribute #375: Repair AttributeError created in last release (redo).
4222 * Issue #30: Added test for get_cache_path.
4227 * Distribute #375: Repair AttributeError created in last release.
4232 * Issue #21: Restore Python 2.4 compatibility in ``test_easy_install``.
4233 * Distribute #375: Merged additional warning from Distribute 0.6.46.
4234 * Now honor the environment variable
4235 ``SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT`` in addition to the now
4236 deprecated ``DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT``.
4241 * Issue #20: Fix comparison of parsed SVN version on Python 3.
4246 * Issue #1: Disable installation of Windows-specific files on non-Windows systems.
4247 * Use new sysconfig module with Python 2.7 or >=3.2.
4252 * Issue #14: Use markerlib when the ``parser`` module is not available.
4253 * Issue #10: ``ez_setup.py`` now uses HTTPS to download setuptools from PyPI.
4258 * Fix NameError (Issue #3) again - broken in bad merge.
4263 * Merged Setuptools and Distribute. See docs/merge.txt for details.
4265 Added several features that were slated for setuptools 0.6c12:
4267 * Index URL now defaults to HTTPS.
4268 * Added experimental environment marker support. Now clients may designate a
4269 PEP-426 environment marker for "extra" dependencies. Setuptools uses this
4270 feature in ``setup.py`` for optional SSL and certificate validation support
4271 on older platforms. Based on Distutils-SIG discussions, the syntax is
4272 somewhat tentative. There should probably be a PEP with a firmer spec before
4273 the feature should be considered suitable for use.
4274 * Added support for SSL certificate validation when installing packages from
4280 * Issue #3: Fixed NameError in SSL support.
4285 * Move warning check in ``get_cache_path`` to follow the directory creation
4286 to avoid errors when the cache path does not yet exist. Fixes the error
4287 reported in Distribute #375.
4292 * Correct AttributeError in ``ResourceManager.get_cache_path`` introduced in
4298 * Correct AttributeError in ``ResourceManager.get_cache_path`` introduced in
4304 * Distribute #375: Issue a warning if the PYTHON_EGG_CACHE or otherwise
4305 customized egg cache location specifies a directory that's group- or
4311 * Distribute #379: ``distribute_setup.py`` now traps VersionConflict as well,
4312 restoring ability to upgrade from an older setuptools version.
4317 * ``distribute_setup.py`` has been updated to allow Setuptools 0.7 to
4318 satisfy use_setuptools.
4323 * Distribute #378: Restore support for Python 2.4 Syntax (regression in 0.6.42).
4328 * External links finder no longer yields duplicate links.
4329 * Distribute #337: Moved site.py to setuptools/site-patch.py (graft of very old
4330 patch from setuptools trunk which inspired PR #31).
4335 * Distribute #27: Use public api for loading resources from zip files rather than
4336 the private method ``_zip_directory_cache``.
4337 * Added a new function ``easy_install.get_win_launcher`` which may be used by
4338 third-party libraries such as buildout to get a suitable script launcher.
4343 * Distribute #376: brought back cli.exe and gui.exe that were deleted in the
4349 * Add support for console launchers on ARM platforms.
4350 * Fix possible issue in GUI launchers where the subsystem was not supplied to
4352 * Launcher build script now refactored for robustness.
4353 * Distribute #375: Resources extracted from a zip egg to the file system now also
4354 check the contents of the file against the zip contents during each
4355 invocation of get_resource_filename.
4360 * Distribute #371: The launcher manifest file is now installed properly.
4365 * Distribute #143: Launcher scripts, including easy_install itself, are now
4366 accompanied by a manifest on 32-bit Windows environments to avoid the
4367 Installer Detection Technology and thus undesirable UAC elevation described
4368 in `this Microsoft article
4369 <http://technet.microsoft.com/en-us/library/cc709628%28WS.10%29.aspx>`_.
4374 * BB Pull Request #35: In Buildout #64, it was reported that
4375 under Python 3, installation of distutils scripts could attempt to copy
4376 the ``__pycache__`` directory as a file, causing an error, apparently only
4377 under Windows. Easy_install now skips all directories when processing
4384 Note this release is backward-incompatible with distribute 0.6.23-0.6.34 in
4385 how it parses version numbers.
4387 * Distribute #278: Restored compatibility with distribute 0.6.22 and setuptools
4388 0.6. Updated the documentation to match more closely with the version
4389 parsing as intended in setuptools 0.6.
4394 * Distribute #341: 0.6.33 fails to build under Python 2.4.
4399 * Fix 2 errors with Jython 2.5.
4400 * Fix 1 failure with Jython 2.5 and 2.7.
4401 * Disable workaround for Jython scripts on Linux systems.
4402 * Distribute #336: ``setup.py`` no longer masks failure exit code when tests fail.
4403 * Fix issue in pkg_resources where try/except around a platform-dependent
4404 import would trigger hook load failures on Mercurial. See pull request 32
4406 * Distribute #341: Fix a ResourceWarning.
4411 * Fix test suite with Python 2.6.
4412 * Fix some DeprecationWarnings and ResourceWarnings.
4413 * Distribute #335: Backed out ``setup_requires`` superseding installed requirements
4414 until regression can be addressed.
4419 * Distribute #303: Make sure the manifest only ever contains UTF-8 in Python 3.
4420 * Distribute #329: Properly close files created by tests for compatibility with
4422 * Work around Jython #1980 and Jython #1981.
4423 * Distribute #334: Provide workaround for packages that reference ``sys.__stdout__``
4424 such as numpy does. This change should address
4425 `virtualenv #359 <https://github.com/pypa/virtualenv/issues/359>`_ as long
4426 as the system encoding is UTF-8 or the IO encoding is specified in the
4429 PYTHONIOENCODING=utf8 pip install numpy
4431 * Fix for encoding issue when installing from Windows executable on Python 3.
4432 * Distribute #323: Allow ``setup_requires`` requirements to supersede installed
4433 requirements. Added some new keyword arguments to existing pkg_resources
4434 methods. Also had to updated how __path__ is handled for namespace packages
4435 to ensure that when a new egg distribution containing a namespace package is
4436 placed on sys.path, the entries in __path__ are found in the same order they
4437 would have been in had that egg been on the path when pkg_resources was
4443 * Distribute #328: Clean up temporary directories in distribute_setup.py.
4444 * Fix fatal bug in distribute_setup.py.
4449 * BB Pull Request #14: Honor file permissions in zip files.
4450 * Distribute #327: Merged pull request #24 to fix a dependency problem with pip.
4451 * Merged pull request #23 to fix https://github.com/pypa/virtualenv/issues/301.
4452 * If Sphinx is installed, the ``upload_docs`` command now runs ``build_sphinx``
4453 to produce uploadable documentation.
4454 * Distribute #326: ``upload_docs`` provided mangled auth credentials under Python 3.
4455 * Distribute #320: Fix check for "creatable" in distribute_setup.py.
4456 * Distribute #305: Remove a warning that was triggered during normal operations.
4457 * Distribute #311: Print metadata in UTF-8 independent of platform.
4458 * Distribute #303: Read manifest file with UTF-8 encoding under Python 3.
4459 * Distribute #301: Allow to run tests of namespace packages when using 2to3.
4460 * Distribute #304: Prevent import loop in site.py under Python 3.3.
4461 * Distribute #283: Re-enable scanning of ``*.pyc`` / ``*.pyo`` files on Python 3.3.
4462 * Distribute #299: The develop command didn't work on Python 3, when using 2to3,
4463 as the egg link would go to the Python 2 source. Linking to the 2to3'd code
4464 in build/lib makes it work, although you will have to rebuild the module
4466 * Distribute #306: Even if 2to3 is used, we build in-place under Python 2.
4467 * Distribute #307: Prints the full path when .svn/entries is broken.
4468 * Distribute #313: Support for sdist subcommands (Python 2.7)
4469 * Distribute #314: test_local_index() would fail an OS X.
4470 * Distribute #310: Non-ascii characters in a namespace __init__.py causes errors.
4471 * Distribute #218: Improved documentation on behavior of ``package_data`` and
4472 ``include_package_data``. Files indicated by ``package_data`` are now included
4474 * ``distribute_setup.py`` now allows a ``--download-base`` argument for retrieving
4475 distribute from a specified location.
4480 * Distribute #294: setup.py can now be invoked from any directory.
4481 * Scripts are now installed honoring the umask.
4482 * Added support for .dist-info directories.
4483 * Distribute #283: Fix and disable scanning of ``*.pyc`` / ``*.pyo`` files on
4489 * Support current snapshots of CPython 3.3.
4490 * Distribute now recognizes README.rst as a standard, default readme file.
4491 * Exclude 'encodings' modules when removing modules from sys.modules.
4492 Workaround for #285.
4493 * Distribute #231: Don't fiddle with system python when used with buildout
4499 * Distribute #183: Symlinked files are now extracted from source distributions.
4500 * Distribute #227: Easy_install fetch parameters are now passed during the
4501 installation of a source distribution; now fulfillment of setup_requires
4502 dependencies will honor the parameters passed to easy_install.
4507 * Distribute #258: Workaround a cache issue
4508 * Distribute #260: distribute_setup.py now accepts the --user parameter for
4509 Python 2.6 and later.
4510 * Distribute #262: package_index.open_with_auth no longer throws LookupError
4512 * Distribute #269: AttributeError when an exception occurs reading Manifest.in
4513 on late releases of Python.
4514 * Distribute #272: Prevent TypeError when namespace package names are unicode
4515 and single-install-externally-managed is used. Also fixes PIP issue
4517 * Distribute #273: Legacy script launchers now install with Python2/3 support.
4522 * Distribute #249: Added options to exclude 2to3 fixers
4527 * Distribute #244: Fixed a test
4528 * Distribute #243: Fixed a test
4529 * Distribute #239: Fixed a test
4530 * Distribute #240: Fixed a test
4531 * Distribute #241: Fixed a test
4532 * Distribute #237: Fixed a test
4533 * Distribute #238: easy_install now uses 64bit executable wrappers on 64bit Python
4534 * Distribute #208: Fixed parsed_versions, it now honors post-releases as noted in the documentation
4535 * Distribute #207: Windows cli and gui wrappers pass CTRL-C to child python process
4536 * Distribute #227: easy_install now passes its arguments to setup.py bdist_egg
4537 * Distribute #225: Fixed a NameError on Python 2.5, 2.4
4542 * Distribute #225: FIxed a regression on py2.4
4547 * Distribute #135: Include url in warning when processing URLs in package_index.
4548 * Distribute #212: Fix issue where easy_instal fails on Python 3 on windows installer.
4549 * Distribute #213: Fix typo in documentation.
4554 * Distribute #206: AttributeError: 'HTTPMessage' object has no attribute 'getheaders'
4559 * Distribute #210: Fixed a regression introduced by Distribute #204 fix.
4564 * Support 'DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT' environment
4565 variable to allow to disable installation of easy_install-${version} script.
4566 * Support Python >=3.1.4 and >=3.2.1.
4567 * Distribute #204: Don't try to import the parent of a namespace package in
4569 * Distribute #196: Tolerate responses with multiple Content-Length headers
4570 * Distribute #205: Sandboxing doesn't preserve working_set. Leads to setup_requires
4576 * Builds sdist gztar even on Windows (avoiding Distribute #193).
4577 * Distribute #192: Fixed metadata omitted on Windows when package_dir
4578 specified with forward-slash.
4579 * Distribute #195: Cython build support.
4580 * Distribute #200: Issues with recognizing 64-bit packages on Windows.
4585 * Fixed typo in bdist_egg
4586 * Several issues under Python 3 has been solved.
4587 * Distribute #146: Fixed missing DLL files after easy_install of windows exe package.
4592 * Distribute #170: Fixed unittest failure. Thanks to Toshio.
4593 * Distribute #171: Fixed race condition in unittests cause deadlocks in test suite.
4594 * Distribute #143: Fixed a lookup issue with easy_install.
4595 Thanks to David and Zooko.
4596 * Distribute #174: Fixed the edit mode when its used with setuptools itself
4601 * Distribute #160: 2.7 gives ValueError("Invalid IPv6 URL")
4602 * Distribute #150: Fixed using ~/.local even in a --no-site-packages virtualenv
4603 * Distribute #163: scan index links before external links, and don't use the md5 when
4604 comparing two distributions
4609 * Distribute #149: Fixed various failures on 2.3/2.4
4614 * Found another case of SandboxViolation - fixed
4615 * Distribute #15 and Distribute #48: Introduced a socket timeout of 15 seconds on url openings
4616 * Added indexsidebar.html into MANIFEST.in
4617 * Distribute #108: Fixed TypeError with Python3.1
4618 * Distribute #121: Fixed --help install command trying to actually install.
4619 * Distribute #112: Added an os.makedirs so that Tarek's solution will work.
4620 * Distribute #133: Added --no-find-links to easy_install
4621 * Added easy_install --user
4622 * Distribute #100: Fixed develop --user not taking '.' in PYTHONPATH into account
4623 * Distribute #134: removed spurious UserWarnings. Patch by VanLindberg
4624 * Distribute #138: cant_write_to_target error when setup_requires is used.
4625 * Distribute #147: respect the sys.dont_write_bytecode flag
4630 * Reverted change made for the DistributionNotFound exception because
4631 zc.buildout uses the exception message to get the name of the
4637 * Distribute #90: unknown setuptools version can be added in the working set
4638 * Distribute #87: setupt.py doesn't try to convert distribute_setup.py anymore
4639 Initial Patch by arfrever.
4640 * Distribute #89: added a side bar with a download link to the doc.
4641 * Distribute #86: fixed missing sentence in pkg_resources doc.
4642 * Added a nicer error message when a DistributionNotFound is raised.
4643 * Distribute #80: test_develop now works with Python 3.1
4644 * Distribute #93: upload_docs now works if there is an empty sub-directory.
4645 * Distribute #70: exec bit on non-exec files
4646 * Distribute #99: now the standalone easy_install command doesn't uses a
4647 "setup.cfg" if any exists in the working directory. It will use it
4648 only if triggered by ``install_requires`` from a setup.py call
4649 (install, develop, etc).
4650 * Distribute #101: Allowing ``os.devnull`` in Sandbox
4651 * Distribute #92: Fixed the "no eggs" found error with MacPort
4652 (platform.mac_ver() fails)
4653 * Distribute #103: test_get_script_header_jython_workaround not run
4654 anymore under py3 with C or POSIX local. Contributed by Arfrever.
4655 * Distribute #104: removed the assertion when the installation fails,
4656 with a nicer message for the end user.
4657 * Distribute #100: making sure there's no SandboxViolation when
4658 the setup script patches setuptools.
4663 * Added "check_packages" in dist. (added in Setuptools 0.6c11)
4664 * Fixed the DONT_PATCH_SETUPTOOLS state.
4669 * Distribute #58: Added --user support to the develop command
4670 * Distribute #11: Generated scripts now wrap their call to the script entry point
4671 in the standard "if name == 'main'"
4672 * Added the 'DONT_PATCH_SETUPTOOLS' environment variable, so virtualenv
4673 can drive an installation that doesn't patch a global setuptools.
4674 * Reviewed unladen-swallow specific change from
4675 http://code.google.com/p/unladen-swallow/source/detail?spec=svn875&r=719
4676 and determined that it no longer applies. Distribute should work fine with
4677 Unladen Swallow 2009Q3.
4678 * Distribute #21: Allow PackageIndex.open_url to gracefully handle all cases of a
4679 httplib.HTTPException instead of just InvalidURL and BadStatusLine.
4680 * Removed virtual-python.py from this distribution and updated documentation
4681 to point to the actively maintained virtualenv instead.
4682 * Distribute #64: use_setuptools no longer rebuilds the distribute egg every
4684 * use_setuptools now properly respects the requested version
4685 * use_setuptools will no longer try to import a distribute egg for the
4686 wrong Python version
4687 * Distribute #74: no_fake should be True by default.
4688 * Distribute #72: avoid a bootstrapping issue with easy_install -U
4693 * Unified the bootstrap file so it works on both py2.x and py3k without 2to3
4694 (patch by Holger Krekel)
4699 * Distribute #65: cli.exe and gui.exe are now generated at build time,
4700 depending on the platform in use.
4702 * Distribute #67: Fixed doc typo (PEP 381/PEP 382).
4704 * Distribute no longer shadows setuptools if we require a 0.7-series
4705 setuptools. And an error is raised when installing a 0.7 setuptools with
4708 * When run from within buildout, no attempt is made to modify an existing
4709 setuptools egg, whether in a shared egg directory or a system setuptools.
4711 * Fixed a hole in sandboxing allowing builtin file to write outside of
4717 * Added the generation of ``distribute_setup_3k.py`` during the release.
4718 This closes Distribute #52.
4720 * Added an upload_docs command to easily upload project documentation to
4721 PyPI's https://pythonhosted.org. This close issue Distribute #56.
4723 * Fixed a bootstrap bug on the use_setuptools() API.
4731 * Fixed a bunch of calls to file() that caused crashes on Python 3.
4736 * Fixed a bug in sorting that caused bootstrap to fail on Python 3.
4744 * Added Python 3 support; see docs/python3.txt.
4745 This closes Old Setuptools #39.
4747 * Added option to run 2to3 automatically when installing on Python 3.
4748 This closes issue Distribute #31.
4750 * Fixed invalid usage of requirement.parse, that broke develop -d.
4751 This closes Old Setuptools #44.
4753 * Fixed script launcher for 64-bit Windows.
4754 This closes Old Setuptools #2.
4756 * KeyError when compiling extensions.
4757 This closes Old Setuptools #41.
4762 * Fixed bootstrap not working on Windows. This closes issue Distribute #49.
4764 * Fixed 2.6 dependencies. This closes issue Distribute #50.
4766 * Make sure setuptools is patched when running through easy_install
4767 This closes Old Setuptools #40.
4775 * package_index.urlopen now catches BadStatusLine and malformed url errors.
4776 This closes Distribute #16 and Distribute #18.
4778 * zip_ok is now False by default. This closes Old Setuptools #33.
4780 * Fixed invalid URL error catching. Old Setuptools #20.
4782 * Fixed invalid bootstraping with easy_install installation (Distribute #40).
4783 Thanks to Florian Schulze for the help.
4785 * Removed buildout/bootstrap.py. A new repository will create a specific
4786 bootstrap.py script.
4792 * The bootstrap process leave setuptools alone if detected in the system
4793 and --root or --prefix is provided, but is not in the same location.
4794 This closes Distribute #10.
4802 * Packages required at build time where not fully present at install time.
4803 This closes Distribute #12.
4805 * Protected against failures in tarfile extraction. This closes Distribute #10.
4807 * Made Jython api_tests.txt doctest compatible. This closes Distribute #7.
4809 * sandbox.py replaced builtin type file with builtin function open. This
4810 closes Distribute #6.
4812 * Immediately close all file handles. This closes Distribute #3.
4814 * Added compatibility with Subversion 1.6. This references Distribute #1.
4819 * Avoid a call to /usr/bin/sw_vers on OSX and use the official platform API
4820 instead. Based on a patch from ronaldoussoren. This closes issue #5.
4822 * Fixed a SandboxViolation for mkdir that could occur in certain cases.
4823 This closes Distribute #13.
4825 * Allow to find_on_path on systems with tight permissions to fail gracefully.
4826 This closes Distribute #9.
4828 * Corrected inconsistency between documentation and code of add_entry.
4829 This closes Distribute #8.
4831 * Immediately close all file handles. This closes Distribute #3.
4836 * Immediately close all file handles. This closes Distribute #3.
4841 * Fixed a missing files problem when using Windows source distributions on
4842 non-Windows platforms, due to distutils not handling manifest file line
4845 * Updated Pyrex support to work with Pyrex 0.9.6 and higher.
4847 * Minor changes for Jython compatibility, including skipping tests that can't
4850 * Fixed not installing eggs in ``install_requires`` if they were also used for
4851 ``setup_requires`` or ``tests_require``.
4853 * Fixed not fetching eggs in ``install_requires`` when running tests.
4855 * Allow ``ez_setup.use_setuptools()`` to upgrade existing setuptools
4856 installations when called from a standalone ``setup.py``.
4858 * Added a warning if a namespace package is declared, but its parent package
4859 is not also declared as a namespace.
4861 * Support Subversion 1.5
4863 * Removed use of deprecated ``md5`` module if ``hashlib`` is available
4865 * Fixed ``bdist_wininst upload`` trying to upload the ``.exe`` twice
4867 * Fixed ``bdist_egg`` putting a ``native_libs.txt`` in the source package's
4868 ``.egg-info``, when it should only be in the built egg's ``EGG-INFO``.
4870 * Ensure that _full_name is set on all shared libs before extensions are
4871 checked for shared lib usage. (Fixes a bug in the experimental shared
4872 library build support.)
4874 * Fix to allow unpacked eggs containing native libraries to fail more
4875 gracefully under Google App Engine (with an ``ImportError`` loading the
4876 C-based module, instead of getting a ``NameError``).
4878 * Fixed ``win32.exe`` support for .pth files, so unnecessary directory nesting
4879 is flattened out in the resulting egg. (There was a case-sensitivity
4880 problem that affected some distributions, notably ``pywin32``.)
4882 * Prevent ``--help-commands`` and other junk from showing under Python 2.5
4883 when running ``easy_install --help``.
4885 * Fixed GUI scripts sometimes not executing on Windows
4887 * Fixed not picking up dependency links from recursive dependencies.
4889 * Only make ``.py``, ``.dll`` and ``.so`` files executable when unpacking eggs
4891 * Changes for Jython compatibility
4893 * Improved error message when a requirement is also a directory name, but the
4894 specified directory is not a source package.
4896 * Fixed ``--allow-hosts`` option blocking ``file:`` URLs
4898 * Fixed HTTP SVN detection failing when the page title included a project
4899 name (e.g. on SourceForge-hosted SVN)
4901 * Fix Jython script installation to handle ``#!`` lines better when
4902 ``sys.executable`` is a script.
4904 * Removed use of deprecated ``md5`` module if ``hashlib`` is available
4906 * Keep site directories (e.g. ``site-packages``) from being included in
4912 * Fixed ``distutils.filelist.findall()`` crashing on broken symlinks, and
4913 ``egg_info`` command failing on new, uncommitted SVN directories.
4915 * Fix import problems with nested namespace packages installed via
4916 ``--root`` or ``--single-version-externally-managed``, due to the
4917 parent package not having the child package as an attribute.
4919 * ``ftp:`` download URLs now work correctly.
4921 * The default ``--index-url`` is now ``https://pypi.python.org/simple``, to use
4922 the Python Package Index's new simpler (and faster!) REST API.
4927 * Added ``--egg-path`` option to ``develop`` command, allowing you to force
4928 ``.egg-link`` files to use relative paths (allowing them to be shared across
4929 platforms on a networked drive).
4931 * Fix not building binary RPMs correctly.
4933 * Fix "eggsecutables" (such as setuptools' own egg) only being runnable with
4934 bash-compatible shells.
4936 * Fix ``#!`` parsing problems in Windows ``.exe`` script wrappers, when there
4937 was whitespace inside a quoted argument or at the end of the ``#!`` line
4938 (a regression introduced in 0.6c4).
4940 * Fix ``test`` command possibly failing if an older version of the project
4941 being tested was installed on ``sys.path`` ahead of the test source
4944 * Fix ``find_packages()`` treating ``ez_setup`` and directories with ``.`` in
4945 their names as packages.
4947 * EasyInstall no longer aborts the installation process if a URL it wants to
4948 retrieve can't be downloaded, unless the URL is an actual package download.
4949 Instead, it issues a warning and tries to keep going.
4951 * Fixed distutils-style scripts originally built on Windows having their line
4952 endings doubled when installed on any platform.
4954 * Added ``--local-snapshots-ok`` flag, to allow building eggs from projects
4955 installed using ``setup.py develop``.
4957 * Fixed not HTML-decoding URLs scraped from web pages
4962 * Fix uploaded ``bdist_rpm`` packages being described as ``bdist_egg``
4963 packages under Python versions less than 2.5.
4965 * Fix uploaded ``bdist_wininst`` packages being described as suitable for
4966 "any" version by Python 2.5, even if a ``--target-version`` was specified.
4968 * Fixed ``.dll`` files on Cygwin not having executable permissions when an egg
4969 is installed unzipped.
4974 * Overhauled Windows script wrapping to support ``bdist_wininst`` better.
4975 Scripts installed with ``bdist_wininst`` will always use ``#!python.exe`` or
4976 ``#!pythonw.exe`` as the executable name (even when built on non-Windows
4977 platforms!), and the wrappers will look for the executable in the script's
4978 parent directory (which should find the right version of Python).
4980 * Fix ``upload`` command not uploading files built by ``bdist_rpm`` or
4981 ``bdist_wininst`` under Python 2.3 and 2.4.
4983 * Add support for "eggsecutable" headers: a ``#!/bin/sh`` script that is
4984 prepended to an ``.egg`` file to allow it to be run as a script on Unix-ish
4985 platforms. (This is mainly so that setuptools itself can have a single-file
4986 installer on Unix, without doing multiple downloads, dealing with firewalls,
4989 * Fix problem with empty revision numbers in Subversion 1.4 ``entries`` files
4991 * Use cross-platform relative paths in ``easy-install.pth`` when doing
4992 ``develop`` and the source directory is a subdirectory of the installation
4995 * Fix a problem installing eggs with a system packaging tool if the project
4996 contained an implicit namespace package; for example if the ``setup()``
4997 listed a namespace package ``foo.bar`` without explicitly listing ``foo``
4998 as a namespace package.
5000 * Added support for HTTP "Basic" authentication using ``http://user:pass@host``
5001 URLs. If a password-protected page contains links to the same host (and
5002 protocol), those links will inherit the credentials used to access the
5005 * Removed all special support for Sourceforge mirrors, as Sourceforge's
5006 mirror system now works well for non-browser downloads.
5008 * Fixed not recognizing ``win32.exe`` installers that included a custom
5011 * Fixed not allowing ``os.open()`` of paths outside the sandbox, even if they
5012 are opened read-only (e.g. reading ``/dev/urandom`` for random numbers, as
5013 is done by ``os.urandom()`` on some platforms).
5015 * Fixed a problem with ``.pth`` testing on Windows when ``sys.executable``
5016 has a space in it (e.g., the user installed Python to a ``Program Files``
5022 * Fixed breakages caused by Subversion 1.4's new "working copy" format
5024 * You can once again use "python -m easy_install" with Python 2.4 and above.
5026 * Python 2.5 compatibility fixes added.
5031 * The ``ez_setup`` module displays the conflicting version of setuptools (and
5032 its installation location) when a script requests a version that's not
5035 * Running ``setup.py develop`` on a setuptools-using project will now install
5036 setuptools if needed, instead of only downloading the egg.
5038 * Windows script wrappers now support quoted arguments and arguments
5039 containing spaces. (Patch contributed by Jim Fulton.)
5041 * The ``ez_setup.py`` script now actually works when you put a setuptools
5042 ``.egg`` alongside it for bootstrapping an offline machine.
5044 * A writable installation directory on ``sys.path`` is no longer required to
5045 download and extract a source distribution using ``--editable``.
5047 * Generated scripts now use ``-x`` on the ``#!`` line when ``sys.executable``
5048 contains non-ASCII characters, to prevent deprecation warnings about an
5049 unspecified encoding when the script is run.
5054 * Fixed ``AttributeError`` when trying to download a ``setup_requires``
5055 dependency when a distribution lacks a ``dependency_links`` setting.
5057 * Made ``zip-safe`` and ``not-zip-safe`` flag files contain a single byte, so
5058 as to play better with packaging tools that complain about zero-length
5061 * Made ``setup.py develop`` respect the ``--no-deps`` option, which it
5062 previously was ignoring.
5064 * Support ``extra_path`` option to ``setup()`` when ``install`` is run in
5065 backward-compatibility mode.
5067 * Source distributions now always include a ``setup.cfg`` file that explicitly
5068 sets ``egg_info`` options such that they produce an identical version number
5069 to the source distribution's version number. (Previously, the default
5070 version number could be different due to the use of ``--tag-date``, or if
5071 the version was overridden on the command line that built the source
5074 * EasyInstall now includes setuptools version information in the
5075 ``User-Agent`` string sent to websites it visits.
5080 * Fix ``register`` not obeying name/version set by ``egg_info`` command, if
5081 ``egg_info`` wasn't explicitly run first on the same command line.
5083 * Added ``--no-date`` and ``--no-svn-revision`` options to ``egg_info``
5084 command, to allow suppressing tags configured in ``setup.cfg``.
5086 * Fixed redundant warnings about missing ``README`` file(s); it should now
5087 appear only if you are actually a source distribution.
5089 * Fix creating Python wrappers for non-Python scripts
5091 * Fix ``ftp://`` directory listing URLs from causing a crash when used in the
5092 "Home page" or "Download URL" slots on PyPI.
5094 * Fix ``sys.path_importer_cache`` not being updated when an existing zipfile
5095 or directory is deleted/overwritten.
5097 * Fix not recognizing HTML 404 pages from package indexes.
5099 * Allow ``file://`` URLs to be used as a package index. URLs that refer to
5100 directories will use an internally-generated directory listing if there is
5101 no ``index.html`` file in the directory.
5103 * Allow external links in a package index to be specified using
5104 ``rel="homepage"`` or ``rel="download"``, without needing the old
5105 PyPI-specific visible markup.
5107 * Suppressed warning message about possibly-misspelled project name, if an egg
5108 or link for that project name has already been seen.
5113 * Fix ``bdist_egg`` not including files in subdirectories of ``.egg-info``.
5115 * Allow ``.py`` files found by the ``include_package_data`` option to be
5116 automatically included. Remove duplicate data file matches if both
5117 ``include_package_data`` and ``package_data`` are used to refer to the same
5120 * Fix local ``--find-links`` eggs not being copied except with
5123 * Fix sometimes not detecting local packages installed outside of "site"
5126 * Fix mysterious errors during initial ``setuptools`` install, caused by
5127 ``ez_setup`` trying to run ``easy_install`` twice, due to a code fallthru
5128 after deleting the egg from which it's running.
5133 * Don't install or update a ``site.py`` patch when installing to a
5134 ``PYTHONPATH`` directory with ``--multi-version``, unless an
5135 ``easy-install.pth`` file is already in use there.
5137 * Construct ``.pth`` file paths in such a way that installing an egg whose
5138 name begins with ``import`` doesn't cause a syntax error.
5140 * Fixed a bogus warning message that wasn't updated since the 0.5 versions.
5145 * Strip ``module`` from the end of compiled extension modules when computing
5146 the name of a ``.py`` loader/wrapper. (Python's import machinery ignores
5147 this suffix when searching for an extension module.)
5149 * Better ambiguity management: accept ``#egg`` name/version even if processing
5150 what appears to be a correctly-named distutils file, and ignore ``.egg``
5151 files with no ``-``, since valid Python ``.egg`` files always have a version
5152 number (but Scheme eggs often don't).
5154 * Support ``file://`` links to directories in ``--find-links``, so that
5155 easy_install can build packages from local source checkouts.
5157 * Added automatic retry for Sourceforge mirrors. The new download process is
5158 to first just try dl.sourceforge.net, then randomly select mirror IPs and
5159 remove ones that fail, until something works. The removed IPs stay removed
5160 for the remainder of the run.
5162 * Ignore bdist_dumb distributions when looking at download URLs.
5167 * Added ``test_loader`` keyword to support custom test loaders
5169 * Added ``setuptools.file_finders`` entry point group to allow implementing
5170 revision control plugins.
5172 * Added ``--identity`` option to ``upload`` command.
5174 * Added ``dependency_links`` to allow specifying URLs for ``--find-links``.
5176 * Enhanced test loader to scan packages as well as modules, and call
5177 ``additional_tests()`` if present to get non-unittest tests.
5179 * Support namespace packages in conjunction with system packagers, by omitting
5180 the installation of any ``__init__.py`` files for namespace packages, and
5181 adding a special ``.pth`` file to create a working package in
5184 * Made ``--single-version-externally-managed`` automatic when ``--root`` is
5185 used, so that most system packagers won't require special support for
5188 * Fixed ``setup_requires``, ``tests_require``, etc. not using ``setup.cfg`` or
5189 other configuration files for their option defaults when installing, and
5190 also made the install use ``--multi-version`` mode so that the project
5191 directory doesn't need to support .pth files.
5193 * ``MANIFEST.in`` is now forcibly closed when any errors occur while reading
5194 it. Previously, the file could be left open and the actual error would be
5195 masked by problems trying to remove the open file on Windows systems.
5197 * Process ``dependency_links.txt`` if found in a distribution, by adding the
5198 URLs to the list for scanning.
5200 * Use relative paths in ``.pth`` files when eggs are being installed to the
5201 same directory as the ``.pth`` file. This maximizes portability of the
5202 target directory when building applications that contain eggs.
5204 * Added ``easy_install-N.N`` script(s) for convenience when using multiple
5207 * Added automatic handling of installation conflicts. Eggs are now shifted to
5208 the front of sys.path, in an order consistent with where they came from,
5209 making EasyInstall seamlessly co-operate with system package managers.
5211 The ``--delete-conflicting`` and ``--ignore-conflicts-at-my-risk`` options
5212 are now no longer necessary, and will generate warnings at the end of a
5213 run if you use them.
5215 * Don't recursively traverse subdirectories given to ``--find-links``.
5220 * Fixed the ``develop`` command ignoring ``--find-links``.
5222 * Added exhaustive testing of the install directory, including a spawn test
5223 for ``.pth`` file support, and directory writability/existence checks. This
5224 should virtually eliminate the need to set or configure ``--site-dirs``.
5226 * Added ``--prefix`` option for more do-what-I-mean-ishness in the absence of
5229 * Enhanced ``PYTHONPATH`` support so that you don't have to put any eggs on it
5230 manually to make it work. ``--multi-version`` is no longer a silent
5231 default; you must explicitly use it if installing to a non-PYTHONPATH,
5232 non-"site" directory.
5234 * Expand ``$variables`` used in the ``--site-dirs``, ``--build-directory``,
5235 ``--install-dir``, and ``--script-dir`` options, whether on the command line
5236 or in configuration files.
5238 * Improved SourceForge mirror processing to work faster and be less affected
5239 by transient HTML changes made by SourceForge.
5241 * PyPI searches now use the exact spelling of requirements specified on the
5242 command line or in a project's ``install_requires``. Previously, a
5243 normalized form of the name was used, which could lead to unnecessary
5244 full-index searches when a project's name had an underscore (``_``) in it.
5246 * EasyInstall can now download bare ``.py`` files and wrap them in an egg,
5247 as long as you include an ``#egg=name-version`` suffix on the URL, or if
5248 the ``.py`` file is listed as the "Download URL" on the project's PyPI page.
5249 This allows third parties to "package" trivial Python modules just by
5250 linking to them (e.g. from within their own PyPI page or download links
5253 * The ``--always-copy`` option now skips "system" and "development" eggs since
5254 they can't be reliably copied. Note that this may cause EasyInstall to
5255 choose an older version of a package than what you expected, or it may cause
5256 downloading and installation of a fresh version of what's already installed.
5258 * The ``--find-links`` option previously scanned all supplied URLs and
5259 directories as early as possible, but now only directories and direct
5260 archive links are scanned immediately. URLs are not retrieved unless a
5261 package search was already going to go online due to a package not being
5262 available locally, or due to the use of the ``--update`` or ``-U`` option.
5264 * Fixed the annoying ``--help-commands`` wart.
5269 * The ``sdist`` command no longer uses the traditional ``MANIFEST`` file to
5270 create source distributions. ``MANIFEST.in`` is still read and processed,
5271 as are the standard defaults and pruning. But the manifest is built inside
5272 the project's ``.egg-info`` directory as ``SOURCES.txt``, and it is rebuilt
5273 every time the ``egg_info`` command is run.
5275 * Added the ``include_package_data`` keyword to ``setup()``, allowing you to
5276 automatically include any package data listed in revision control or
5279 * Added the ``exclude_package_data`` keyword to ``setup()``, allowing you to
5280 trim back files included via the ``package_data`` and
5281 ``include_package_data`` options.
5283 * Fixed ``--tag-svn-revision`` not working when run from a source
5286 * Added warning for namespace packages with missing ``declare_namespace()``
5288 * Added ``tests_require`` keyword to ``setup()``, so that e.g. packages
5289 requiring ``nose`` to run unit tests can make this dependency optional
5290 unless the ``test`` command is run.
5292 * Made all commands that use ``easy_install`` respect its configuration
5293 options, as this was causing some problems with ``setup.py install``.
5295 * Added an ``unpack_directory()`` driver to ``setuptools.archive_util``, so
5296 that you can process a directory tree through a processing filter as if it
5297 were a zipfile or tarfile.
5299 * Added an internal ``install_egg_info`` command to use as part of old-style
5300 ``install`` operations, that installs an ``.egg-info`` directory with the
5303 * Added a ``--single-version-externally-managed`` option to the ``install``
5304 command so that you can more easily wrap a "flat" egg in a system package.
5306 * Enhanced ``bdist_rpm`` so that it installs single-version eggs that
5307 don't rely on a ``.pth`` file. The ``--no-egg`` option has been removed,
5308 since all RPMs are now built in a more backwards-compatible format.
5310 * Support full roundtrip translation of eggs to and from ``bdist_wininst``
5311 format. Running ``bdist_wininst`` on a setuptools-based package wraps the
5312 egg in an .exe that will safely install it as an egg (i.e., with metadata
5313 and entry-point wrapper scripts), and ``easy_install`` can turn the .exe
5314 back into an ``.egg`` file or directory and install it as such.
5316 * Fixed ``.pth`` file processing picking up nested eggs (i.e. ones inside
5317 "baskets") when they weren't explicitly listed in the ``.pth`` file.
5319 * If more than one URL appears to describe the exact same distribution, prefer
5320 the shortest one. This helps to avoid "table of contents" CGI URLs like the
5323 * Quote arguments to python.exe (including python's path) to avoid problems
5324 when Python (or a script) is installed in a directory whose name contains
5327 * Support full roundtrip translation of eggs to and from ``bdist_wininst``
5328 format. Running ``bdist_wininst`` on a setuptools-based package wraps the
5329 egg in an .exe that will safely install it as an egg (i.e., with metadata
5330 and entry-point wrapper scripts), and ``easy_install`` can turn the .exe
5331 back into an ``.egg`` file or directory and install it as such.
5336 * Fixed some problems building extensions when Pyrex was installed, especially
5337 with Python 2.4 and/or packages using SWIG.
5339 * Made ``develop`` command accept all the same options as ``easy_install``,
5340 and use the ``easy_install`` command's configuration settings as defaults.
5342 * Made ``egg_info --tag-svn-revision`` fall back to extracting the revision
5343 number from ``PKG-INFO`` in case it is being run on a source distribution of
5344 a snapshot taken from a Subversion-based project.
5346 * Automatically detect ``.dll``, ``.so`` and ``.dylib`` files that are being
5347 installed as data, adding them to ``native_libs.txt`` automatically.
5349 * Fixed some problems with fresh checkouts of projects that don't include
5350 ``.egg-info/PKG-INFO`` under revision control and put the project's source
5351 code directly in the project directory. If such a package had any
5352 requirements that get processed before the ``egg_info`` command can be run,
5353 the setup scripts would fail with a "Missing 'Version:' header and/or
5354 PKG-INFO file" error, because the egg runtime interpreted the unbuilt
5355 metadata in a directory on ``sys.path`` (i.e. the current directory) as
5356 being a corrupted egg. Setuptools now monkeypatches the distribution
5357 metadata cache to pretend that the egg has valid version information, until
5358 it has a chance to make it actually be so (via the ``egg_info`` command).
5360 * Update for changed SourceForge mirror format
5362 * Fixed not installing dependencies for some packages fetched via Subversion
5364 * Fixed dependency installation with ``--always-copy`` not using the same
5365 dependency resolution procedure as other operations.
5367 * Fixed not fully removing temporary directories on Windows, if a Subversion
5368 checkout left read-only files behind
5370 * Fixed some problems building extensions when Pyrex was installed, especially
5371 with Python 2.4 and/or packages using SWIG.
5376 * Fixed not being able to install Windows script wrappers using Python 2.3
5381 * Added support for "traditional" PYTHONPATH-based non-root installation, and
5382 also the convenient ``virtual-python.py`` script, based on a contribution
5383 by Ian Bicking. The setuptools egg now contains a hacked ``site`` module
5384 that makes the PYTHONPATH-based approach work with .pth files, so that you
5385 can get the full EasyInstall feature set on such installations.
5387 * Added ``--no-deps`` and ``--allow-hosts`` options.
5389 * Improved Windows ``.exe`` script wrappers so that the script can have the
5390 same name as a module without confusing Python.
5392 * Changed dependency processing so that it's breadth-first, allowing a
5393 depender's preferences to override those of a dependee, to prevent conflicts
5394 when a lower version is acceptable to the dependee, but not the depender.
5395 Also, ensure that currently installed/selected packages aren't given
5396 precedence over ones desired by a package being installed, which could
5397 cause conflict errors.
5402 * Fixed missing gui/cli .exe files in distribution. Fixed bugs in tests.
5407 * Added ``gui_scripts`` entry point group to allow installing GUI scripts
5408 on Windows and other platforms. (The special handling is only for Windows;
5409 other platforms are treated the same as for ``console_scripts``.)
5411 * Improved error message when trying to use old ways of running
5412 ``easy_install``. Removed the ability to run via ``python -m`` or by
5413 running ``easy_install.py``; ``easy_install`` is the command to run on all
5414 supported platforms.
5416 * Improved wrapper script generation and runtime initialization so that a
5417 VersionConflict doesn't occur if you later install a competing version of a
5418 needed package as the default version of that package.
5420 * Fixed a problem parsing version numbers in ``#egg=`` links.
5425 * Added ``console_scripts`` entry point group to allow installing scripts
5426 without the need to create separate script files. On Windows, console
5427 scripts get an ``.exe`` wrapper so you can just type their name. On other
5428 platforms, the scripts are written without a file extension.
5430 * EasyInstall can now install "console_scripts" defined by packages that use
5431 ``setuptools`` and define appropriate entry points. On Windows, console
5432 scripts get an ``.exe`` wrapper so you can just type their name. On other
5433 platforms, the scripts are installed without a file extension.
5435 * Using ``python -m easy_install`` or running ``easy_install.py`` is now
5436 DEPRECATED, since an ``easy_install`` wrapper is now available on all
5442 * Added support for building "old-style" RPMs that don't install an egg for
5443 the target package, using a ``--no-egg`` option.
5445 * The ``build_ext`` command now works better when using the ``--inplace``
5446 option and multiple Python versions. It now makes sure that all extensions
5447 match the current Python version, even if newer copies were built for a
5448 different Python version.
5450 * The ``upload`` command no longer attaches an extra ``.zip`` when uploading
5451 eggs, as PyPI now supports egg uploads without trickery.
5453 * The ``ez_setup`` script/module now displays a warning before downloading
5454 the setuptools egg, and attempts to check the downloaded egg against an
5455 internal MD5 checksum table.
5457 * Fixed the ``--tag-svn-revision`` option of ``egg_info`` not finding the
5458 latest revision number; it was using the revision number of the directory
5459 containing ``setup.py``, not the highest revision number in the project.
5461 * Added ``eager_resources`` setup argument
5463 * The ``sdist`` command now recognizes Subversion "deleted file" entries and
5464 does not include them in source distributions.
5466 * ``setuptools`` now embeds itself more thoroughly into the distutils, so that
5467 other distutils extensions (e.g. py2exe, py2app) will subclass setuptools'
5468 versions of things, rather than the native distutils ones.
5470 * Added ``entry_points`` and ``setup_requires`` arguments to ``setup()``;
5471 ``setup_requires`` allows you to automatically find and download packages
5472 that are needed in order to *build* your project (as opposed to running it).
5474 * ``setuptools`` now finds its commands, ``setup()`` argument validators, and
5475 metadata writers using entry points, so that they can be extended by
5476 third-party packages. See `Creating distutils Extensions
5477 <https://setuptools.pypa.io/en/latest/setuptools.html#creating-distutils-extensions>`_
5480 * The vestigial ``depends`` command has been removed. It was never finished
5481 or documented, and never would have worked without EasyInstall - which it
5482 pre-dated and was never compatible with.
5484 * EasyInstall now does MD5 validation of downloads from PyPI, or from any link
5485 that has an "#md5=..." trailer with a 32-digit lowercase hex md5 digest.
5487 * EasyInstall now handles symlinks in target directories by removing the link,
5488 rather than attempting to overwrite the link's destination. This makes it
5489 easier to set up an alternate Python "home" directory (as described in
5490 the Non-Root Installation section of the docs).
5492 * Added support for handling MacOS platform information in ``.egg`` filenames,
5493 based on a contribution by Kevin Dangoor. You may wish to delete and
5494 reinstall any eggs whose filename includes "darwin" and "Power_Macintosh",
5495 because the format for this platform information has changed so that minor
5496 OS X upgrades (such as 10.4.1 to 10.4.2) do not cause eggs built with a
5497 previous OS version to become obsolete.
5499 * easy_install's dependency processing algorithms have changed. When using
5500 ``--always-copy``, it now ensures that dependencies are copied too. When
5501 not using ``--always-copy``, it tries to use a single resolution loop,
5502 rather than recursing.
5504 * Fixed installing extra ``.pyc`` or ``.pyo`` files for scripts with ``.py``
5507 * Added ``--site-dirs`` option to allow adding custom "site" directories.
5508 Made ``easy-install.pth`` work in platform-specific alternate site
5509 directories (e.g. ``~/Library/Python/2.x/site-packages`` on Mac OS X).
5511 * If you manually delete the current version of a package, the next run of
5512 EasyInstall against the target directory will now remove the stray entry
5513 from the ``easy-install.pth`` file.
5515 * EasyInstall now recognizes URLs with a ``#egg=project_name`` fragment ID
5516 as pointing to the named project's source checkout. Such URLs have a lower
5517 match precedence than any other kind of distribution, so they'll only be
5518 used if they have a higher version number than any other available
5519 distribution, or if you use the ``--editable`` option. The ``#egg``
5520 fragment can contain a version if it's formatted as ``#egg=proj-ver``,
5521 where ``proj`` is the project name, and ``ver`` is the version number. You
5522 *must* use the format for these values that the ``bdist_egg`` command uses;
5523 i.e., all non-alphanumeric runs must be condensed to single underscore
5526 * Added the ``--editable`` option; see Editing and Viewing Source Packages
5527 in the docs. Also, slightly changed the behavior of the
5528 ``--build-directory`` option.
5530 * Fixed the setup script sandbox facility not recognizing certain paths as
5531 valid on case-insensitive platforms.
5536 * The zip-safety scanner now checks for modules that might be used with
5537 ``python -m``, and marks them as unsafe for zipping, since Python 2.4 can't
5538 handle ``-m`` on zipped modules.
5540 * Fix ``python -m easy_install`` not working due to setuptools being installed
5541 as a zipfile. Update safety scanner to check for modules that might be used
5542 as ``python -m`` scripts.
5544 * Misc. fixes for win32.exe support, including changes to support Python 2.4's
5545 changed ``bdist_wininst`` format.
5550 * Fix breakage of the "develop" command that was caused by the addition of
5551 ``--always-unzip`` to the ``easy_install`` command.
5556 * Put the ``easy_install`` module back in as a module, as it's needed for
5557 ``python -m`` to run it!
5559 * Allow ``--find-links/-f`` to accept local directories or filenames as well
5565 * Include ``svn:externals`` directories in source distributions as well as
5566 normal subversion-controlled files and directories.
5568 * Added ``exclude=patternlist`` option to ``setuptools.find_packages()``
5570 * Changed --tag-svn-revision to include an "r" in front of the revision number
5571 for better readability.
5573 * Added ability to build eggs without including source files (except for any
5574 scripts, of course), using the ``--exclude-source-files`` option to
5577 * ``setup.py install`` now automatically detects when an "unmanaged" package
5578 or module is going to be on ``sys.path`` ahead of a package being installed,
5579 thereby preventing the newer version from being imported. If this occurs,
5580 a warning message is output to ``sys.stderr``, but installation proceeds
5581 anyway. The warning message informs the user what files or directories
5582 need deleting, and advises them they can also use EasyInstall (with the
5583 ``--delete-conflicting`` option) to do it automatically.
5585 * The ``egg_info`` command now adds a ``top_level.txt`` file to the metadata
5586 directory that lists all top-level modules and packages in the distribution.
5587 This is used by the ``easy_install`` command to find possibly-conflicting
5588 "unmanaged" packages when installing the distribution.
5590 * Added ``zip_safe`` and ``namespace_packages`` arguments to ``setup()``.
5591 Added package analysis to determine zip-safety if the ``zip_safe`` flag
5592 is not given, and advise the author regarding what code might need changing.
5594 * Fixed the swapped ``-d`` and ``-b`` options of ``bdist_egg``.
5596 * EasyInstall now automatically detects when an "unmanaged" package or
5597 module is going to be on ``sys.path`` ahead of a package you're installing,
5598 thereby preventing the newer version from being imported. By default, it
5599 will abort installation to alert you of the problem, but there are also
5600 new options (``--delete-conflicting`` and ``--ignore-conflicts-at-my-risk``)
5601 available to change the default behavior. (Note: this new feature doesn't
5602 take effect for egg files that were built with older ``setuptools``
5603 versions, because they lack the new metadata file required to implement it.)
5605 * The ``easy_install`` distutils command now uses ``DistutilsError`` as its
5606 base error type for errors that should just issue a message to stderr and
5607 exit the program without a traceback.
5609 * EasyInstall can now be given a path to a directory containing a setup
5610 script, and it will attempt to build and install the package there.
5612 * EasyInstall now performs a safety analysis on module contents to determine
5613 whether a package is likely to run in zipped form, and displays
5614 information about what modules may be doing introspection that would break
5615 when running as a zipfile.
5617 * Added the ``--always-unzip/-Z`` option, to force unzipping of packages that
5618 would ordinarily be considered safe to unzip, and changed the meaning of
5619 ``--zip-ok/-z`` to "always leave everything zipped".
5624 * The "egg_info" command now always sets the distribution metadata to "safe"
5625 forms of the distribution name and version, so that distribution files will
5626 be generated with parseable names (i.e., ones that don't include '-' in the
5627 name or version). Also, this means that if you use the various ``--tag``
5628 options of "egg_info", any distributions generated will use the tags in the
5629 version, not just egg distributions.
5631 * Added support for defining command aliases in distutils configuration files,
5632 under the "[aliases]" section. To prevent recursion and to allow aliases to
5633 call the command of the same name, a given alias can be expanded only once
5634 per command-line invocation. You can define new aliases with the "alias"
5635 command, either for the local, global, or per-user configuration.
5637 * Added "rotate" command to delete old distribution files, given a set of
5638 patterns to match and the number of files to keep. (Keeps the most
5639 recently-modified distribution files matching each pattern.)
5641 * Added "saveopts" command that saves all command-line options for the current
5642 invocation to the local, global, or per-user configuration file. Useful for
5643 setting defaults without having to hand-edit a configuration file.
5645 * Added a "setopt" command that sets a single option in a specified distutils
5648 * There is now a separate documentation page for setuptools; revision
5649 history that's not specific to EasyInstall has been moved to that page.
5654 * Added "upload" support for egg and source distributions, including a bug
5655 fix for "upload" and a temporary workaround for lack of .egg support in
5661 * Beefed up the "sdist" command so that if you don't have a MANIFEST.in, it
5662 will include all files under revision control (CVS or Subversion) in the
5663 current directory, and it will regenerate the list every time you create a
5664 source distribution, not just when you tell it to. This should make the
5665 default "do what you mean" more often than the distutils' default behavior
5666 did, while still retaining the old behavior in the presence of MANIFEST.in.
5668 * Fixed the "develop" command always updating .pth files, even if you
5669 specified ``-n`` or ``--dry-run``.
5671 * Slightly changed the format of the generated version when you use
5672 ``--tag-build`` on the "egg_info" command, so that you can make tagged
5673 revisions compare *lower* than the version specified in setup.py (e.g. by
5674 using ``--tag-build=dev``).
5679 * Added ``develop`` command to ``setuptools``-based packages. This command
5680 installs an ``.egg-link`` pointing to the package's source directory, and
5681 script wrappers that ``execfile()`` the source versions of the package's
5682 scripts. This lets you put your development checkout(s) on sys.path without
5683 having to actually install them. (To uninstall the link, use
5684 use ``setup.py develop --uninstall``.)
5686 * Added ``egg_info`` command to ``setuptools``-based packages. This command
5687 just creates or updates the "projectname.egg-info" directory, without
5688 building an egg. (It's used by the ``bdist_egg``, ``test``, and ``develop``
5691 * Enhanced the ``test`` command so that it doesn't install the package, but
5692 instead builds any C extensions in-place, updates the ``.egg-info``
5693 metadata, adds the source directory to ``sys.path``, and runs the tests
5694 directly on the source. This avoids an "unmanaged" installation of the
5695 package to ``site-packages`` or elsewhere.
5697 * Made ``easy_install`` a standard ``setuptools`` command, moving it from
5698 the ``easy_install`` module to ``setuptools.command.easy_install``. Note
5699 that if you were importing or extending it, you must now change your imports
5700 accordingly. ``easy_install.py`` is still installed as a script, but not as
5706 * Setup scripts using setuptools can now list their dependencies directly in
5707 the setup.py file, without having to manually create a ``depends.txt`` file.
5708 The ``install_requires`` and ``extras_require`` arguments to ``setup()``
5709 are used to create a dependencies file automatically. If you are manually
5710 creating ``depends.txt`` right now, please switch to using these setup
5711 arguments as soon as practical, because ``depends.txt`` support will be
5712 removed in the 0.6 release cycle. For documentation on the new arguments,
5713 see the ``setuptools.dist.Distribution`` class.
5715 * Setup scripts using setuptools now always install using ``easy_install``
5716 internally, for ease of uninstallation and upgrading.
5718 * Added ``--always-copy/-a`` option to always copy needed packages to the
5719 installation directory, even if they're already present elsewhere on
5720 sys.path. (In previous versions, this was the default behavior, but now
5721 you must request it.)
5723 * Added ``--upgrade/-U`` option to force checking PyPI for latest available
5724 version(s) of all packages requested by name and version, even if a matching
5725 version is available locally.
5727 * Added automatic installation of dependencies declared by a distribution
5728 being installed. These dependencies must be listed in the distribution's
5729 ``EGG-INFO`` directory, so the distribution has to have declared its
5730 dependencies by using setuptools. If a package has requirements it didn't
5731 declare, you'll still have to deal with them yourself. (E.g., by asking
5732 EasyInstall to find and install them.)
5734 * Added the ``--record`` option to ``easy_install`` for the benefit of tools
5735 that run ``setup.py install --record=filename`` on behalf of another
5741 * Fixed not setting script permissions to allow execution.
5743 * Improved sandboxing so that setup scripts that want a temporary directory
5744 (e.g. pychecker) can still run in the sandbox.
5749 * Fix stupid stupid refactoring-at-the-last-minute typos. :(
5754 * Added support for "self-installation" bootstrapping. Packages can now
5755 include ``ez_setup.py`` in their source distribution, and add the following
5756 to their ``setup.py``, in order to automatically bootstrap installation of
5757 setuptools as part of their setup process::
5759 from ez_setup import use_setuptools
5762 from setuptools import setup
5765 * Added support for converting ``.win32.exe`` installers to eggs on the fly.
5766 EasyInstall will now recognize such files by name and install them.
5768 * Fixed a problem with picking the "best" version to install (versions were
5769 being sorted as strings, rather than as parsed values)
5774 * Added support for the distutils "verbose/quiet" and "dry-run" options, as
5775 well as the "optimize" flag.
5777 * Support downloading packages that were uploaded to PyPI (by scanning all
5778 links on package pages, not just the homepage/download links).
5783 * Add progress messages to the search/download process so that you can tell
5784 what URLs it's reading to find download links. (Hopefully, this will help
5785 people report out-of-date and broken links to package authors, and to tell
5786 when they've asked for a package that doesn't exist.)
5791 * Added ``ez_setup.py`` installer/bootstrap script to make initial setuptools
5792 installation easier, and to allow distributions using setuptools to avoid
5793 having to include setuptools in their source distribution.
5795 * All downloads are now managed by the ``PackageIndex`` class (which is now
5796 subclassable and replaceable), so that embedders can more easily override
5797 download logic, give download progress reports, etc. The class has also
5798 been moved to the new ``setuptools.package_index`` module.
5800 * The ``Installer`` class no longer handles downloading, manages a temporary
5801 directory, or tracks the ``zip_ok`` option. Downloading is now handled
5802 by ``PackageIndex``, and ``Installer`` has become an ``easy_install``
5803 command class based on ``setuptools.Command``.
5805 * There is a new ``setuptools.sandbox.run_setup()`` API to invoke a setup
5806 script in a directory sandbox, and a new ``setuptools.archive_util`` module
5807 with an ``unpack_archive()`` API. These were split out of EasyInstall to
5808 allow reuse by other tools and applications.
5810 * ``setuptools.Command`` now supports reinitializing commands using keyword
5811 arguments to set/reset options. Also, ``Command`` subclasses can now set
5812 their ``command_consumes_arguments`` attribute to ``True`` in order to
5813 receive an ``args`` option containing the rest of the command line.
5815 * Added support for installing scripts
5817 * Added support for setting options via distutils configuration files, and
5818 using distutils' default options as a basis for EasyInstall's defaults.
5820 * Renamed ``--scan-url/-s`` to ``--find-links/-f`` to free up ``-s`` for the
5821 script installation directory option.
5823 * Use ``urllib2`` instead of ``urllib``, to allow use of ``https:`` URLs if
5824 Python includes SSL support.
5829 * Added ``--scan-url`` and ``--index-url`` options, to scan download pages
5830 and search PyPI for needed packages.
5835 * Restrict ``--build-directory=DIR/-b DIR`` option to only be used with single
5836 URL installs, to avoid running the wrong setup.py.
5841 * Added ``--build-directory=DIR/-b DIR`` option.
5843 * Added "installation report" that explains how to use 'require()' when doing
5844 a multiversion install or alternate installation directory.
5846 * Added SourceForge mirror auto-select (Contributed by Ian Bicking)
5848 * Added "sandboxing" that stops a setup script from running if it attempts to
5849 write to the filesystem outside of the build area
5851 * Added more workarounds for packages with quirky ``install_data`` hacks
5856 * Added new options to ``bdist_egg`` to allow tagging the egg's version number
5857 with a subversion revision number, the current date, or an explicit tag
5858 value. Run ``setup.py bdist_egg --help`` to get more information.
5860 * Added subversion download support for ``svn:`` and ``svn+`` URLs, as well as
5861 automatic recognition of HTTP subversion URLs (Contributed by Ian Bicking)