History#
v64.0.3#
12 Aug 2022
Misc#
- #3515: Fixed “inline” file copying for editable installations and optional extensions. 
- #3517: Fixed - editable_wheelto ensure other commands are finalized before using them. This should prevent errors with plugins trying to use different commands or reinitializing them.
- #3517: Augmented filter to prevent transient/temporary source files from being considered - package_dataor- data_files.
v64.0.2#
12 Aug 2022
Misc#
- #3506: Suppress errors in custom - build_pyimplementations when running editable installs in favor of a warning indicating what is the most appropriate migration path. This is a transitional measure. Errors might be raised in future versions of- setuptools.
- #3512: Added capability of handling namespace packages created accidentally/purposefully via discovery configuration during editable installs. This should emulate the behaviour of a non-editable installation. 
v64.0.1#
11 Aug 2022
Misc#
- #3497: Fixed - editable_wheelfor legacy namespaces.
- #3502: Fixed issue with editable install and single module distributions. 
- #3503: Added filter to ignore external - .egg-infofiles in manifest.- Some plugins might rely on the fact that the - .egg-infodirectory is produced inside the project dir, which may not be the case in editable installs (the- .egg-infodirectory is produced inside the metadata directory given by the build frontend via PEP 660 hooks).
v64.0.0#
11 Aug 2022
Deprecations#
- #3380: Passing some types of parameters via - --global-optionto setuptools PEP 517/PEP 660 backend is now considered deprecated. The user can pass the same arbitrary parameter via- --build-option(- --global-optionis now reserved for flags like- --verboseor- --quiet).- Both - --build-optionand- --global-optionare supported as a transitional effort (a.k.a. “escape hatch”). In the future a proper list of allowed- config_settingsmay be created.
Breaking Changes#
- #3265: Added implementation for editable install hooks (PEP 660). - By default the users will experience a lenient behavior which prioritises the ability of the users of changing the distributed packages (e.g. adding new files or removing old ones). But they can also opt into a strict mode, which will try to replicate as much as possible the behavior of the package as if it would be normally installed by end users. The strict editable installation is not able to detect if files are added or removed from the project (a new installation is required). - This implementation might also affect plugins and customizations that assume certain - buildsubcommands don’t run during editable installs or that they always copy files to the temporary build directory.- Important - The editable aspect of the editable install supported this implementation is restricted to the Python modules contained in the distributed package. Changes in binary extensions (e.g. C/C++), entry-point definitions, dependencies, metadata, datafiles, etc may require a new installation. 
Changes#
- #3380: Improved the handling of the - config_settingsparameter in both PEP 517 and PEP 660 interfaces:- It is possible now to pass both - --global-optionand- --build-option. As discussed in #1928, arbitrary arguments passed via- --global-optionshould be placed before the name of the setuptools’ internal command, while- --build-optionshould come after.
- Users can pass - editable-mode=strictto select a strict behaviour for the editable installation.
 
- #3392: Exposed - get_output_mapping()from- build_pyand- build_extsubcommands. This interface is reserved for the use of- setuptoolsExtensions and third part packages are explicitly disallowed to calling it. However, any implementation overwriting- build_pyor- build_extare required to honour this interface.
- #3412: Added ability of collecting source files from custom build sub-commands to - sdist. This allows plugins and customization scripts to automatically add required source files in the source distribution.
- #3414: Users can temporarily specify an environment variable - SETUPTOOLS_ENABLE_FEATURE=legacy-editableas a escape hatch for the PEP 660 behavior. This setting is transitional and may be removed in the future.
- #3484: Added transient - compatmode to editable installs. This more will be temporarily available (to facilitate the transition period) for those that want to emulate the behavior of the- developcommand (in terms of what is added to- sys.path). This mode is provided “as is”, with limited support, and will be removed in future versions of- setuptools.
Documentation changes#
- #3414: Updated Development Mode to reflect on the implementation of PEP 660. 
v63.4.3#
10 Aug 2022
Misc#
- #3496: Update to pypa/distutils@b65aa40 including more robust support for library/include dir handling in msvccompiler (pypa/distutils#153) and test suite improvements. 
v63.4.2#
06 Aug 2022
Misc#
v63.4.1#
03 Aug 2022
Misc#
- #3482: Sync with pypa/distutils@274758f1c02048d295efdbc13d2f88d9923547f8, restoring compatibility shim in bdist.format_commands. 
v63.4.0#
02 Aug 2022
Changes#
- #2971: - upload_docscommand is deprecated once again.
Documentation changes#
Misc#
- #3480: Merge with pypa/distutils@c397f4c 
v63.3.0#
31 Jul 2022
Changes#
- #3475: Merge with pypa/distutils@129480b, including substantial delinting and cleanup, some refactoring around compiler logic, better messaging in cygwincompiler (pypa/distutils#161). 
v63.2.0#
13 Jul 2022
Changes#
Misc#
- #3435: Corrected issue in macOS framework builds on Python 3.9 not installed by homebrew (pypa/distutils#158). 
v63.1.0#
03 Jul 2022
Changes#
- #3430: Merge with pypa/distutils@152c13d including pypa/distutils#155 (improved compatibility for editable installs on homebrew Python 3.9), pypa/distutils#150 (better handling of runtime_library_dirs on cygwin), and pypa/distutils#151 (remove warnings for namespace packages). 
v63.0.0#
04 Jul 2022
Breaking Changes#
- #3421: Drop setuptools’ support for installing an entrypoint extra requirements at load time: - the functionality has been broken since v60.8.0. - the mechanism to do so is deprecated ( - fetch_build_eggs). - that use case (e.g. a custom command class entrypoint) is covered by making sure the necessary build requirements are declared.
Documentation changes#
- #3394: This updates the documentation for the - file_findershook so that the logging recommendation aligns with the suggestion to not use- distutilsdirectly.
- #3397: Fix reference for - keywordsto point to the Core Metadata Specification instead of PEP 314 (the live standard is kept always up-to-date and consolidates several PEPs together in a single document).
- #3402: Reordered the User Guide’s Table of Contents – by @codeandfire 
v62.6.0#
19 Jun 2022
Changes#
- #3253: Enabled using - file:for requirements in setup.cfg – by @akx (this feature is currently considered to be in beta stage).
- #3255: Enabled using - file:for dependencies and optional-dependencies in pyproject.toml – by @akx (this feature is currently considered to be in beta stage).
- #3391: Updated - attr:to also extract simple constants with type annotations – by @karlotness
v62.5.0#
17 Jun 2022
Changes#
- #3347: Changed warnings and documentation notes about experimental aspect of - pyproject.tomlconfiguration: now- [project]is a fully supported configuration interface, but the- [tool.setuptools]table and sub-tables are still considered to be in beta stage.
- #3383: In _distutils_hack, suppress/undo the use of local distutils when select tests are imported in CPython. 
Documentation changes#
- #3368: Added documentation page about extension modules – by @mkoeppe 
- #3371: Moved documentation from - /userguide/commandsto- /depracted/commands. This change was motived by the fact that running- python setup.pydirectly is considered a deprecated practice.
- #3372: Consolidated sections about - sdistcontents and- MANIFEST.ininto a single page.- Added a simple - MANIFEST.inexample.
- #3373: Moved remarks about using Cython to the newly created page for extension modules. 
- #3374: Added clarification that using - python setup.py egg_infocommands to manage project versions is only supported in a transitional basis, and that eventually- egg_infowill be deprecated.- Reorganized sections with tips for managing versions. 
- #3378: Updated - Quickstartdocs to make it easier to follow for beginners.
Misc#
- #3385: Modules used to parse and evaluate configuration from - pyproject.tomlfiles are intended for internal use only and that not part of the public API.
v62.4.0#
13 Jun 2022
Changes#
- #3256: Added setuptools.command.build command to match distutils.command.build – by @isuruf 
- #3366: Merge with pypa/distutils@75ed79d including reformat using black, fix for Cygwin support (pypa/distutils#139), and improved support for cross compiling (pypa/distutils#144 and pypa/distutils#145). 
Documentation changes#
- #3355: Changes to the User Guide’s Entry Points page – by @codeandfire 
- #3361: Further minor corrections to the Entry Points page – by @codeandfire 
- #3363: Rework some documentation pages to de-emphasize - distutilsand the history of packaging in the Python ecosystem. The focus of these changes is to make the documentation easier to read for new users.
- #3364: Update documentation about dependency management, removing mention to the deprecated - dependency_linksand adding some small improvements.
- #3367: Extracted text about automatic resource extraction and the zip-safe flag from - userguide/miscellaneousto- deprecated/resource_extractionand- deprecated/zip_safe.- Extracted text about additional metadata files from - userguide/miscellaneousinto the existing- userguide/extensiondocument.- Updated - userguide/extensionto better reflect the status of the setuptools project.- Removed - userguide/functionalities_rewrite(a virtually empty part of the docs).
v62.3.4#
11 Jun 2022
Documentation changes#
- #3349: Fixed two small issues preventing docs from building locally – by @codeandfire 
- #3350: Added note explaining - package_dataglob pattern matching for dotfiles – by @comabrewer
- #3358: Clarify the role of the - package_dirconfiguration.
Misc#
- #3354: Improve clarity in warning about unlisted namespace packages. 
v62.3.3#
07 Jun 2022
Documentation changes#
- #3331: Replaced single backticks with double ones in - CHANGES.rst– by @codeandfire
- #3332: Fixed grammar/typos, modified example directory trees for src-layout and flat-layout – by @codeandfire 
- #3335: Changes to code snippets and other examples in the Data Files page of the User Guide – by @codeandfire 
Misc#
v62.3.2#
18 May 2022
Misc#
- #3328: Include a first line summary to some of the existing multi-line warnings. 
v62.3.1#
17 May 2022
Misc#
- #3320: Fixed typo which causes - namespace_packagesto raise an error instead of warning.
v62.3.0#
16 May 2022
Deprecations#
- #3262: Formally added deprecation messages for - namespace_packages. The methodology that uses- pkg_resourcesand- namespace_packagesfor creating namespaces was already discouraged by the setuptools docs and the Python Packaging User Guide, therefore this change just make the deprecation more official. Users can consider migrating to native/implicit namespaces (as introduced in PEP 420).
- #3308: Relying on - include_package_datato ensure sub-packages are automatically added to the build wheel distribution (as “data”) is now considered a deprecated practice.- This behaviour was controversial and caused inconsistencies (#3260). - Instead, projects are encouraged to properly configure - packagesor use discovery tools. General information can be found in Package Discovery and Namespace Packages.
Changes#
- #1806: Allowed recursive globs ( - **) in- package_data. – by @nullableVoidPtr
- #3206: Fixed behaviour when both - install_requires(in- setup.py) and- dependencies(in- pyproject.toml) are specified. The configuration in- pyproject.tomlwill take precedence over- setup.py(in accordance with PEP 621). A warning was added to inform users.
Documentation changes#
- #3307: Added introduction to references/keywords. - Added deprecation tags to test kwargs. - Moved userguide/keywords to deprecated section. - Clarified in deprecated doc what keywords came from distutils and which were added or changed by setuptools. 
Misc#
v62.2.0#
10 May 2022
Changes#
- #3299: Optional metadata fields are now truly optional. Includes merge with pypa/distutils@a7cfb56 per pypa/distutils#138. 
Misc#
- #3282: Added CI cache for - setup.cfgexamples used when testing- setuptools.config.
v62.1.0#
10 Apr 2022
Changes#
- #3258: Merge pypa/distutils@5229dad46b. 
Misc#
- #3249: Simplified - package_dirobtained via auto-discovery.
v62.0.0#
04 Apr 2022
Breaking Changes#
- #3151: Made - setup.py develop --userinstall to the user site packages directory even if it is disabled in the current interpreter.
Changes#
Misc#
v61.3.1#
01 Apr 2022
Misc#
v61.3.0#
31 Mar 2022
Changes#
- #3229: Disabled automatic download of - trove-classifiersto facilitate reproducibility.
Misc#
v61.2.0#
27 Mar 2022
Changes#
- #3215: Ignored a subgroup of invalid - pyproject.tomlfiles that use the- [project]table to specify only- requires-python(transitional).- Warning - Please note that future releases of setuptools will halt the build process if a - pyproject.tomlfile that does not match doc:- the PyPA Specificationis given.
- #3215: Updated - pyproject.tomlvalidation, as generated by- validate-pyproject==0.6.1.
- #3218: Prevented builds from erroring if the project specifies metadata via - pyproject.toml, but uses other files (e.g.- setup.py) to complement it, without setting- dynamicproperly.- Important - This is a transitional behaviour. Future releases of - setuptoolsmay simply ignore externally set metadata not backed by- dynamicor even halt the build with an error.
- #3224: Merge changes from pypa/distutils@e1d5c9b1f6 
Documentation changes#
- #3217: Fixed typo in - pyproject.tomlexample in Quickstart – by @pablo-cardenas.
Misc#
- #3223: Fixed missing requirements with environment markers when - optional-dependenciesis set in- pyproject.toml.
v61.1.1#
26 Mar 2022
Misc#
v61.1.0#
25 Mar 2022
Deprecations#
- #3206: Changed - setuptools.convert_pathto an internal function that is not exposed as part of setuptools API. Future releases of- setuptoolsare likely to remove this function.
Changes#
- #3202: Changed behaviour of auto-discovery to not explicitly expand - package_dirfor flat-layouts and to not use relative paths starting with- ./.
- #3203: Prevented - pyproject.tomlparsing from overwriting- dist.include_package_dataexplicitly set in- setup.pywith default value.
- #3208: Added a warning for non existing files listed with the - filedirective in- setup.cfgand- pyproject.toml.
- #3208: Added a default value for dynamic - classifiersin- pyproject.tomlwhen files are missing and errors being ignored.
- #3211: Disabled auto-discovery when distribution class has a - configurationattribute (e.g. when the- setup.pyscript contains- setup(..., configuration=...)). This is done to ensure extension-only packages created with- numpy.distutils.misc_util.Configurationare not broken by the safe guard behaviour to avoid accidental multiple top-level packages in a flat-layout.- Note - Users that don’t set - packages,- py_modules, or- configurationare still likely to observe the auto-discovery behavior, which may halt the build if the project contains multiple directories and/or multiple Python files directly under the project root.- To disable auto-discovery please explicitly set either - packagesor- py_modules. Alternatively you can also configure Custom discovery.
v61.0.0#
24 Mar 2022
Deprecations#
- #3068: Deprecated - setuptools.config.read_configuration,- setuptools.config.parse_configurationand other functions or classes from- setuptools.config.- Users that still need to parse and process configuration from - setup.cfgcan import a direct replacement from- setuptools.config.setupcfg, however this module is transitional and might be removed in the future (the- setup.cfgconfiguration format itself is likely to be deprecated in the future).
Breaking Changes#
- #2894: If you purposefully want to create an “empty distribution”, please be aware that some Python files (or general folders) might be automatically detected and included. - Projects that currently don’t specify both - packagesand- py_modulesin their configuration and contain extra folders or Python files (not meant for distribution), might see these files being included in the wheel archive or even experience the build to fail.- You can check details about the automatic discovery (and how to configure a different behaviour) in Package Discovery and Namespace Packages. 
- #3067: If the file - pyproject.tomlexists and it includes project metadata/config (via- [project]table or- [tool.setuptools]), a series of new behaviors that are not backward compatible may take place:- The default value of - include_package_datawill be considered to be- True.
- Setuptools will attempt to validate the - pyproject.tomlfile according to PEP 621 specification.
- The values specified in - pyproject.tomlwill take precedence over those specified in- setup.cfgor- setup.py.
 
Changes#
- #2887: [EXPERIMENTAL] Added automatic discovery for - py_modulesand- packages– by @abravalheri.- Setuptools will try to find these values assuming that the package uses either the src-layout (a - srcdirectory containing all the packages or modules), the flat-layout (package directories directly under the project root), or the single-module approach (an isolated Python file, directly under the project root).- The automatic discovery will also respect layouts that are explicitly configured using the - package_diroption.- For backward-compatibility, this behavior will be observed only if both - py_modulesand- packagesare not set. (Note: specifying- ext_modulesmight also prevent auto-discover from taking place)- If setuptools detects modules or packages that are not supposed to be in the distribution, please manually set - py_modulesand- packagesin your- setup.cfgor- setup.pyfile. If you are using a flat-layout, you can also consider switching to src-layout.
- #2887: [EXPERIMENTAL] Added automatic configuration for the - namemetadata – by @abravalheri.- Setuptools will adopt the name of the top-level package (or module in the case of single-module distributions), only when - nameis not explicitly provided.- Please note that it is not possible to automatically derive a single name when the distribution consists of multiple top-level packages or modules. 
- #3066: Added vendored dependencies for tomli, validate-pyproject. - These dependencies are used to read - pyproject.tomlfiles and validate them.
- #3067: [EXPERIMENTAL] When using - pyproject.tomlmetadata, the default value of- include_package_datais changed to- True.
- #3068: [EXPERIMENTAL] Add support for - pyproject.tomlconfiguration (as introduced by PEP 621). Configuration parameters not covered by standards are handled in the- [tool.setuptools]sub-table.- In the future, existing - setup.cfgconfiguration may be automatically converted into the- pyproject.tomlequivalent before taking effect (as proposed in #1688). Meanwhile users can use automated tools like ini2toml to help in the transition.- Please note that the legacy backend is not guaranteed to work with - pyproject.tomlconfiguration.- – by @abravalheri 
- #3125: Implicit namespaces (as introduced in PEP 420) are now considered by default during package discovery, when - setuptoolsconfiguration and project metadata are added to the- pyproject.tomlfile.- To disable this behaviour, use - namespaces = Falsewhen explicitly setting the- [tool.setuptools.packages.find]section in- pyproject.toml.- This change is backwards compatible and does not affect the behaviour of configuration done in - setup.cfgor- setup.py.
- #3152: [EXPERIMENTAL] Added support for - attr:and- cmdclassconfigurations in- setup.cfgand- pyproject.tomlwhen- package_diris implicitly found via auto-discovery.
- #3178: Postponed importing - ctypeswhen hiding files on Windows. This helps to prevent errors in systems that might not have- libffiinstalled.
- #3179: Merge with pypa/distutils@267dbd25ac 
Documentation changes#
- #3172: Added initial documentation about configuring - setuptoolsvia- pyproject.toml(using standard project metadata).
Misc#
- #3065: Refactored - setuptools.configby separating configuration parsing (specific to the configuration file format, e.g.- setup.cfg) and post-processing (which includes directives such as- file:that can be used across different configuration formats).
v60.10.0#
16 Mar 2022
Changes#
Documentation changes#
- #3144: Added documentation on using console_scripts from setup.py, which was previously only shown in setup.cfg – by @xhlulu 
- #3148: Added clarifications about - MANIFEST.in, that include links to PyPUG docs and more prominent mentions to using a revision control system plugin as an alternative.
- #3148: Removed mention to - pkg_resourcesas the recommended way of accessing data files, in favour of importlib.resources. Additionally more emphasis was put on the fact that package data files reside inside the package directory (and therefore should be read-only).
Misc#
- #3120: Added workaround for intermittent failures of backend tests on PyPy. These tests now are marked with XFAIL, instead of erroring out directly. 
- #3124: Improved configuration for rst-linker (extension used to build the changelog). 
- #3133: Enhanced isolation of tests using virtual environments - PYTHONPATH is not leaking to spawned subprocesses – by @befeleme 
- #3147: Added options to provide a pre-built - setuptoolswheel or sdist for being used during tests with virtual environments. Paths for these pre-built distribution files can now be set via the environment variables:- PRE_BUILT_SETUPTOOLS_SDISTand- PRE_BUILT_SETUPTOOLS_WHEEL.
v60.9.3#
17 Feb 2022
Misc#
- #3093: Repaired automated release process. 
v60.9.2#
15 Feb 2022
Misc#
- #3035: When loading distutils from the vendored copy, rewrite - __name__to ensure consistent importing from inside and out.
v60.9.1#
14 Feb 2022
Misc#
v60.9.0#
13 Feb 2022
Changes#
- #2876: In the build backend, allow single config settings to be supplied. 
- #2993: Removed workaround in distutils hack for get-pip now that pypa/get-pip#137 is closed. 
- #3085: Setuptools no longer relies on - pkg_resourcesfor entry point handling.
- #3098: Bump vendored packaging to 21.3. 
- Removed bootstrap script. 
Warning
Users trying to install the unmaintained pathlib backport
from PyPI/sdist/source code may find problems when using setuptools >= 60.9.0.
This happens because during the installation, the unmaintained
implementation of pathlib is loaded and may cause compatibility problems
(it does not expose the same public API defined in the Python standard library).
Whenever possible users should avoid declaring pathlib as a dependency.
An alternative is to pre-build a wheel for pathlib using a separated
virtual environment with an older version of setuptools and install the
library directly from the pre-built wheel.
v60.8.2#
08 Feb 2022
Misc#
- #3091: Make - concurrent.futuresimport lazy in vendored- more_itertoolspackage to a avoid importing threading as a side effect (which caused gevent/gevent#1865). – by @maciejp-ro
v60.8.1#
06 Feb 2022
Misc#
- #3084: When vendoring jaraco packages, ensure the namespace package is converted to a simple package to support zip importer. 
v60.8.0#
05 Feb 2022
Changes#
- #3085: Setuptools now vendors importlib_resources and importlib_metadata and jaraco.text. Setuptools no longer relies on pkg_resources for ensure_directory nor parse_requirements. 
v60.7.1#
02 Feb 2022
Misc#
- #3072: Remove lorem_ipsum from jaraco.text when vendored. 
v60.7.0#
01 Feb 2022
Changes#
- #3061: Vendored jaraco.text and use line processing from that library in pkg_resources. 
Misc#
- #3070: Avoid AttributeError in easy_install.create_home_path when sysconfig.get_config_vars values are not strings. 
v60.6.0#
30 Jan 2022
Changes#
- #3043: Merge with pypa/distutils@bb018f1ac3 including consolidated behavior in sysconfig.get_platform (pypa/distutils#104). 
- #3057: Don’t include optional - Home-pagein metadata if no- urlis specified. – by @cdce8p
- #3062: Merge with pypa/distutils@b53a824ec3 including improved support for lib directories on non-x64 Windows builds. 
Documentation changes#
- #2897: Added documentation about wrapping - setuptools.build_metain a in-tree custom backend. This is a PEP 517-compliant way of dynamically specifying build dependencies (e.g. when platform, OS and other markers are not enough). – by @abravalheri
- #3034: Replaced occurrences of the defunct distutils-sig mailing list with pointers to GitHub Discussions. – by @ashemedai 
- #3056: The documentation has stopped suggesting to add - wheelto PEP 517 requirements – by @webknjaz
Misc#
v60.5.4#
16 Jan 2022
Misc#
v60.5.3#
13 Jan 2022
Misc#
- #3026: Honor sysconfig variables in easy_install. 
v60.5.2#
11 Jan 2022
Misc#
- #2993: In _distutils_hack, for get-pip, simulate existence of setuptools. 
v60.5.1#
10 Jan 2022
Misc#
- #2918: Correct support for Python 3 native loaders. 
v60.5.0#
08 Jan 2022
Changes#
- #2990: Set the - .originattribute of the- distutilsmodule to the module’s- __file__.
v60.4.0#
08 Jan 2022
Changes#
Documentation changes#
Misc#
- #2862: Added integration tests that focus on building and installing some packages in the Python ecosystem via - pip– by @abravalheri
- #2952: Modified “vendoring” logic to keep license files. 
- #2968: Improved isolation for some tests that where inadvertently using the project root for builds, and therefore creating directories (e.g. - build,- dist,- *.egg-info) that could interfere with the outcome of other tests – by @abravalheri.
- #2968: Introduced new test fixtures - venv,- venv_without_setuptools,- bare_venvthat rely on the- jaraco.envspackage. These new test fixtures were also used to remove the (currently problematic) dependency on the- pytest_virtualenvplugin.
- #2968: Removed - tmp_srctest fixture. Previously this fixture was copying all the files and folders under the project root, including the- .gitdirectory, which is error prone and increases testing time.- Since - tmp_srcwas used to populate virtual environments (installing the version of- setuptoolsunder test via the source tree), it was replaced by the new- setuptools_sdistand- setuptools_wheelfixtures (that are build only once per session testing and can be shared between all the workers for read-only usage).
v60.3.1#
06 Jan 2022
Misc#
- #3002: Suppress AttributeError when detecting get-pip. 
v60.3.0#
05 Jan 2022
Changes#
- #2993: In _distutils_hack, bypass the distutils exception for pip when get-pip is being invoked, because it imports setuptools. 
Misc#
- #2989: Merge with pypa/distutils@788cc159. Includes fix for config vars missing from sysconfig. 
v60.2.0#
29 Dec 2021
Changes#
- #2974: Setuptools now relies on the Python logging infrastructure to log messages. Instead of using - distutils.log.*, use- logging.getLogger(name).*.
- #2987: Sync with pypa/distutils@2def21c5d74fdd2fe7996ee4030ac145a9d751bd, including fix for missing get_versions attribute (#2969), more reliance on sysconfig from stdlib. 
Misc#
v60.1.1#
28 Dec 2021
Misc#
- #2980: Bypass distutils loader when setuptools module is no longer available on sys.path. 
v60.1.0#
23 Dec 2021
Changes#
- #2958: In distutils_hack, only add the metadata finder once. In ensure_local_distutils, rely on a context manager for reliable manipulation. 
- #2963: Merge with pypa/distutils@a5af364910. Includes revisited fix for pypa/distutils#15 and improved MinGW/Cygwin support from pypa/distutils#77. 
v60.0.5#
23 Dec 2021
Misc#
- #2960: Install schemes fall back to default scheme for headers. 
v60.0.4#
22 Dec 2021
Misc#
- #2954: Merge with pypa/distutils@eba2bcd310. Adds platsubdir to config vars available for substitution. 
v60.0.3#
20 Dec 2021
Misc#
- #2940: Avoid KeyError in distutils hack when pip is imported during ensurepip. 
v60.0.2#
20 Dec 2021
Misc#
- #2938: Select ‘posix_user’ for the scheme unless falling back to stdlib, then use ‘unix_user’. 
v60.0.1#
20 Dec 2021
Misc#
- #2944: Add support for extended install schemes in easy_install. 
v60.0.0#
19 Dec 2021
Breaking Changes#
- #2896: Setuptools once again makes its local copy of distutils the default. To override, set SETUPTOOLS_USE_DISTUTILS=stdlib. 
v59.8.0#
19 Dec 2021
Changes#
v59.7.0#
17 Dec 2021
Changes#
- #2930: Require Python 3.7 
v59.6.0#
12 Dec 2021
Changes#
- #2925: Merge with pypa/distutils@92082ee42c including introduction of deprecation warning on Version classes. 
v59.5.0#
05 Dec 2021
Changes#
- #2914: Merge with pypa/distutils@8f2df0bf6. 
v59.4.0#
28 Nov 2021
Changes#
- #2893: Restore deprecated support for newlines in the Summary field. 
v59.3.0#
26 Nov 2021
Changes#
- #2902: Merge with pypa/distutils@85db7a41242. 
Misc#
- #2906: In ensure_local_distutils, re-use DistutilsMetaFinder to load the module. Avoids race conditions when _distutils_system_mod is employed. 
v59.2.0#
18 Nov 2021
Changes#
- #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. 
v59.1.1#
15 Nov 2021
Misc#
- #2885: Fixed errors when encountering LegacyVersions. 
v59.1.0#
14 Nov 2021
Changes#
- #2497: Update packaging to 21.2. 
- #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. 
- #2879: Bump packaging to 21.2. 
Documentation changes#
v59.0.1#
14 Nov 2021
Misc#
- #2880: Removed URL requirement for - pytest-virtualenvin- setup.cfg. PyPI rejects packages with dependencies external to itself. Instead the test dependency was overwritten via- tox.ini
v59.0.0#
12 Nov 2021
Deprecations#
- #2856: Support for custom commands that inherit directly from - distutilsis deprecated. Users should extend classes provided by setuptools instead.
Breaking Changes#
- #2870: Started failing on invalid inline description with line breaks - ValueError– by @webknjaz
Changes#
- #2698: Exposed exception classes from - distutils.errorsvia- setuptools.errors.
- #2866: Incorporate changes from pypa/distutils@f1b0a2b. 
Documentation changes#
- #2227: Added sphinx theme customisations to display the new logo in the sidebar and use its colours as “accent” in the documentation – by @abravalheri 
- #2227: Added new setuptools logo, including editable files and artwork documentation – by @abravalheri 
- #2698: Added mentions to - setuptools.errorsas a way of handling custom command errors.
- #2698: Added instructions to migrate from - distutils.commandsand- distutils.errorsin the porting guide.
- #2871: Added a note to the docs that it is possible to install - setup.py-less projects in editable mode with pip v21.1+, only having- setup.cfgand- pyproject.tomlin project root – by @webknjaz
v58.5.3#
04 Nov 2021
Misc#
- #2849: Add fallback for custom - build_pycommands inheriting directly from- distutils, while still handling- include_package_data=Truefor- sdist.
v58.5.2#
03 Nov 2021
Misc#
- #2847: Suppress ‘setup.py install’ warning under bdist_wheel. 
v58.5.1#
03 Nov 2021
Misc#
- #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. 
v58.5.0#
03 Nov 2021
Changes#
- #1461: Fix inconsistency with - include_package_dataand- packages_datain sdist by replacing the loop breaking mechanism between the- sdistand- egg_infocommands – by @abravalheri
v58.4.0#
31 Oct 2021
Changes#
Documentation changes#
- #2832: Removed the deprecated - data_filesoption from the example in the declarative configuration docs – by @abravalheri
- #2832: Change type of - data_filesoption from- dictto- sectionin declarative configuration docs (to match previous example) – by @abravalheri
v58.3.0#
22 Oct 2021
Changes#
- #917: - setup.py installand- easy_installcommands 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 for more background.
- #1988: Deprecated the - bdist_rpmcommand. Binary packages should be built as wheels instead. – by @hugovk
- #2785: Replace - configparser’s- readfpwith- read_file, deprecated since Python 3.2. – by @hugovk
- #2823: Officially deprecated support for - setup_requires. Users are encouraged instead to migrate to PEP 518- build-system.requiresin- pyproject.toml. Users reliant on- setup_requiresshould consider pinning to this major version to avoid disruption.
Misc#
- #2762: Changed codecov.yml to configure the threshold to be lower – by @tanvimoharir 
v58.2.0#
01 Oct 2021
Changes#
Documentation changes#
v58.1.0#
21 Sep 2021
Changes#
- #2796: Merge with pypa/distutils@02e9f65ab0 
v58.0.4#
08 Sep 2021
Misc#
- #2773: Retain case in setup.cfg during sdist. 
v58.0.3#
07 Sep 2021
Misc#
- #2777: Build does not fail fast when - use_2to3is supplied but set to a false value.
v58.0.2#
06 Sep 2021
Misc#
- #2769: Build now fails fast when - use_2to3is supplied.
v58.0.1#
06 Sep 2021
Misc#
- #2765: In Distribution.finalize_options, suppress known removed entry points to avoid issues with older Setuptools. 
v58.0.0#
04 Sep 2021
Breaking Changes#
Documentation changes#
- #2746: add python_requires example 
v57.5.0#
04 Sep 2021
Changes#
- #2712: Added implicit globbing support for - [options.data_files]values.
Documentation changes#
- #2737: fix various syntax and style errors in code snippets in docs 
v57.4.0#
18 Jul 2021
Changes#
- #2722: Added support for - SETUPTOOLS_EXT_SUFFIXenvironment variable to override the suffix normally detected from the- sysconfigmodule.
v57.3.0#
18 Jul 2021
Changes#
- #2465: Documentation is now published using the Furo theme. 
v57.2.0#
14 Jul 2021
Changes#
- #2724: Added detection of Windows ARM64 build environments using the - VSCMD_ARG_TGT_ARCHenvironment variable.
v57.1.0#
04 Jul 2021
Changes#
- #2692: Globs are now sorted in ‘license_files’ restoring reproducibility by eliminating variance from disk order. 
- #2714: Update to distutils at pypa/distutils@e2627b7. 
- #2715: Removed reliance on deprecated ssl.match_hostname by removing the ssl support. Now any index operations rely on the native SSL implementation. 
Documentation changes#
- #2604: Revamped the backward/cross tool compatibility section to remove some confusion. Add some examples and the version since when - entry_pointsare supported in declarative configuration. Tried to make the reading flow a bit leaner, gather some information that were a bit dispersed.
v57.0.0#
22 May 2021
Breaking Changes#
Changes#
- #2628: Write long description in message payload of PKG-INFO file. - by @cdce8p 
- #2645: Added - License-File(multiple) to the output package metadata. The field will contain the path of a license file, matched by the- license_file(deprecated) and- license_filesoptions, relative to- .dist-info. - by @cdce8p
- #2678: Moved Setuptools’ own entry points into declarative config. 
- #2680: Vendored more_itertools for Setuptools. 
- #2681: Setuptools own setup.py no longer declares setup_requires, but instead expects wheel to be installed as declared by pyproject.toml. 
Misc#
v56.2.0#
09 May 2021
Changes#
v56.1.0#
04 May 2021
Changes#
Misc#
- #2644: Fixed - DeprecationWarningdue to- threading.Thread.setDaemonin tests – by @tirkarthi
- #2654: Made the changelog generator compatible with Towncrier >= 19.9 – @webknjaz 
- #2664: Relax the deprecation message in the distutils hack. 
v56.0.0#
08 Apr 2021
Deprecations#
Breaking Changes#
Changes#
Documentation changes#
v55.0.0#
30 Mar 2021
Breaking Changes#
v54.2.0#
22 Mar 2021
Changes#
v54.1.3#
22 Mar 2021
No significant changes.
v54.1.2#
14 Mar 2021
Misc#
- #2595: Reduced scope of dash deprecation warning to Setuptools/distutils only – by @melissa-kun-li 
v54.1.1#
06 Mar 2021
Documentation changes#
Misc#
- #2592: Made option keys in the - [metadata]section of- setup.cfgcase-sensitive. Users having uppercase option spellings will get a warning suggesting to make them to lowercase – by @melissa-kun-li
v54.1.0#
05 Mar 2021
Changes#
- #1608: Removed the conversion of dashes to underscores in the - extras_requireand- data_filesof- setup.cfgto 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 @melissa-kun-li
v54.0.0#
28 Feb 2021
Breaking Changes#
- #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. 
Changes#
- #1932: Handled - AttributeErrorby raising- DistutilsSetupErrorin- dist.check_specifier()when specifier is not a string – by @melissa-kun-li
- #2570: Correctly parse cmdclass in setup.cfg. 
Documentation changes#
- #2553: Added userguide example for markers in extras_require – by @pwoolvett 
v53.1.0#
25 Feb 2021
Changes#
- #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 @melissa-kun-li 
- #2573: Fixed error in uploading a Sphinx doc with the - upload_docscommand. An html builder will be used. Note:- upload_docsis deprecated for PyPi, but is supported for other sites – by @melissa-kun-li
v53.0.0#
01 Feb 2021
Breaking Changes#
- #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. 
v52.0.0#
23 Jan 2021
Breaking Changes#
Changes#
v51.3.3#
17 Jan 2021
Misc#
- #2539: Fix AttributeError in Description validation. 
v51.3.2#
17 Jan 2021
Misc#
- #1390: Validation of Description field now is more lenient, emitting a warning and mangling the value to be valid (replacing newlines with spaces). 
v51.3.1#
16 Jan 2021
Misc#
- #2536: Reverted tag deduplication handling. 
v51.3.0#
16 Jan 2021
Changes#
- #1390: Newlines in metadata description/Summary now trigger a ValueError. 
- #2481: Define - create_module()and- exec_module()methods in- VendorImporterto get rid of- ImportWarning– by @hroncok
- #2489: - pkg_resourcesbehavior for zipimport now matches the regular behavior, and finds- .egg-info(previously would only find- .dist-info) – by @thatch
- #2529: Fixed an issue where version tags may be added multiple times 
v51.2.0#
16 Jan 2021
Changes#
Documentation changes#
Misc#
- #2534: Avoid hitting network during test_easy_install. 
v51.1.2#
08 Jan 2021
Misc#
- #2505: Disable inclusion of package data as it causes ‘tests’ to be included as data. 
v51.1.1#
28 Dec 2020
Misc#
- #2534: Avoid hitting network during test_virtualenv.test_test_command. 
v51.1.0#
21 Dec 2020
Changes#
- #2486: Project adopts jaraco/skeleton for shared package maintenance. 
Misc#
v51.0.0#
06 Dec 2020
Breaking Changes#
- #2435: Require Python 3.6 or later. 
Documentation changes#
Misc#
- #2471: Removed the tests that guarantee that the vendored dependencies can be built by distutils. 
v50.3.2#
17 Oct 2020
Documentation changes#
- #2394: Extended towncrier news template to include change note categories. This allows to see what types of changes a given version introduces – by @webknjaz 
- #2427: Started enforcing strict syntax and reference validation in the Sphinx docs – by @webknjaz 
- #2428: Removed redundant Sphinx - Makefilesupport – by @webknjaz
Misc#
v50.3.1#
14 Oct 2020
Documentation changes#
Misc#
v50.3.0#
05 Sep 2020
Changes#
- #2368: In distutils, restore support for monkeypatched CCompiler.spawn per pypa/distutils#15. 
v50.2.0#
04 Sep 2020
Changes#
- #2355: When pip is imported as part of a build, leave distutils patched. 
- #2380: There are some setuptools specific changes in the - setuptools.command.bdist_rpmmodule that are no longer needed, because they are part of the- bdist_rpmmodule in distutils in Python 3.5.0. Therefore, code was removed from- setuptools.command.bdist_rpm.
v50.1.0#
02 Sep 2020
Changes#
- #2350: Setuptools reverts using the included distutils by default. Platform maintainers and system integrators and others are strongly encouraged to set - SETUPTOOLS_USE_DISTUTILS=localto 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.
v50.0.3#
01 Sep 2020
Misc#
- #2363: Restore link_libpython support on Python 3.7 and earlier (see pypa/distutils#9). 
v50.0.2#
01 Sep 2020
Misc#
v50.0.1#
01 Sep 2020
Misc#
- #2357: Restored Python 3.5 support in distutils.util for missing - subprocess._optim_args_from_interpreter_flags.
- #2358: Restored AIX support on Python 3.8 and earlier. 
- #2361: Add Python 3.10 support to _distutils_hack. Get the ‘Loader’ abstract class from importlib.abc rather than importlib.util.abc (alias removed in Python 3.10). 
v50.0.0#
20 Aug 2020
Breaking Changes#
- #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_DISTUTILSis 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.
Changes#
- #2334: In MSVC module, refine text in error message. 
v49.6.0#
13 Aug 2020
Changes#
- #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. 
v49.5.0#
13 Aug 2020
Changes#
v49.4.0#
13 Aug 2020
Changes#
- #2310: Updated vendored packaging version to 20.4. 
v49.3.2#
12 Aug 2020
Documentation changes#
- #2300: Improve the - safe_versionfunction documentation
Misc#
- #2297: Once again, in stubs prefer exec_module to the deprecated load_module. 
v49.3.1#
10 Aug 2020
Changes#
- #2316: Removed warning when - distutilsis imported before- setuptoolswhen- distutilsreplacement is not enabled.
v49.3.0#
09 Aug 2020
Changes#
- #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. 
v49.2.1#
02 Aug 2020
Misc#
- #2257: Fixed two flaws in distutils._msvccompiler.MSVCCompiler.spawn. 
v49.2.0#
12 Jul 2020
Changes#
- #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. 
v49.1.3#
12 Jul 2020
Misc#
v49.1.2#
11 Jul 2020
Changes#
- #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. 
v49.1.1#
10 Jul 2020
Misc#
- #2094: Removed pkg_resources.py2_warn module, which is no longer reachable. 
v49.0.1#
05 Jul 2020
Misc#
- #2228: Applied fix for pypa/distutils#3, restoring expectation that spawn will raise a DistutilsExecError when attempting to execute a missing file. 
v49.1.0#
03 Jul 2020
Changes#
- #2228: Disabled distutils adoption for now while emergent issues are addressed. 
v49.0.0#
03 Jul 2020
Breaking Changes#
Changes#
Misc#
- #2199: Fix exception causes all over the codebase by using - raise new_exception from old_exception
v48.0.0#
03 Jul 2020
Breaking Changes#
- #2143: Setuptools adopts distutils from the Python 3.9 standard library and no longer depends on distutils in the standard library. When importing - setuptoolsor- setuptools.distutils_patch, Setuptools will expose its bundled version as a top-level- distutilspackage (and unload any previously-imported top-level distutils package), retaining the expectation that- distutils’ objects are actually Setuptools objects. 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 installor- 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).
v47.3.2#
03 Jul 2020
Misc#
- #2071: Replaced references to the deprecated imp package with references to importlib 
v47.3.1#
16 Jun 2020
Misc#
v47.3.0#
15 Jun 2020
Changes#
- #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. 
Misc#
- #2195: Fix broken entry points generated by easy-install (pip editable installs). 
v47.2.0#
15 Jun 2020
Changes#
v47.1.1#
28 May 2020
Documentation changes#
- #2156: Update mailing list pointer in developer docs 
Incorporate changes from v44.1.1:#
- #2158: Avoid loading working set during - Distribution.finalize_optionsprior to invoking- _install_setup_requires, broken since v42.0.0.
v44.1.1#
28 May 2020
Misc#
- #2158: Avoid loading working set during - Distribution.finalize_optionsprior to invoking- _install_setup_requires, broken since v42.0.0.
v47.1.0#
28 May 2020
Changes#
- #2070: In wheel-to-egg conversion, use simple pkg_resources-style namespace declaration for packages that declare namespace_packages. 
v47.0.0#
28 May 2020
Breaking Changes#
- #2094: Setuptools now actively crashes under Python 2. Python 3.5 or later is required. Users of Python 2 should use - setuptools<45.
Changes#
- #1700: Document all supported keywords by migrating the ones from distutils. 
v46.4.0#
16 May 2020
Changes#
- #1753: - attr:now extracts variables through rudimentary examination of the AST, thereby supporting modules with third-party imports. If examining the AST fails to find the variable,- attr:falls back to the old behavior of importing the module. Works on Python 3 only.
v46.3.1#
15 May 2020
No significant changes.
v46.3.0#
13 May 2020
Changes#
Misc#
v46.2.0#
10 May 2020
Changes#
- #2040: Deprecated the - bdist_wininstcommand. Binary packages should be built as wheels instead.
- #2062: Change ‘Mac OS X’ to ‘macOS’ in code. 
- #2075: Stop recognizing files ending with - .dist-infoas distribution metadata.
- #2086: Deprecate ‘use_2to3’ functionality. Packagers are encouraged to use single-source solutions or build tool chains to manage conversions outside of setuptools. 
Documentation changes#
- #1698: Added documentation for - build_meta(a bare minimum, not completed).
Misc#
- #2082: Filter - lib2to3- PendingDeprecationWarningand- DeprecationWarningin tests, because- lib2to3is deprecated in Python 3.9.
v46.1.3#
25 Mar 2020
No significant changes.
v46.1.2#
25 Mar 2020
Misc#
- #1458: Added template for reporting Python 2 incompatibilities. 
v46.1.1#
21 Mar 2020
No significant changes.
v46.1.0#
21 Mar 2020
Changes#
- #308: Allow version number normalization to be bypassed by wrapping in a ‘setuptools.sic()’ call. 
- #1424: Prevent keeping files mode for package_data build. It may break a build if user’s package data has read only flag. 
- #1431: In - easy_install.check_site_dir, ensure the installation directory exists.
- #1563: In - pkg_resourcesprefer- find_spec(PEP 451) to- find_module.
Incorporate changes from v44.1.0:#
v44.1.0#
21 Mar 2020
Changes#
v46.0.0#
08 Mar 2020
Breaking Changes#
- #65: Once again as in 3.0, removed the Features feature. 
Changes#
Documentation changes#
- #2011: Fix broken link to distutils docs on package_data 
Misc#
- #1991: Include pkg_resources test data in sdist, so tests can be executed from it. 
v45.3.0#
07 Mar 2020
Changes#
v45.2.0#
08 Feb 2020
Changes#
- #1905: Fixed defect in _imp, introduced in 41.6.0 when the ‘tests’ directory is not present. 
- #1941: Improve editable installs with PEP 518 build isolation: - The - --useroption is now always available. A warning is issued if the user site directory is not available.
- The error shown when the install directory is not in - PYTHONPATHhas been turned into a warning.
 
- #1981: Setuptools now declares its - testsand- docsdependencies in metadata (extras).
- #1985: Add support for installing scripts in environments where bdist_wininst is missing (i.e. Python 3.9). 
Misc#
- #1968: Add flake8-2020 to check for misuse of sys.version or sys.version_info. 
v45.1.0#
19 Jan 2020
Changes#
v45.0.0#
11 Jan 2020
Breaking Changes#
- #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. 
Changes#
- #1959: Fix for Python 4: replace unsafe six.PY3 with six.PY2 
v44.0.0#
01 Jan 2020
Breaking Changes#
- #1908: Drop support for Python 3.4. 
v43.0.0#
31 Dec 2019
Breaking Changes#
- #1634: Include - pyproject.tomlin source distribution by default. Projects relying on the previous behavior where- pyproject.tomlwas excluded by default should stop relying on that behavior or add- exclude pyproject.tomlto their MANIFEST.in file.
Changes#
v42.0.2#
01 Dec 2019
Changes#
v42.0.1#
25 Nov 2019
Changes#
- #1918: Fix regression in handling wheels compatibility tags. 
v42.0.0#
23 Nov 2019
Breaking Changes#
- #1830, #1909: Mark the easy_install script and setuptools command as deprecated, and use pip when available to fetch/build wheels for missing setup_requires/tests_requirerequirements, with the following differences in behavior:
- support for - python_requires
- better support for wheels (proper handling of priority with respect to PEP 425 tags) 
- PEP 517/518 support 
- eggs are not supported 
- no support for the - allow_hostseasy_install option (- index_url/- find_linksare still honored)
- pip environment variables are honored (and take precedence over easy_install options) 
 
 
- #1830, #1909: Mark the easy_install script and setuptools command as deprecated, and use pip when available to fetch/build wheels for missing 
- #1898: Removed the “upload” and “register” commands in favor of twine. 
Changes#
- #1767: Add support for the - license_filesoption in- setup.cfgto automatically include multiple license files in a source distribution.
- #1829: Update handling of wheels compatibility tags: * add support for manylinux2010 * fix use of removed ‘m’ ABI flag in Python 3.8 on Windows 
- #1861: Fix empty namespace package installation from wheel. 
- #1877: Setuptools now exposes a new entry point hook “setuptools.finalize_distribution_options”, enabling plugins like setuptools_scm to configure options on the distribution at finalization time. 
v41.6.0#
29 Oct 2019
Changes#
- #479: Replace usage of deprecated - impmodule with local re-implementation in- setuptools._imp.
v41.5.1#
28 Oct 2019
Changes#
- #1891: Fix code for detecting Visual Studio’s version on Windows under Python 2. 
v41.5.0#
27 Oct 2019
Changes#
- #1811: Improve Visual C++ 14.X support, mainly for Visual Studio 2017 and 2019. 
- #1814: Fix - pkg_resources.Requirementhash/equality implementation: take PEP 508 direct URL into account.
- #1824: Fix tests when running under - python3.10.
- #1878: Formally deprecated the - testcommand, with the recommendation that users migrate to- tox.
Documentation changes#
- #1860: Update documentation to mention the egg format is not supported by pip and dependency links support was dropped starting with pip 19.0. 
- #1862: Drop ez_setup documentation: deprecated for some time (last updated in 2016), and still relying on easy_install (deprecated too). 
- #1868: Drop most documentation references to (deprecated) EasyInstall. 
- #1884: Added a trove classifier to document support for Python 3.8. 
Misc#
- #1886: Added Python 3.8 release to the Travis test matrix. 
v41.4.0#
06 Oct 2019
Changes#
- #1847: In declarative config, now traps errors when invalid - python_requiresvalues are supplied.
v41.3.0#
06 Oct 2019
Changes#
- #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+. 
Misc#
- #1858: Fixed failing integration test triggered by ‘long_description_content_type’ in packaging. 
v41.2.0#
21 Aug 2019
Changes#
- #479: Remove some usage of the deprecated - impmodule.
Misc#
- #1565: Changed html_sidebars from string to list of string as per https://www.sphinx-doc.org/en/master/changes.html#id58 
v41.1.0#
13 Aug 2019
Misc#
- #1697: Moved most of the constants from setup.py to setup.cfg 
- #1749: Fixed issue with the PEP 517 backend where building a source distribution would fail if any tarball existed in the destination directory. 
- #1750: Fixed an issue with PEP 517 backend where wheel builds would fail if the destination directory did not already exist. 
- #1756: Force metadata-version >= 1.2. when project urls are present. 
- #1769: Improve - package_datacheck: ensure the dictionary values are lists/tuples of strings.
- #1788: Changed compatibility fallback logic for - html.unescapeto avoid accessing- HTMLParser.unescapewhen not necessary.- HTMLParser.unescapeis deprecated and will be removed in Python 3.9.
- #1790: Added the file path to the error message when a - UnicodeDecodeErroroccurs while reading a metadata file.
Documentation changes#
- #1776: Use license classifiers rather than the license field. 
v41.0.1#
22 Apr 2019
Changes#
- #1671: Fixed issue with the PEP 517 backend that prevented building a wheel when the - dist/directory contained existing- .whlfiles.
- #1709: In test.paths_on_python_path, avoid adding unnecessary duplicates to the PYTHONPATH. 
- #1741: In package_index, now honor “current directory” during a checkout of git and hg repositories under Windows 
v41.0.0#
05 Apr 2019
Breaking Changes#
- #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. 
v40.9.0#
03 Apr 2019
Changes#
- #1675: Added support for - setup.cfg-only projects when using the- setuptools.build_metabackend. Projects that have enabled PEP 517 no longer need to have a- setup.pyand can use the purely declarative- setup.cfgconfiguration file instead.
- #1720: Added support for - pkg_resources.parse_requirements-style requirements in- setup_requireswhen- setup.pyis invoked from the- setuptools.build_metabuild backend.
- #1664: Added the path to the - PKG-INFOor- METADATAfile in the exception text when the- Version:header can’t be found.
Documentation changes#
- #1705: Removed some placeholder documentation sections referring to deprecated features. 
v40.8.0#
05 Feb 2019
Changes#
- #1652: Added the - build_meta:__legacy__backend, a “compatibility mode” PEP 517 backend that can be used as the default when- build-backendis left unspecified in- pyproject.toml.
- #1635: Resource paths are passed to - pkg_resources.resource_stringand 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.
- #1536: - setuptoolswill now automatically include licenses if- setup.cfgcontains a- license_fileattribute, unless this file is manually excluded inside- MANIFEST.in.
v40.7.3#
03 Feb 2019
Changes#
v40.7.2#
31 Jan 2019
Changes#
- #1666: Restore port in URL handling in package_index. 
v40.7.1#
28 Jan 2019
Changes#
- #1660: On Python 2, when reading config files, downcast options from text to bytes to satisfy distutils expectations. 
v40.7.0#
27 Jan 2019
Breaking Changes#
- #1551: File inputs for the - licensefield in- setup.cfgfiles now explicitly raise an error.
Changes#
- #1180: Add support for non-ASCII in setup.cfg (#1062). Add support for native strings on some parameters (#1136). 
- #1499: - setuptools.package_indexno longer relies on the deprecated- urllib.parse.splituserper Python #27485.
- #1544: Added tests for PackageIndex.download (for git URLs). 
- #1625: In PEP 517 build_meta builder, ensure that sdists are built as gztar per the spec. 
v40.6.3#
11 Dec 2018
Changes#
v40.6.2#
13 Nov 2018
Changes#
- #1592: Fix invalid dependency on external six module (instead of vendored version). 
v40.6.1#
12 Nov 2018
Changes#
- #1590: Fixed regression where packages without - authoror- author_emailfields generated malformed package metadata.
v40.6.0#
12 Nov 2018
Deprecations#
- #1541: Officially deprecated the - requiresparameter in- setup().
Changes#
- #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.
- #1545: Changed the warning class of all deprecation warnings; deprecation warning classes are no longer derived from - DeprecationWarningand are thus visible by default.
- #1554: - build_meta.build_sdistnow includes- setup.pyin source distributions by default.
- #1576: Started monkey-patching - get_metadata_versionand- read_pkg_fileonto- distutils.DistributionMetadatato retain the correct version on the- PKG-INFOfile in the (deprecated)- uploadcommand.
Documentation changes#
- #1395: Changed Pyrex references to Cython in the documentation. 
- #1456: Documented that the - rpmbuildpackages is required for the- bdist_rpmcommand.
- #1537: Documented how to use - setup.cfgfor- src/ layouts
- #1539: Added minimum version column in - setup.cfgmetadata table.
- #1552: Fixed a minor typo in the python 2/3 compatibility documentation. 
- #1553: Updated installation instructions to point to - pip installinstead of- ez_setup.py.
- #1560: Updated - setuptoolsdistribution documentation to remove some outdated information.
- #1564: Documented - setup.cfgminimum version for version and project_urls.
Misc#
v40.5.0#
26 Oct 2018
Changes#
Documentation changes#
- #1525: Fixed rendering of the deprecation warning in easy_install doc. 
v40.4.3#
23 Sep 2018
Changes#
- #1480: Bump vendored pyparsing in pkg_resources to 2.2.1. 
v40.4.2#
21 Sep 2018
Misc#
- #1497: Updated gitignore in repo. 
v40.4.1#
18 Sep 2018
Changes#
- #1480: Bump vendored pyparsing to 2.2.1. 
v40.4.0#
18 Sep 2018
Changes#
- #1481: Join the sdist - --dist-dirand the- build_metasdist 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).
v40.3.0#
16 Sep 2018
Changes#
- #1402: Fixed a bug with namespace packages under Python 3.6 when one package in current directory hides another which is installed. 
- #1427: Set timestamp of - .egg-infodirectory whenever- egg_infocommand is run.
- #1474: - build_meta.get_requires_for_build_sdistnow does not include the- wheelpackage anymore.
- #1486: Suppress warnings in pkg_resources.handle_ns. 
Misc#
- #1479: Remove internal use of six.binary_type. 
v40.2.0#
21 Aug 2018
Changes#
v40.1.1#
21 Aug 2018
Changes#
- #1465: Fix regression with - egg_infocommand when tagging is used.
v40.1.0#
17 Aug 2018
Changes#
- #1410: Deprecated - uploadand- registercommands.
- #1312: Introduced find_namespace_packages() to find PEP 420 namespace packages. 
- #1420: Added find_namespace: directive to config parser. 
- #1418: Solved race in when creating egg cache directories. 
- #1450: Upgraded vendored PyParsing from 2.1.10 to 2.2.0. 
- #1451: Upgraded vendored appdirs from 1.4.0 to 1.4.3. 
- #1388: Fixed “Microsoft Visual C++ Build Tools” link in exception when Visual C++ not found. 
- #1389: Added support for scripts which have unicode content. 
- #1416: Moved several Python version checks over to using - six.PY2and- six.PY3.
Misc#
- #1441: Removed spurious executable permissions from files that don’t need them. 
v40.0.0#
09 Jul 2018
Breaking Changes#
- #1342: Drop support for Python 3.3. 
Changes#
Documentation changes#
Misc#
v39.2.0#
19 May 2018
Changes#
- #1359: Support using “file:” to load a PEP 440-compliant package version from a text file. 
- #1360: Fixed issue with a mismatch between the name of the package and the name of the .dist-info file in wheel files 
- #1364: Add - __dir__()implementation to- pkg_resources.Distribution()that includes the attributes in the- _providerinstance variable.
- #1365: Take the package_dir option into account when loading the version from a module attribute. 
Documentation changes#
Misc#
- #1343: The - setuptoolsspecific- long_description_content_type,- project_urlsand- provides_extrasfields are now set consistently after any- distutils- setup_keywordscalls, allowing them to override values.
- #1352: Added - toxenvironment for documentation builds.
- #1354: Added - towncrierfor changelog management.
- #1355: Add PR template. 
- #1368: Fixed tests which failed without network connectivity. 
- #1369: Added unit tests for PEP 425 compatibility tags support. 
- #1372: Stop testing Python 3.3 in Travis CI, now that the latest version of - wheelno longer installs on it.
v39.1.0#
28 Apr 2018
v39.0.1#
18 Mar 2018
- #1297: Restore Unicode handling for Maintainer fields in metadata. 
v39.0.0#
17 Mar 2018
- #1296: Setuptools now vendors its own direct dependencies, no longer relying on the dependencies as vendored by pkg_resources. 
- #296: Removed long-deprecated support for iteration on Version objects as returned by - pkg_resources.parse_version. Removed the- SetuptoolsVersionand- SetuptoolsLegacyVersionnames as well. They should not have been used, but if they were, replace with- Versionand- LegacyVersionfrom- packaging.version.
v38.7.0#
17 Mar 2018
- #1288: Add support for maintainer in PKG-INFO. 
v38.6.1#
17 Mar 2018
- #1292: Avoid generating - Provides-Extrain metadata when no extra is present (but environment markers are).
v38.6.0#
15 Mar 2018
v38.5.2#
06 Mar 2018
v38.5.1#
06 Feb 2018
- #1271: Revert to Cython legacy - build_extbehavior for compatibility.
v38.5.0#
04 Feb 2018
v38.4.1#
03 Feb 2018
- #1257: In bdist_egg.scan_module, fix ValueError on Python 3.7. 
v38.4.0#
05 Jan 2018
- #1231: Removed warning when PYTHONDONTWRITEBYTECODE is enabled. 
v38.3.0#
04 Jan 2018
v38.2.5#
- #1232: Fix trailing slash handling in - pkg_resources.ZipProvider.
v38.2.4#
04 Dec 2017
- #1220: Fix - data_fileshandling when installing from wheel.
v38.2.3#
28 Nov 2017
- fix Travis’ Python 3.3 job. 
v38.2.2#
27 Nov 2017
- #1214: fix handling of namespace packages when installing from a wheel. 
v38.2.1#
26 Nov 2017
- #1212: fix encoding handling of metadata when installing from a wheel. 
v38.2.0#
26 Nov 2017
- #1200: easy_install now support installing from wheels: they will be installed as standalone unzipped eggs. 
v38.1.0#
25 Nov 2017
- #1208: Improve error message when failing to locate scripts in egg-info metadata. 
v38.0.0#
25 Nov 2017
- #458: In order to support deterministic builds, Setuptools no longer allows packages to declare - install_requiresas unordered sequences (sets or dicts).
v37.0.0#
20 Nov 2017
- #878: Drop support for Python 2.6. Python 2.6 users should rely on ‘setuptools < 37dev’. 
v36.8.0#
19 Nov 2017
- #1190: In SSL support for package index operations, use SNI where available. 
v36.7.3#
13 Nov 2017
- #1175: Bug fixes to - build_metamodule.
v36.7.2#
13 Nov 2017
- #701: Fixed duplicate test discovery on Python 3. 
v36.7.1#
11 Nov 2017
- #1193: Avoid test failures in bdist_egg when PYTHONDONTWRITEBYTECODE is set. 
v36.7.0#
09 Nov 2017
- #1054: Support - setup_requiresin- setup.cfgfiles.
v36.6.1#
09 Nov 2017
v36.6.0#
12 Oct 2017
v36.5.0#
15 Sep 2017
v36.4.0#
03 Sep 2017
- #1075: Add new - Description-Content-Typemetadata field. See here for documentation on how to use this field.
- #1068: Sort files and directories when building eggs for deterministic order. 
- #196: Remove caching of easy_install command in fetch_build_egg. Fixes issue where - pytest-runner-N.Nwould satisfy the installation of- pytest.
- #1129: Fix working set dependencies handling when replacing conflicting distributions (e.g. when using - setup_requireswith a conflicting transitive dependency, fix #1124).
- #1133: Improved handling of README files extensions and added Markdown to the list of searched READMES. 
- #1135: Improve performance of pkg_resources import by not invoking - accessor- statand using- os.listdirinstead.
v36.3.0#
28 Aug 2017
- #1131: Make possible using several files within - file:directive in metadata.long_description in- setup.cfg.
v36.2.7#
02 Aug 2017
v36.2.6#
31 Jul 2017
- #462: Don’t assume a directory is an egg by the - .eggextension alone.
v36.2.5#
30 Jul 2017
v36.2.4#
26 Jul 2017
- #1092: - pkg_resourcesnow uses- inspect.getmroto resolve classes in method resolution order.
v36.2.3#
25 Jul 2017
- #1102: Restore behavior for empty extras. 
v36.2.2#
24 Jul 2017
- #1099: Revert commit a3ec721, restoring intended purpose of extras as part of a requirement declaration. 
v36.2.1#
23 Jul 2017
v36.2.0#
13 Jul 2017
- #1081: Environment markers indicated in - install_requiresare now processed and treated as nameless- extras_requirewith markers, allowing their metadata in requires.txt to be correctly generated.
- #1053: Tagged commits are now released using Travis-CI build stages, meaning releases depend on passing tests on all supported Python versions (Linux) and not just the latest Python version. 
v36.1.1#
13 Jul 2017
v36.1.0#
13 Jul 2017
- #1083: Avoid race condition on directory creation in - pkg_resources.ensure_directory.
- Removed deprecation of and restored support for - upload_docscommand for sites other than PyPI. Only warehouse is dropping support, but services like devpi continue to support docs built by setuptools’ plugins. See this comment for more context on the motivation for this change.
v36.0.1#
01 Jun 2017
- #1042: Fix import in py27compat module that still referenced six directly, rather than through the externs module (vendored packages hook). 
v36.0.0#
30 May 2017
- #980 and others: Once again, Setuptools vendors all of its dependencies. It seems to be the case that in the Python ecosystem, all build tools must run without any dependencies (build, runtime, or otherwise). At such a point that a mechanism exists that allows build tools to have dependencies, Setuptools will adopt it. 
v35.0.2#
27 Apr 2017
- #1015: Fix test failures on Python 3.7. 
- #1024: Add workaround for Jython #2581 in monkey module. 
v35.0.1#
18 Apr 2017
v35.0.0#
15 Apr 2017
- #436: In egg_info.manifest_maker, no longer read the file list from the manifest file, and instead re-build it on each build. In this way, files removed from the specification will not linger in the manifest. As a result, any files manually added to the manifest will be removed on subsequent egg_info invocations. No projects should be manually adding files to the manifest and should instead use MANIFEST.in or SCM file finders to force inclusion of files in the manifest. 
v34.4.1#
10 Apr 2017
- #1008: In MSVC support, use always the last version available for Windows SDK and UCRT SDK. 
- #1008: In MSVC support, fix “vcruntime140.dll” returned path with Visual Studio 2017. 
- #992: In msvc.msvc9_query_vcvarsall, ensure the returned dicts have str values and not Unicode for compatibility with os.environ. 
v34.4.0#
07 Apr 2017
v34.3.3#
26 Mar 2017
v34.3.2#
11 Mar 2017
- #993: Fix documentation upload by correcting rendering of content-type in _build_multipart on Python 3. 
v34.3.1#
02 Mar 2017
v34.3.0#
23 Feb 2017
v34.2.0#
12 Feb 2017
v34.1.1#
03 Feb 2017
v34.1.0#
28 Jan 2017
- #930: - build_infonow accepts two new parameters to optimize and customize the building of C libraries.
v34.0.3#
28 Jan 2017
- #947: Loosen restriction on the version of six required, restoring compatibility with environments relying on six 1.6.0 and later. 
v34.0.2#
24 Jan 2017
v34.0.1#
23 Jan 2017
- #935: Fix glob syntax in graft. 
v34.0.0#
23 Jan 2017
- #581: Instead of vendoring the growing list of dependencies that Setuptools requires to function, Setuptools now requires these dependencies just like any other project. Unlike other projects, however, Setuptools cannot rely on - setup_requiresto demand the dependencies it needs to install because its own machinery would be necessary to pull those dependencies if not present (a bootstrapping problem). As a result, Setuptools no longer supports self upgrade or installation in the general case. Instead, users are directed to use pip to install and upgrade using the- wheeldistributions of setuptools.- Users are welcome to contrive other means to install or upgrade Setuptools using other means, such as pre-installing the Setuptools dependencies with pip or a bespoke bootstrap tool, but such usage is not recommended and is not supported. - As discovered in #940, not all versions of pip will successfully install Setuptools from its pre-built wheel. If you encounter issues with “No module named six” or “No module named packaging”, especially following a line “Running setup.py egg_info for package setuptools”, then your pip is not new enough. - There’s an additional issue in pip where setuptools is upgraded concurrently with other source packages, described in pip #4253. The proposed workaround is to always upgrade Setuptools first prior to upgrading other packages that would upgrade Setuptools. 
v33.1.1#
16 Jan 2017
- #921: Correct issue where certifi fallback not being reached on Windows. 
v33.1.0#
15 Jan 2017
Installation via pip, as indicated in the Python Packaging User’s Guide, is the officially-supported mechanism for installing Setuptools, and this recommendation is now explicit in the much more concise README.
Other edits and tweaks were made to the documentation. The codebase is unchanged.
v33.0.0#
01 Jan 2017
- #619: Removed support for the - tag_svn_revisiondistribution option. If Subversion tagging support is still desired, consider adding the functionality to setuptools_svn in setuptools_svn #2.
v32.3.1#
28 Dec 2016
- #866: Use - dis.Bytecodeon Python 3.4 and later in- setuptools.depends.
v32.3.0#
24 Dec 2016
- #889: Backport proposed fix for disabling interpolation in distutils.Distribution.parse_config_files. 
v32.2.0#
22 Dec 2016
- #884: Restore support for running the tests under pytest-runner by ensuring that PYTHONPATH is honored in tests invoking a subprocess. 
v32.1.3#
21 Dec 2016
- #706: Add rmtree compatibility shim for environments where rmtree fails when passed a unicode string. 
v32.1.2#
18 Dec 2016
- #893: Only release sdist in zip format as warehouse now disallows releasing two different formats. 
v32.1.1#
18 Dec 2016
v32.1.0#
16 Dec 2016
- #891: In ‘test’ command on test failure, raise DistutilsError, suppression invocation of subsequent commands. 
v32.0.0#
14 Dec 2016
v31.0.1#
14 Dec 2016
- #885: Fix regression where ‘pkg_resources._rebuild_mod_path’ would fail when a namespace package’s ‘__path__’ was not a list with a sort attribute. 
v31.0.0#
11 Dec 2016
- #250: Install ‘-nspkg.pth’ files for packages installed with ‘setup.py develop’. These .pth files allow namespace packages installed by pip or develop to co-mingle. This change required the removal of the change for #805 and pip #1924, introduced in 28.3.0 and implicated in #870, but means that namespace packages not in a site packages directory will no longer work on Python earlier than 3.5, whereas before they would work on Python not earlier than 3.3. 
v30.4.0#
10 Dec 2016
- #879: For declarative config: - 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. 
- packages find: directive now supports fine tuning from a subsection. The same arguments as for find() are accepted. 
 
v30.3.0#
08 Dec 2016
- #394 via #862: Added support for declarative package config in a setup.cfg file. 
v30.2.1#
08 Dec 2016
- #850: In test command, invoke unittest.main with indication not to exit the process. 
v30.2.0#
04 Dec 2016
- #854: Bump to vendored Packaging 16.8. 
v30.1.0#
03 Dec 2016
v30.0.0#
01 Dec 2016
v29.0.1#
26 Nov 2016
- #861: Re-release of v29.0.1 with the executable script launchers bundled. Now, launchers are included by default and users that want to disable this behavior must set the environment variable ‘SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES’ to a false value like “false” or “0”. 
v29.0.0#
25 Nov 2016
- #841: Drop special exception for packages invoking win32com during the build/install process. See Distribute #118 for history. 
v28.8.0#
04 Nov 2016
v28.7.1#
29 Oct 2016
v28.7.0#
28 Oct 2016
v28.6.1#
19 Oct 2016
- #816: Fix manifest file list order in tests. 
v28.6.0#
16 Oct 2016
- #629: When scanning for packages, - pkg_resourcesnow ignores empty egg-info directories and gives precedence to packages whose versions are lexicographically greatest, a rough approximation for preferring the latest available version.
v28.5.0#
14 Oct 2016
- #810: Tests are now invoked with tox and not setup.py test. 
- #249 and #450 via #764: Avoid scanning the whole tree when building the manifest. Also fixes a long-standing bug where patterns in - MANIFEST.inhad implicit wildcard matching. This caused- global-exclude .footo exclude all- *.foofiles, but also- global-exclude bar.pyto exclude- foo_bar.py.
v28.4.0#
14 Oct 2016
- #811: Update to pyparsing 2.1.10. 
- Updated - setuptools.command.sdistto re-use most of the functionality directly from- distutils.command.sdistfor the- add_defaultsmethod with strategic overrides. See #750 for rationale.
- #760 via #762: Look for certificate bundle where SUSE Linux typically presents it. Use - certifi.where()to locate the bundle.
v28.3.0#
07 Oct 2016
v28.1.0#
01 Oct 2016
- #803: Bump certifi to 2016.9.26. 
v28.0.0#
27 Sep 2016
- #733: Do not search excluded directories for packages. This introduced a backwards incompatible change in - find_packages()so that- find_packages(exclude=['foo']) == [], excluding subpackages of- foo. Previously,- find_packages(exclude=['foo']) == ['foo.bar'], even though the parent- foopackage was excluded.
- #795: Bump certifi. 
- #719: Suppress decoding errors and instead log a warning when metadata cannot be decoded. 
v27.3.1#
27 Sep 2016
- #790: In MSVC monkeypatching, explicitly patch each function by name in the target module instead of inferring the module from the function’s - __module__. Improves compatibility with other packages that might have previously patched distutils functions (i.e. NumPy).
v27.3.0#
20 Sep 2016
v27.2.0#
14 Sep 2016
v27.1.2#
09 Sep 2016
v27.1.1#
09 Sep 2016
- #778: Fix MSVC monkeypatching. 
v27.1.0#
09 Sep 2016
- Introduce the (private) - monkeymodule to encapsulate the distutils monkeypatching behavior.
v27.0.0#
09 Sep 2016
- Now use Warehouse by default for - upload, patching- distutils.config.PyPIRCCommandto affect default behavior.- Any config in .pypirc should be updated to replace - with - Similarly, any passwords stored in the keyring should be updated to use this new value for “system”. - The - upload_docscommand will continue to use the python.org site, but the command is now deprecated. Users are urged to use Read The Docs instead.
- #776: Use EXT_SUFFIX for py_limited_api renaming. 
- #774 and #775: Use LegacyVersion from packaging when detecting numpy versions. 
v26.1.1#
29 Aug 2016
- Re-release of 26.1.0 with pytest pinned to allow for automated deployment and thus proper packaging environment variables, fixing issues with missing executable launchers. 
v26.1.0#
28 Aug 2016
v26.0.0#
20 Aug 2016
- #748: By default, sdists are now produced in gzipped tarfile format by default on all platforms, adding forward compatibility for the same behavior in Python 3.6 (See Python #27819). 
- #459 via #736: On Windows with script launchers, sys.argv[0] now reflects the name of the entry point, consistent with the behavior in distlib and pip wrappers. 
- #752 via #753: When indicating - py_limited_apito Extension, it must be passed as a keyword argument.
v25.4.0#
19 Aug 2016
- Add Extension(py_limited_api=True). When set to a truthy value, that extension gets a filename appropriate for code using Py_LIMITED_API. When used correctly this allows a single compiled extension to work on all future versions of CPython 3. The py_limited_api argument only controls the filename. To be compatible with multiple versions of Python 3, the C extension will also need to set -DPy_LIMITED_API=… and be modified to use only the functions in the limited API. 
v25.3.0#
19 Aug 2016
v25.2.0#
12 Aug 2016
v25.1.6#
05 Aug 2016
- #725: revert - library_dir_optionpatch (Error is related to- numpy.distutilsand make errors on non Numpy users).
v25.1.5#
05 Aug 2016
v25.1.4#
04 Aug 2016
v25.1.3#
02 Aug 2016
v25.1.2#
01 Aug 2016
- #704: Fix errors when installing a zip sdist that contained files named with non-ascii characters on Windows would crash the install when it attempted to clean up the build. 
- #646: MSVC compatibility - catch errors properly in RegistryInfo.lookup. 
- #702: Prevent UnboundLocalError when initial working_set is empty. 
v25.1.1#
28 Jul 2016
v25.1.0#
25 Jul 2016
- #609: Setuptools will now try to download a distribution from the next possible download location if the first download fails. This means you can now specify multiple links as - dependency_linksand all links will be tried until a working download link is encountered.
v25.0.2#
25 Jul 2016
- #688: Fix AttributeError in setup.py when invoked not from the current directory. 
v25.0.1#
25 Jul 2016
v25.0.0#
23 Jul 2016
- #674: Default - sys.pathmanipulation by easy-install.pth is now “raw”, meaning that when writing easy-install.pth during any install operation, the- sys.pathwill not be rewritten and will no longer give preference to easy_installed packages.- To retain the old behavior when using any easy_install operation (including - setup.py installwhen setuptools is present), set the environment variable:- SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite - This project hopes that that few if any environments find it necessary to retain the old behavior, and intends to drop support for it altogether in a future release. Please report any relevant concerns in the ticket for this change. 
v24.3.1#
23 Jul 2016
v24.3.0#
21 Jul 2016
- #516: Disable - os.linkto avoid hard linking in- sdist.make_distribution, avoiding errors on systems that support hard links but not on the file system in which the build is occurring.
v24.2.1#
21 Jul 2016
- #667: Update Metadata-Version to 1.2 when - python_requiresis supplied.
v24.2.0#
20 Jul 2016
- #631: Add support for - python_requireskeyword.
v24.1.1#
20 Jul 2016
v24.1.0#
20 Jul 2016
v24.0.3#
14 Jul 2016
v24.0.2#
04 Jul 2016
- If MSVC++14 is needed - setuptools.msvcnow redirect user to Visual C++ Build Tools web page.
v24.0.1#
03 Jul 2016
v24.0.0#
02 Jul 2016
- Pull Request #174: Add more aggressive support for standalone Microsoft Visual C++ compilers in msvc9compiler patch. Particularly : Windows SDK 6.1 and 7.0 (MSVC++ 9.0), Windows SDK 7.1 (MSVC++ 10.0), Visual C++ Build Tools 2015 (MSVC++14) 
- Renamed - setuptools.msvc9_supportto- setuptools.msvc.
v23.2.1#
02 Jul 2016
Re-release of v23.2.0, which was missing the intended commits.
- #623: Remove used of deprecated ‘U’ flag when reading manifests. 
v23.1.0#
24 Jun 2016
- #619: Deprecated - tag_svn_revisiondistribution option.
v23.0.0#
09 Jun 2016
- #611: Removed ARM executables for CLI and GUI script launchers on Windows. If this was a feature you cared about, please comment in the ticket. 
- #604: Removed docs building support. The project now relies on documentation hosted at https://setuptools.pypa.io/. 
v22.0.5#
03 Jun 2016
- #604: Restore repository for upload_docs command to restore publishing of docs during release. 
v22.0.4#
03 Jun 2016
- #589: Upload releases to pypi.io using the upload hostname and legacy path. 
v22.0.3#
03 Jun 2016
- #589: Releases are now uploaded to pypi.io (Warehouse) even when releases are made on Twine via Travis. 
v22.0.2#
03 Jun 2016
- #589: Releases are now uploaded to pypi.io (Warehouse). 
v22.0.1#
03 Jun 2016
- #190: On Python 2, if unicode is passed for packages to - build_pycommand, it will be handled just as with text on Python 3.
v22.0.0#
01 Jun 2016
Intended to be v21.3.0, but jaraco accidentally released as a major bump.
v21.2.2#
29 May 2016
- Minor fixes to changelog and docs. 
v21.2.1#
22 May 2016
- #261: Exclude directories when resolving globs in package_data. 
v21.2.0#
21 May 2016
- #539: In the easy_install get_site_dirs, honor all paths found in - site.getsitepackages.
v21.1.0#
18 May 2016
- #572: In build_ext, now always import - _CONFIG_VARSfrom- distutilsrather than from- sysconfigto allow- distutils.sysconfig.customize_compilerconfigure the OS X compiler for- -dynamiclib.
v21.0.0#
02 May 2016
- Removed ez_setup.py from Setuptools sdist. The bootstrap script will be maintained in its own branch and should be generally be retrieved from its canonical location at https://bootstrap.pypa.io/ez_setup.py. 
v20.10.0#
25 Apr 2016
- #553: egg_info section is now generated in a deterministic order, matching the order generated by earlier versions of Python. Except on Python 2.6, order is preserved when existing settings are present. 
- #556: Update to Packaging 16.7, restoring support for deprecated - python_implmentationmarker.
- #555: Upload command now prompts for a password when uploading to PyPI (or other repository) if no password is present in .pypirc or in the keyring. 
v20.9.0#
16 Apr 2016
v20.8.1#
15 Apr 2016
- Issue #544: Fix issue with extra environment marker processing in WorkingSet due to refactor in v20.7.0. 
v20.8.0#
15 Apr 2016
- Issue #543: Re-release so that latest release doesn’t cause déjà vu with distribute and setuptools 0.7 in older environments. 
v20.7.0#
10 Apr 2016
- Refactored extra environment marker processing in WorkingSet. 
- Issue #533: Fixed intermittent test failures. 
- Issue #536: In msvc9_support, trap additional exceptions that might occur when importing - distutils.msvc9compilerin mingw environments.
- Issue #537: Provide better context when package metadata fails to decode in UTF-8. 
v20.6.8#
09 May 2016
- Issue #523: Restored support for environment markers, now honoring ‘extra’ environment markers. 
v20.6.7#
31 Mar 2016
- Issue #523: Disabled support for environment markers introduced in v20.5. 
v20.6.6#
30 Mar 2016
- Issue #503: Restore support for PEP 345 environment markers by updating to Packaging 16.6. 
v20.6.0#
29 Mar 2016
- New release process that relies on bumpversion and Travis CI for continuous deployment. 
- Project versioning semantics now follow semver precisely. The ‘v’ prefix on version numbers now also allows version numbers to be referenced in the changelog, e.g. http://setuptools.pypa.io/en/latest/history.html#v20-6-0. 
20.5#
29 Mar 2016
- BB Pull Request #185, #470: Add support for environment markers in requirements in install_requires, setup_requires, tests_require as well as adding a test for the existing extra_requires machinery. 
20.4#
29 Mar 2016
- Issue #422: Moved hosting to Github from Bitbucket. Issues have been migrated, though all issues and comments are attributed to bb-migration. So if you have a particular issue or issues to which you’ve been subscribed, you will want to “watch” the equivalent issue in Github. The Bitbucket project will be retained for the indefinite future, but Github now hosts the canonical project repository. 
20.3.1#
18 Mar 2016
- Issue #519: Remove import hook when reloading the - pkg_resourcesmodule.
- BB Pull Request #184: Update documentation in - pkg_resourcesaround new- Requirementimplementation.
20.3#
15 Mar 2016
- BB Pull Request #179: - pkg_resources.Requirementobjects are now a subclass of- packaging.requirements.Requirement, allowing any environment markers and url (if any) to be affiliated with the requirement
- BB Pull Request #179: Restore use of RequirementParseError exception unintentionally dropped in 20.2. 
20.2.2#
27 Feb 2016
- Issue #502: Correct regression in parsing of multiple version specifiers separated by commas and spaces. 
20.2.1#
24 Feb 2016
- Issue #499: Restore compatibility for legacy versions by bumping to packaging 16.4. 
20.2#
19 Feb 2016
- Changelog now includes release dates and links to PEPs. 
- BB Pull Request #173: Replace dual PEP 345 _markerlib implementation and PEP 426 implementation of environment marker support from packaging 16.1 and PEP 508. Fixes Issue #122. See also BB Pull Request #175, BB Pull Request #168, and BB Pull Request #164. Additionally: 
20.1.1#
12 Feb 2016
- Update - upload_docscommand to also honor keyring for password resolution.
20.1#
11 Feb 2016
- Added support for using passwords from keyring in the upload command. See the upload docs for details. 
20.0#
07 Feb 2016
- Issue #118: Once again omit the package metadata (egg-info) from the list of outputs in - --record. This version of setuptools can no longer be used to upgrade pip earlier than 6.0.
19.7#
03 Feb 2016
- Off-project PR: 0dcee79 and f9bd9b9 For FreeBSD, also honor root certificates from ca_root_nss. 
19.6.2#
31 Jan 2016
- Issue #491: Correct regression incurred in 19.4 where a double-namespace package installed using pip would cause a TypeError. 
19.6.1#
29 Jan 2016
- Restore compatibility for PyPy 3 compatibility lost in 19.4.1 addressing Issue #487. 
- setuptools.launchshim now loads scripts in a new namespace, avoiding getting relative imports from the setuptools package on Python 2.
19.6#
24 Jan 2016
- Added a new entry script - setuptools.launch, implementing the shim found in- pip.util.setuptools_build. Use this command to launch distutils-only packages under setuptools in the same way that pip does, causing the setuptools monkeypatching of distutils to be invoked prior to invoking a script. Useful for debugging or otherwise installing a distutils-only package under setuptools when pip isn’t available or otherwise does not expose the desired functionality. For example:- $ python -m setuptools.launch setup.py develop 
- Issue #488: Fix dual manifestation of Extension class in extension packages installed as dependencies when Cython is present. 
19.5#
23 Jan 2016
- Issue #486: Correct TypeError when getfilesystemencoding returns None. 
- Issue #139: Clarified the license as MIT. 
- BB Pull Request #169: Removed special handling of command spec in scripts for Jython. 
19.4.1#
23 Jan 2016
- Issue #487: Use direct invocation of - importlib.machineryin- pkg_resourcesto avoid missing detection on relevant platforms.
19.4#
16 Jan 2016
- Issue #341: Correct error in path handling of package data files in - build_pycommand when package is empty.
- Distribute #323, Issue #141, Issue #207, and BB Pull Request #167: Another implementation of - pkg_resources.WorkingSetand- pkg_resources.Distributionthat supports replacing an extant package with a new one, allowing for setup_requires dependencies to supersede installed packages for the session.
19.3#
06 Jan 2016
- Issue #229: Implement new technique for readily incorporating dependencies conditionally from vendored copies or primary locations. Adds a new dependency on six. 
19.2#
25 Dec 2015
- BB Pull Request #163: Add get_command_list method to Distribution. 
- BB Pull Request #162: Add missing whitespace to multiline string literals. 
19.1.1#
16 Dec 2015
- Issue #476: Cast version to string (using default encoding) to avoid creating Unicode types on Python 2 clients. 
- Issue #477: In Powershell downloader, use explicit rendering of strings, rather than rely on - repr, which can be incorrect (especially on Python 2).
19.1#
16 Dec 2015
- Issue #215: The bootstrap script - ez_setup.pynow automatically detects the latest version of setuptools (using PyPI JSON API) rather than hard-coding a particular value.
- Issue #475: Fix incorrect usage in _translate_metadata2. 
19.0#
15 Dec 2015
- Issue #442: Use RawConfigParser for parsing .pypirc file. Interpolated values are no longer honored in .pypirc files. 
18.8.1#
13 Dec 2015
- Issue #440: Prevent infinite recursion when a SandboxViolation or other UnpickleableException occurs in a sandbox context with setuptools hidden. Fixes regression introduced in Setuptools 12.0. 
18.8#
11 Dec 2015
- Deprecated - egg_info.get_pkg_info_revision.
- Issue #471: Don’t rely on repr for an HTML attribute value in package_index. 
- Issue #419: Avoid errors in FileMetadata when the metadata directory is broken. 
- Issue #472: Remove deprecated use of ‘U’ in mode parameter when opening files. 
18.7.1#
01 Dec 2015
- Issue #469: Refactored logic for Issue #419 fix to re-use metadata loading from Provider. 
18.7#
28 Nov 2015
- Update dependency on certify. 
- BB Pull Request #160: Improve detection of gui script in - easy_install._adjust_header.
- Made - test.test_argsa non-data property; alternate fix for the issue reported in BB Pull Request #155.
- Issue #453: In - ez_setupbootstrap module, unload all- pkg_resourcesmodules following download.
- BB Pull Request #158: Honor PEP-488 when excluding files for namespace packages. 
- Issue #419 and BB Pull Request #144: Add experimental support for reading the version info from distutils-installed metadata rather than using the version in the filename. 
18.6.1#
24 Nov 2015
- Issue #464: Correct regression in invocation of superclass on old-style class on Python 2. 
18.6#
24 Nov 2015
- Issue #439: When installing entry_point scripts under development, omit the version number of the package, allowing any version of the package to be used. 
18.5#
01 Nov 2015
- In preparation for dropping support for Python 3.2, a warning is now logged when pkg_resources is imported on Python 3.2 or earlier Python 3 versions. 
- Add support for python_platform_implementation environment marker. 
18.4#
10 Oct 2015
- Issue #446: Test command now always invokes unittest, even if no test suite is supplied. 
18.3.2#
19 Sep 2015
- Correct another regression in setuptools.findall where the fix for Python #12885 was lost. 
18.3.1#
07 Sep 2015
- Issue #425: Correct regression in setuptools.findall. 
18.3#
06 Sep 2015
- BB Pull Request #135: Setuptools now allows disabling of the manipulation of the sys.path during the processing of the easy-install.pth file. To do so, set the environment variable - SETUPTOOLS_SYS_PATH_TECHNIQUEto anything but “rewrite” (consider “raw”). During any install operation with manipulation disabled, setuptools packages will be appended to sys.path naturally.- Future versions may change the default behavior to disable manipulation. If so, the default behavior can be retained by setting the variable to “rewrite”. 
- Issue #257: - easy_install --versionnow shows more detail about the installation location and Python version.
- Refactor setuptools.findall in preparation for re-submission back to distutils. 
18.2#
19 Aug 2015
- Issue #412: More efficient directory search in - find_packages.
18.1#
02 Aug 2015
- Upgrade to vendored packaging 15.3. 
18.0.1#
24 Jun 2015
- Issue #401: Fix failure in test suite. 
18.0#
13 Jun 2015
- Dropped support for builds with Pyrex. Only Cython is supported. 
- Issue #288: Detect Cython later in the build process, after - setup_requiresdependencies are resolved. Projects backed by Cython can now be readily built with a- setup_requiresdependency. For example:- ext = setuptools.Extension('mylib', ['src/CythonStuff.pyx', 'src/CStuff.c']) setuptools.setup( ... ext_modules=[ext], setup_requires=['cython'], ) - For compatibility with older versions of setuptools, packagers should still include - src/CythonMod.cin the source distributions or require that Cython be present before building source distributions. However, for systems with this build of setuptools, Cython will be downloaded on demand.
- Issue #396: Fixed test failure on OS X. 
- BB Pull Request #136: Remove excessive quoting from shebang headers for Jython. 
17.1.1#
08 Jun 2015
- Backed out unintended changes to pkg_resources, restoring removal of deprecated imp module (ref). 
17.1#
07 Jun 2015
- Issue #380: Add support for range operators on environment marker evaluation. 
17.0#
28 May 2015
- Issue #378: Do not use internal importlib._bootstrap module. 
- Issue #390: Disallow console scripts with path separators in the name. Removes unintended functionality and brings behavior into parity with pip. 
16.0#
18 May 2015
- BB Pull Request #130: Better error messages for errors in parsed requirements. 
- BB Pull Request #133: Removed - setuptools.testsfrom the installed packages.
- BB Pull Request #129: Address deprecation warning due to usage of imp module. 
15.2#
26 Apr 2015
- Issue #373: Provisionally expose - pkg_resources._initialize_master_working_set, allowing for imperative re-initialization of the master working set.
15.1#
15 Apr 2015
- Updated to Packaging 15.1 to address Packaging #28. 
- Fix - setuptools.sandbox._execfile()with Python 3.1.
15.0#
03 Apr 2015
- BB Pull Request #126: DistributionNotFound message now lists the package or packages that required it. E.g.: - pkg_resources.DistributionNotFound: The 'colorama>=0.3.1' distribution was not found and is required by smlib.log. - Note that zc.buildout once dependended on the string rendering of this message to determine the package that was not found. This expectation has since been changed, but older versions of buildout may experience problems. See Buildout #242 for details. 
14.3.1#
20 Mar 2015
- Issue #307: Removed PEP-440 warning during parsing of versions in - pkg_resources.Distribution.
- Issue #364: Replace deprecated usage with recommended usage of - EntryPoint.load.
14.3#
15 Mar 2015
- Issue #254: When creating temporary egg cache on Unix, use mode 755 for creating the directory to avoid the subsequent warning if the directory is group writable. 
14.2#
15 Mar 2015
- Issue #137: Update - Distribution.hashcmpso that Distributions with None for pyversion or platform can be compared against Distributions defining those attributes.
14.1.1#
14 Mar 2015
- Issue #360: Removed undesirable behavior from test runs, preventing write tests and installation to system site packages. 
14.1#
14 Mar 2015
- BB Pull Request #125: Add - __ne__to Requirement class.
- Various refactoring of easy_install. 
14.0#
06 Mar 2015
- Bootstrap script now accepts - --to-dirto customize save directory or allow for re-use of existing repository of setuptools versions. See BB Pull Request #112 for background.
- Issue #285: - easy_installno longer will default to installing packages to the “user site packages” directory if it is itself installed there. Instead, the user must pass- --userin all cases to install packages to the user site packages. This behavior now matches that of “pip install”. To configure an environment to always install to the user site packages, consider using the “install-dir” and “scripts-dir” parameters to easy_install through an appropriate distutils config file.
13.0.2#
06 Mar 2015
- Issue #359: Include pytest.ini in the sdist so invocation of py.test on the sdist honors the pytest configuration. 
13.0.1#
05 Mar 2015
Re-release of 13.0. Intermittent connectivity issues caused the release process to fail and PyPI uploads no longer accept files for 13.0.
13.0#
05 Mar 2015
- Issue #356: Back out BB Pull Request #119 as it requires Setuptools 10 or later as the source during an upgrade. 
- Removed build_py class from setup.py. According to 892f439d216e, this functionality was added to support upgrades from old Distribute versions, 0.6.5 and 0.6.6. 
12.4#
04 Mar 2015
- BB Pull Request #119: Restore writing of - setup_requiresto metadata (previously added in 8.4 and removed in 9.0).
12.3#
26 Feb 2015
- Documentation is now linked using the rst.linker package. 
- Fix - setuptools.command.easy_install.extract_wininst_cfg()with Python 2.6 and 2.7.
- Issue #354. Added documentation on building setuptools documentation. 
12.2#
16 Feb 2015
- Issue #345: Unload all modules under pkg_resources during - ez_setup.use_setuptools().
- Issue #336: Removed deprecation from - ez_setup.use_setuptools, as it is clearly still used by buildout’s bootstrap.- ez_setupremains deprecated for use by individual packages.
- Simplified implementation of - ez_setup.use_setuptools.
12.1#
10 Feb 2015
- BB Pull Request #118: Soften warning for non-normalized versions in Distribution. 
12.0.5#
26 Jan 2015
- Issue #339: Correct Attribute reference in - cant_write_to_target.
- Issue #336: Deprecated - ez_setup.use_setuptools.
12.0.4#
20 Jan 2015
- Issue #335: Fix script header generation on Windows. 
12.0.3#
18 Jan 2015
- Fixed incorrect class attribute in - install_scripts. Tests would be nice.
12.0.2#
18 Jan 2015
- Issue #331: Fixed - install_scriptscommand on Windows systems corrupting the header.
12.0.1#
16 Jan 2015
- Restore - setuptools.command.easy_install.sys_executablefor pbr compatibility. For the future, tools should construct a CommandSpec explicitly.
12.0#
16 Jan 2015
- Issue #188: Setuptools now support multiple entities in the value for - build.executable, such that an executable of “/usr/bin/env my-python” may be specified. This means that systems with a specified executable whose name has spaces in the path must be updated to escape or quote that value.
- Deprecated - easy_install.ScriptWriter.get_writer, replaced by- .best()with slightly different semantics (no force_windows flag).
11.3.1#
06 Jan 2015
- Issue #327: Formalize and restore support for any printable character in an entry point name. 
11.3#
05 Jan 2015
- Expose - EntryPoint.resolvein place of EntryPoint._load, implementing the simple, non-requiring load. Deprecated all uses of- EntryPoint._loadexcept for calling with no parameters, which is just a shortcut for- ep.require(); ep.resolve();.- Apps currently invoking - ep.load(require=False)should instead do the following if wanting to avoid the deprecating warning:- getattr(ep, "resolve", lambda: ep.load(require=False))() 
11.2#
05 Jan 2015
- Pip #2326: Report deprecation warning at stacklevel 2 for easier diagnosis. 
11.1#
04 Jan 2015
- Issue #281: Since Setuptools 6.1 (Issue #268), a ValueError would be raised in certain cases where VersionConflict was raised with two arguments, which occurred in - pkg_resources.WorkingSet.find. This release adds support for indicating the dependent packages while maintaining support for a VersionConflict when no dependent package context is known. New unit tests now capture the expected interface.
11.0#
02 Jan 2015
- Interop #3: Upgrade to Packaging 15.0; updates to PEP 440 so that >1.7 does not exclude 1.7.1 but does exclude 1.7.0 and 1.7.0.post1. 
10.2.1#
02 Jan 2015
- Issue #323: Fix regression in entry point name parsing. 
10.2#
02 Jan 2015
- Deprecated use of EntryPoint.load(require=False). Passing a boolean to a function to select behavior is an anti-pattern. Instead use - Entrypoint._load().
- Substantial refactoring of all unit tests. Tests are now much leaner and re-use a lot of fixtures and contexts for better clarity of purpose. 
10.1#
31 Dec 2014
- Issue #320: Added a compatibility implementation of - sdist._default_revctrlso that systems relying on that interface do not fail (namely, Ubuntu 12.04 and similar Debian releases).
10.0.1#
30 Dec 2014
- Issue #319: Fixed issue installing pure distutils packages. 
10.0#
30 Dec 2014
- Issue #313: Removed built-in support for subversion. Projects wishing to retain support for subversion will need to use a third party library. The extant implementation is being ported to setuptools_svn. 
- Issue #315: Updated setuptools to hide its own loaded modules during installation of another package. This change will enable setuptools to upgrade (or downgrade) itself even when its own metadata and implementation change. 
9.1#
29 Dec 2014
- Prefer vendored packaging library as recommended. 
9.0.1#
29 Dec 2014
- Issue #312: Restored presence of pkg_resources API tests (doctest) to sdist. 
9.0#
28 Dec 2014
- Issue #314: Disabled support for - setup_requiresmetadata to avoid issue where Setuptools was unable to upgrade over earlier versions.
8.4#
26 Dec 2014
- BB Pull Request #106: Now write - setup_requiresmetadata.
8.3#
24 Dec 2014
- Issue #311: Decoupled pkg_resources from setuptools once again. - pkg_resourcesis now a package instead of a module.
8.2.1#
18 Dec 2014
- Issue #306: Suppress warnings about Version format except in select scenarios (such as installation). 
8.2#
18 Dec 2014
- BB Pull Request #85: Search egg-base when adding egg-info to manifest. 
8.1#
18 Dec 2014
- Upgrade - packagingto 14.5, giving preference to “rc” as designator for release candidates over “c”.
- PEP-440 warnings are now raised as their own class, - pkg_resources.PEP440Warning, instead of RuntimeWarning.
- Disabled warnings on empty versions. 
8.0.4#
15 Dec 2014
- Upgrade - packagingto 14.4, fixing an error where there is a different result for if 2.0.5 is contained within >2.0dev and >2.0.dev even though normalization rules should have made them equal.
- Issue #296: Add warning when a version is parsed as legacy. This warning will make it easier for developers to recognize deprecated version numbers. 
8.0.3#
15 Dec 2014
- Issue #296: Restored support for - __hash__on parse_version results.
8.0.2#
14 Dec 2014
- Issue #296: Restored support for - __getitem__and sort operations on parse_version result.
8.0.1#
13 Dec 2014
- Issue #296: Restore support for iteration over parse_version result, but deprecated that usage with a warning. Fixes failure with buildout. 
8.0#
13 Dec 2014
- Implement PEP 440 within pkg_resources and setuptools. This change deprecates some version numbers such that they will no longer be installable without using the - ===escape hatch. See the changes to test_resources for specific examples of version numbers and specifiers that are no longer supported. Setuptools now “vendors” the packaging library.
7.0#
19 Oct 2014
- Issue #80, Issue #209: Eggs that are downloaded for - setup_requires,- test_requires, etc. are now placed in a- ./.eggsdirectory instead of directly in the current directory. This choice of location means the files can be readily managed (removed, ignored). Additionally, later phases or invocations of setuptools will not detect the package as already installed and ignore it for permanent install (See #209).- This change is indicated as backward-incompatible as installations that depend on the installation in the current directory will need to account for the new location. Systems that ignore - *.eggwill probably need to be adapted to ignore- .eggs. The files will need to be manually moved or will be retrieved again. Most use cases will require no attention.
6.1#
11 Oct 2014
- Issue #268: When resolving package versions, a VersionConflict now reports which package previously required the conflicting version. 
6.0.2#
29 Sep 2014
- Issue #262: Fixed regression in pip install due to egg-info directories being omitted. Re-opens Issue #118. 
6.0.1#
27 Sep 2014
- Issue #259: Fixed regression with namespace package handling on - single version, externally managedinstalls.
6.0#
27 Sep 2014
- Issue #100: When building a distribution, Setuptools will no longer match default files using platform-dependent case sensitivity, but rather will only match the files if their case matches exactly. As a result, on Windows and other case-insensitive file systems, files with names such as ‘readme.txt’ or ‘README.TXT’ will be omitted from the distribution and a warning will be issued indicating that ‘README.txt’ was not found. Other filenames affected are: - README.rst 
- README 
- setup.cfg 
- setup.py (or the script name) 
- test/test*.py 
 - Any users producing distributions with filenames that match those above case-insensitively, but not case-sensitively, should rename those files in their repository for better portability. 
- BB Pull Request #72: When using - single_version_externally_managed, the exclusion list now includes Python 3.2- __pycache__entries.
- BB Pull Request #76 and BB Pull Request #78: lines in top_level.txt are now ordered deterministically. 
- Issue #118: The egg-info directory is now no longer included in the list of outputs. 
- Issue #258: Setuptools now patches distutils msvc9compiler to recognize the specially-packaged compiler package for easy extension module support on Python 2.6, 2.7, and 3.2. 
5.8#
18 Sep 2014
- Issue #237: - pkg_resourcesnow uses explicit detection of Python 2 vs. Python 3, supporting environments where builtins have been patched to make Python 3 look more like Python 2.
5.7#
15 Aug 2014
- Issue #240: Based on real-world performance measures against 5.4, zip manifests are now cached in all circumstances. The - PKG_RESOURCES_CACHE_ZIP_MANIFESTSenvironment variable is no longer relevant. The observed “memory increase” referenced in the 5.4 release notes and detailed in Issue #154 was likely not an increase over the status quo, but rather only an increase over not storing the zip info at all.
5.6#
14 Aug 2014
- Issue #242: Use absolute imports in svn_utils to avoid issues if the installing package adds an xml module to the path. 
5.5.1#
10 Aug 2014
- Issue #239: Fix typo in 5.5 such that fix did not take. 
5.5#
10 Aug 2014
- Issue #239: Setuptools now includes the setup_requires directive on Distribution objects and validates the syntax just like install_requires and tests_require directives. 
5.4.2#
01 Aug 2014
- Issue #236: Corrected regression in execfile implementation for Python 2.6. 
5.4.1#
06 Jul 2014
- Python #7776: (ssl_support) Correct usage of host for validation when tunneling for HTTPS. 
5.4#
05 Jul 2014
- Issue #154: - pkg_resourceswill now cache the zip manifests rather than re-processing the same file from disk multiple times, but only if the environment variable- PKG_RESOURCES_CACHE_ZIP_MANIFESTSis set. Clients that package many modules in the same zip file will see some improvement in startup time by enabling this feature. This feature is not enabled by default because it causes a substantial increase in memory usage.
5.3#
28 Jun 2014
- Issue #185: Make svn tagging work on the new style SVN metadata. Thanks cazabon! 
- Prune revision control directories (e.g .svn) from base path as well as sub-directories. 
5.2#
22 Jun 2014
- Added a Developer Guide to the official documentation. 
- Some code refactoring and cleanup was done with no intended behavioral changes. 
- During install_egg_info, the generated lines for namespace package .pth files are now processed even during a dry run. 
5.1#
15 Jun 2014
- Issue #202: Implemented more robust cache invalidation for the ZipImporter, building on the work in Issue #168. Special thanks to Jurko Gospodnetic and PJE. 
5.0.2#
15 Jun 2014
- Issue #220: Restored script templates. 
5.0.1#
14 Jun 2014
- Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. 
5.0#
14 Jun 2014
- Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x. 
- Incidentally, script templates were updated not to include the triple-quote escaping. 
3.7.1 and 3.8.1 and 4.0.1#
- Issue #213: Use legacy StringIO behavior for compatibility under pbr. 
- Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed from the available versions to install. 
4.0#
01 Jun 2014
- Issue #210: - setup.py developnow copies scripts in binary mode rather than text mode, matching the behavior of the- installcommand.
3.8#
01 Jun 2014
- Extend Issue #197 workaround to include all Python 3 versions prior to 3.2.2. 
3.7#
28 May 2014
- Issue #193: Improved handling of Unicode filenames when building manifests. 
3.6#
07 May 2014
- Issue #203: Honor proxy settings for Powershell downloader in the bootstrap routine. 
3.5.2#
07 May 2014
- Issue #168: More robust handling of replaced zip files and stale caches. Fixes ZipImportError complaining about a ‘bad local header’. 
3.5.1#
04 May 2014
- Issue #199: Restored - install._installfor compatibility with earlier NumPy versions.
3.5#
03 May 2014
- Issue #195: Follow symbolic links in find_packages (restoring behavior broken in 3.4). 
- Issue #197: On Python 3.1, PKG-INFO is now saved in a UTF-8 encoding instead of - sys.getpreferredencodingto match the behavior on Python 2.6-3.4.
- Issue #192: Preferred bootstrap location is now https://bootstrap.pypa.io/ez_setup.py (mirrored from former location). 
3.4.4#
11 Apr 2014
- Issue #184: Correct failure where find_package over-matched packages when directory traversal isn’t short-circuited. 
3.4.3#
07 Apr 2014
- Issue #183: Really fix test command with Python 3.1. 
3.4.2#
06 Apr 2014
- Issue #183: Fix additional regression in test command on Python 3.1. 
3.4.1#
30 Mar 2014
- Issue #180: Fix regression in test command not caught by py.test-run tests. 
3.4#
30 Mar 2014
- Issue #176: Add parameter to the test command to support a custom test runner: –test-runner or -r. 
- Issue #177: Now assume most common invocation to install command on platforms/environments without stack support (issuing a warning). Setuptools now installs naturally on IronPython. Behavior on CPython should be unchanged. 
3.3#
16 Mar 2014
- Add - includeparameter to- setuptools.find_packages().
3.2#
14 Mar 2014
- BB Pull Request #39: Add support for C++ targets from Cython - .pyxfiles.
- Issue #162: Update dependency on certifi to 1.0.1. 
- Issue #164: Update dependency on wincertstore to 0.2. 
3.1#
08 Mar 2014
- Issue #161: Restore Features functionality to allow backward compatibility (for Features) until the uses of that functionality is sufficiently removed. 
3.0.2#
06 Mar 2014
- Correct typo in previous bugfix. 
3.0.1#
06 Mar 2014
- Issue #157: Restore support for Python 2.6 in bootstrap script where - zipfile.ZipFiledoes not yet have support for context managers.
3.0#
04 Mar 2014
- Issue #125: Prevent Subversion support from creating a ~/.subversion directory just for checking the presence of a Subversion repository. 
- Issue #12: Namespace packages are now imported lazily. That is, the mere declaration of a namespace package in an egg on - sys.pathno longer causes it to be imported when- pkg_resourcesis imported. Note that this change means that all of a namespace package’s- __init__.pyfiles must include a- declare_namespace()call in order to ensure that they will be handled properly at runtime. In 2.x it was possible to get away without including the declaration, but only at the cost of forcing namespace packages to be imported early, which 3.0 no longer does.
- Issue #148: When building (bdist_egg), setuptools no longer adds - __init__.pyfiles to namespace packages. Any packages that rely on this behavior will need to create- __init__.pyfiles and include the- declare_namespace().
- Issue #7: Setuptools itself is now distributed as a zip archive in addition to tar archive. ez_setup.py now uses zip archive. This approach avoids the potential security vulnerabilities presented by use of tar archives in ez_setup.py. It also leverages the security features added to ZipFile.extract in Python 2.7.4. 
- Issue #65: Removed deprecated Features functionality. 
- BB Pull Request #28: Remove backport of - _bytecode_filenameswhich is available in Python 2.6 and later, but also has better compatibility with Python 3 environments.
- Issue #156: Fix spelling of __PYVENV_LAUNCHER__ variable. 
2.2#
07 Feb 2014
- Issue #141: Restored fix for allowing setup_requires dependencies to override installed dependencies during setup. 
- Issue #128: Fixed issue where only the first dependency link was honored in a distribution where multiple dependency links were supplied. 
2.1.2#
05 Feb 2014
- Issue #144: Read long_description using codecs module to avoid errors installing on systems where LANG=C. 
2.1.1#
05 Feb 2014
- Issue #139: Fix regression in re_finder for CVS repos (and maybe Git repos as well). 
2.1#
07 Jan 2014
- Issue #129: Suppress inspection of - *.whlfiles when searching for files in a zip-imported file.
- Issue #131: Fix RuntimeError when constructing an egg fetcher. 
2.0.2#
29 Dec 2013
- Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. 
- Fix NameError in - sdist:re_finder.
2.0.1#
15 Dec 2013
- Issue #124: Fixed error in list detection in upload_docs. 
2.0#
07 Dec 2013
- Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. 
- Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. 
- Removed - setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use- site.ENABLE_USER_SITEinstead.
- Removed - pkg_resources.ImpWrapper. Clients that expected this class should use- pkgutil.ImpImporterinstead.
1.4.2#
01 Dec 2013
- Issue #116: Correct TypeError when reading a local package index on Python 3. 
1.4.1#
23 Nov 2013
- Issue #114: Use - sys.getfilesystemencodingfor decoding config in- bdist_wininstdistributions.
- Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding: - 1. Try ``getpreferredencoding`` 2. If that returns US_ASCII or None, try the encoding from ``getdefaultlocale``. If that encoding was a "fallback" because Python could not figure it out from the environment or OS, encoding remains unresolved. 3. If the encoding is resolved, then make sure Python actually implements the encoding. 4. On the event of an error or unknown codec, revert to fallbacks (UTF-8 on Darwin, ASCII on everything else). 5. On the encoding is 'mac-roman' on Darwin, use UTF-8 as 'mac-roman' was a bug on older Python releases. On a side note, it would seem that the encoding only matters for when SVN does not yet support ``--xml`` and when getting repository and svn version numbers. The ``--xml`` technique should yield UTF-8 according to some messages on the SVN mailing lists. So if the version numbers are always 7-bit ASCII clean, it may be best to only support the file parsing methods for legacy SVN releases and support for SVN without the subprocess command would simple go away as support for the older SVNs does. 
1.4#
17 Nov 2013
- Issue #27: - easy_installwill now use credentials from .pypirc if present for connecting to the package index.
- BB Pull Request #21: Omit unwanted newlines in - package_index._encode_authwhen the username/password pair length indicates wrapping.
1.3.2#
09 Nov 2013
- Issue #99: Fix filename encoding issues in SVN support. 
1.3.1#
07 Nov 2013
- Remove exuberant warning in SVN support when SVN is not used. 
1.3#
03 Nov 2013
- Address security vulnerability in SSL match_hostname check as reported in Python #17997. 
- Prefer backports.ssl_match_hostname for backport implementation if present. 
- Correct NameError in - ssl_supportmodule (- socket.error).
1.2#
02 Nov 2013
- Issue #26: Add support for SVN 1.7. Special thanks to Philip Thiem for the contribution. 
- Issue #93: Wheels are now distributed with every release. Note that as reported in Issue #108, as of Pip 1.4, scripts aren’t installed properly from wheels. Therefore, if using Pip to install setuptools from a wheel, the - easy_installcommand will not be available.
- Setuptools “natural” launcher support, introduced in 1.0, is now officially supported. 
1.1.7#
11 Apr 2013
- Fixed behavior of NameError handling in ‘script template (dev).py’ (script launcher for ‘develop’ installs). 
- ez_setup.pynow ensures partial downloads are cleaned up following a failed download.
- Distribute #363 and Issue #55: Skip an sdist test that fails on locales other than UTF-8. 
1.1.6#
18 Sep 2013
- Distribute #349: - sandbox.execfilenow opens the target file in binary mode, thus honoring a BOM in the file when compiled.
1.1.5#
12 Sep 2013
- Issue #69: Second attempt at fix (logic was reversed). 
1.1.4#
07 Sep 2013
- Issue #77: Fix error in upload command (Python 2.4). 
1.1.3#
06 Sep 2013
- Fix NameError in previous patch. 
1.1.2#
06 Sep 2013
- Issue #69: Correct issue where 404 errors are returned for URLs with fragments in them (such as #egg=). 
1.1.1#
03 Sep 2013
1.1#
26 Aug 2013
- Issue #71 (Distribute #333): EasyInstall now puts less emphasis on the condition when a host is blocked via - --allow-hosts.
- Issue #72: Restored Python 2.4 compatibility in - ez_setup.py.
1.0#
17 Aug 2013
- Issue #60: On Windows, Setuptools supports deferring to another launcher, such as Vinay Sajip’s pylauncher (included with Python 3.3) to launch console and GUI scripts and not install its own launcher executables. This experimental functionality is currently only enabled if the - SETUPTOOLS_LAUNCHERenvironment variable is set to “natural”. In the future, this behavior may become default, but only after it has matured and seen substantial adoption. The- SETUPTOOLS_LAUNCHERalso accepts “executable” to force the default behavior of creating launcher executables.
- Issue #63: Bootstrap script (ez_setup.py) now prefers Powershell, curl, or wget for retrieving the Setuptools tarball for improved security of the install. The script will still fall back to a simple - urlopenon platforms that do not have these tools.
- Issue #65: Deprecated the - Featuresfunctionality.
- Issue #52: In - VerifyingHTTPSConn, handle a tunnelled (proxied) connection.
Backward-Incompatible Changes#
This release includes a couple of backward-incompatible changes, but most if not all users will find 1.0 a drop-in replacement for 0.9.
- Issue #50: Normalized API of environment marker support. Specifically, removed line number and filename from SyntaxErrors when returned from - pkg_resources.invalid_marker. Any clients depending on the specific string representation of exceptions returned by that function may need to be updated to account for this change.
- Issue #50: SyntaxErrors generated by - pkg_resources.invalid_markerare normalized for cross-implementation consistency.
- Removed - --ignore-conflicts-at-my-riskand- --delete-conflictingoptions to easy_install. These options have been deprecated since 0.6a11.
0.9.8#
25 Jul 2013
- Issue #53: Fix NameErrors in - _vcs_split_rev_from_url.
0.9.7#
22 Jul 2013
0.9.6#
17 Jul 2013
- Issue #44: Test failure on Python 2.4 when MD5 hash doesn’t have a - .nameattribute.
0.9.5#
15 Jul 2013
- Python #17980: Fix security vulnerability in SSL certificate validation. 
0.9.4#
15 Jul 2013
- Issue #43: Fix issue (introduced in 0.9.1) with version resolution when upgrading over other releases of Setuptools. 
0.9.3#
15 Jul 2013
- Issue #42: Fix new - AttributeErrorintroduced in last fix.
0.9.2#
15 Jul 2013
- Issue #42: Fix regression where blank checksums would trigger an - AttributeError.
0.9.1#
13 Jul 2013
- Distribute #386: Allow other positional and keyword arguments to os.open. 
- Corrected dependency on certifi mis-referenced in 0.9. 
0.9#
13 Jul 2013
- package_indexnow validates hashes other than MD5 in download links.
0.8#
05 Jul 2013
- Code base now runs on Python 2.4 - Python 3.3 without Python 2to3 conversion. 
0.7.8#
04 Jul 2013
- Distribute #375: Yet another fix for yet another regression. 
0.7.7#
02 Jul 2013
- Distribute #375: Repair AttributeError created in last release (redo). 
- Issue #30: Added test for get_cache_path. 
0.7.6#
02 Jul 2013
- Distribute #375: Repair AttributeError created in last release. 
0.7.5#
29 Jun 2013
- Issue #21: Restore Python 2.4 compatibility in - test_easy_install.
- Distribute #375: Merged additional warning from Distribute 0.6.46. 
- Now honor the environment variable - SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPTin addition to the now deprecated- DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT.
0.7.4#
19 Jun 2013
- Issue #20: Fix comparison of parsed SVN version on Python 3. 
0.7.3#
18 Jun 2013
- Issue #1: Disable installation of Windows-specific files on non-Windows systems. 
- Use new sysconfig module with Python 2.7 or >=3.2. 
0.7.2#
09 Jun 2013
0.7.1#
03 Jun 2013
- Fix NameError (Issue #3) again - broken in bad merge. 
0.7#
02 Jun 2013
- Merged Setuptools and Distribute. See docs/merge.txt for details. 
Added several features that were slated for setuptools 0.6c12:
- Index URL now defaults to HTTPS. 
- Added experimental environment marker support. Now clients may designate a PEP-426 environment marker for “extra” dependencies. Setuptools uses this feature in - setup.pyfor optional SSL and certificate validation support on older platforms. Based on Distutils-SIG discussions, the syntax is somewhat tentative. There should probably be a PEP with a firmer spec before the feature should be considered suitable for use.
- Added support for SSL certificate validation when installing packages from an HTTPS service. 
0.7b4#
- Issue #3: Fixed NameError in SSL support. 
0.6.49#
04 Jul 2013
- Move warning check in - get_cache_pathto follow the directory creation to avoid errors when the cache path does not yet exist. Fixes the error reported in Distribute #375.
0.6.48#
02 Jul 2013
- Correct AttributeError in - ResourceManager.get_cache_pathintroduced in 0.6.46 (redo).
0.6.47#
02 Jul 2013
- Correct AttributeError in - ResourceManager.get_cache_pathintroduced in 0.6.46.
0.6.46#
29 Jun 2013
- Distribute #375: Issue a warning if the PYTHON_EGG_CACHE or otherwise customized egg cache location specifies a directory that’s group- or world-writable. 
0.6.45#
29 May 2013
- Distribute #379: - distribute_setup.pynow traps VersionConflict as well, restoring ability to upgrade from an older setuptools version.
0.6.44#
28 May 2013
- distribute_setup.pyhas been updated to allow Setuptools 0.7 to satisfy use_setuptools.
0.6.43#
24 May 2013
- Distribute #378: Restore support for Python 2.4 Syntax (regression in 0.6.42). 
0.6.42#
24 May 2013
- External links finder no longer yields duplicate links. 
- Distribute #337: Moved site.py to setuptools/site-patch.py (graft of very old patch from setuptools trunk which inspired PR #31). 
0.6.41#
24 May 2013
- Distribute #27: Use public api for loading resources from zip files rather than the private method - _zip_directory_cache.
- Added a new function - easy_install.get_win_launcherwhich may be used by third-party libraries such as buildout to get a suitable script launcher.
0.6.40#
14 May 2013
- Distribute #376: brought back cli.exe and gui.exe that were deleted in the previous release. 
0.6.39#
12 May 2013
- Add support for console launchers on ARM platforms. 
- Fix possible issue in GUI launchers where the subsystem was not supplied to the linker. 
- Launcher build script now refactored for robustness. 
- Distribute #375: Resources extracted from a zip egg to the file system now also check the contents of the file against the zip contents during each invocation of get_resource_filename. 
0.6.38#
05 May 2013
- Distribute #371: The launcher manifest file is now installed properly. 
0.6.37#
04 May 2013
- Distribute #143: Launcher scripts, including easy_install itself, are now accompanied by a manifest on 32-bit Windows environments to avoid the Installer Detection Technology and thus undesirable UAC elevation described in this Microsoft article. 
0.6.36#
05 Apr 2013
- BB Pull Request #35: In Buildout #64, it was reported that under Python 3, installation of distutils scripts could attempt to copy the - __pycache__directory as a file, causing an error, apparently only under Windows. Easy_install now skips all directories when processing metadata scripts.
0.6.35#
16 Feb 2013
Note this release is backward-incompatible with distribute 0.6.23-0.6.34 in how it parses version numbers.
- Distribute #278: Restored compatibility with distribute 0.6.22 and setuptools 0.6. Updated the documentation to match more closely with the version parsing as intended in setuptools 0.6. 
0.6.34#
30 Dec 2012
- Distribute #341: 0.6.33 fails to build under Python 2.4. 
0.6.33#
29 Dec 2012
- Fix 2 errors with Jython 2.5. 
- Fix 1 failure with Jython 2.5 and 2.7. 
- Disable workaround for Jython scripts on Linux systems. 
- Distribute #336: - setup.pyno longer masks failure exit code when tests fail.
- Fix issue in pkg_resources where try/except around a platform-dependent import would trigger hook load failures on Mercurial. See pull request 32 for details. 
- Distribute #341: Fix a ResourceWarning. 
0.6.32#
26 Nov 2012
- Fix test suite with Python 2.6. 
- Fix some DeprecationWarnings and ResourceWarnings. 
- Distribute #335: Backed out - setup_requiressuperseding installed requirements until regression can be addressed.
0.6.31#
24 Nov 2012
- Distribute #303: Make sure the manifest only ever contains UTF-8 in Python 3. 
- Distribute #329: Properly close files created by tests for compatibility with Jython. 
- Work around Jython #1980 and Jython #1981. 
- Distribute #334: Provide workaround for packages that reference - sys.__stdout__such as numpy does. This change should address pypa/virtualenv#359 as long as the system encoding is UTF-8 or the IO encoding is specified in the environment, i.e.:- PYTHONIOENCODING=utf8 pip install numpy 
- Fix for encoding issue when installing from Windows executable on Python 3. 
- Distribute #323: Allow - setup_requiresrequirements to supersede installed requirements. Added some new keyword arguments to existing pkg_resources methods. Also had to updated how __path__ is handled for namespace packages to ensure that when a new egg distribution containing a namespace package is placed on sys.path, the entries in __path__ are found in the same order they would have been in had that egg been on the path when pkg_resources was first imported.
0.6.30#
22 Oct 2012
- Distribute #328: Clean up temporary directories in distribute_setup.py. 
- Fix fatal bug in distribute_setup.py. 
0.6.29#
21 Oct 2012
- BB Pull Request #14: Honor file permissions in zip files. 
- Distribute #327: Merged pull request #24 to fix a dependency problem with pip. 
- Merged pull request #23 to fix pypa/virtualenv#301. 
- If Sphinx is installed, the - upload_docscommand now runs- build_sphinxto produce uploadable documentation.
- Distribute #326: - upload_docsprovided mangled auth credentials under Python 3.
- Distribute #320: Fix check for “creatable” in distribute_setup.py. 
- Distribute #305: Remove a warning that was triggered during normal operations. 
- Distribute #311: Print metadata in UTF-8 independent of platform. 
- Distribute #303: Read manifest file with UTF-8 encoding under Python 3. 
- Distribute #301: Allow to run tests of namespace packages when using 2to3. 
- Distribute #304: Prevent import loop in site.py under Python 3.3. 
- Distribute #283: Re-enable scanning of - *.pyc/- *.pyofiles on Python 3.3.
- Distribute #299: The develop command didn’t work on Python 3, when using 2to3, as the egg link would go to the Python 2 source. Linking to the 2to3’d code in build/lib makes it work, although you will have to rebuild the module before testing it. 
- Distribute #306: Even if 2to3 is used, we build in-place under Python 2. 
- Distribute #307: Prints the full path when .svn/entries is broken. 
- Distribute #313: Support for sdist subcommands (Python 2.7) 
- Distribute #314: test_local_index() would fail an OS X. 
- Distribute #310: Non-ascii characters in a namespace __init__.py causes errors. 
- Distribute #218: Improved documentation on behavior of - package_dataand- include_package_data. Files indicated by- package_dataare now included in the manifest.
- distribute_setup.pynow allows a- --download-baseargument for retrieving distribute from a specified location.
0.6.28#
22 Jul 2012
- Distribute #294: setup.py can now be invoked from any directory. 
- Scripts are now installed honoring the umask. 
- Added support for .dist-info directories. 
- Distribute #283: Fix and disable scanning of - *.pyc/- *.pyofiles on Python 3.3.
0.6.27#
18 May 2012
- Support current snapshots of CPython 3.3. 
- Distribute now recognizes README.rst as a standard, default readme file. 
- Exclude ‘encodings’ modules when removing modules from sys.modules. Workaround for #285. 
- Distribute #231: Don’t fiddle with system python when used with buildout (bootstrap.py) 
0.6.26#
08 Apr 2012
- Distribute #183: Symlinked files are now extracted from source distributions. 
- Distribute #227: Easy_install fetch parameters are now passed during the installation of a source distribution; now fulfillment of setup_requires dependencies will honor the parameters passed to easy_install. 
0.6.25#
08 Feb 2012
- Distribute #258: Workaround a cache issue 
- Distribute #260: distribute_setup.py now accepts the –user parameter for Python 2.6 and later. 
- Distribute #262: package_index.open_with_auth no longer throws LookupError on Python 3. 
- Distribute #269: AttributeError when an exception occurs reading Manifest.in on late releases of Python. 
- Distribute #272: Prevent TypeError when namespace package names are unicode and single-install-externally-managed is used. Also fixes PIP issue 449. 
- Distribute #273: Legacy script launchers now install with Python2/3 support. 
0.6.24#
14 Oct 2011
- Distribute #249: Added options to exclude 2to3 fixers 
0.6.23#
22 Sep 2011
- Distribute #244: Fixed a test 
- Distribute #243: Fixed a test 
- Distribute #239: Fixed a test 
- Distribute #240: Fixed a test 
- Distribute #241: Fixed a test 
- Distribute #237: Fixed a test 
- Distribute #238: easy_install now uses 64bit executable wrappers on 64bit Python 
- Distribute #208: Fixed parsed_versions, it now honors post-releases as noted in the documentation 
- Distribute #207: Windows cli and gui wrappers pass CTRL-C to child python process 
- Distribute #227: easy_install now passes its arguments to setup.py bdist_egg 
- Distribute #225: Fixed a NameError on Python 2.5, 2.4 
0.6.21#
20 Aug 2011
- Distribute #225: FIxed a regression on py2.4 
0.6.20#
18 Aug 2011
- Distribute #135: Include url in warning when processing URLs in package_index. 
- Distribute #212: Fix issue where easy_instal fails on Python 3 on windows installer. 
- Distribute #213: Fix typo in documentation. 
0.6.19#
02 Jun 2011
- Distribute #206: AttributeError: ‘HTTPMessage’ object has no attribute ‘getheaders’ 
0.6.18#
01 Jun 2011
- Distribute #210: Fixed a regression introduced by Distribute #204 fix. 
0.6.17#
30 May 2011
- Support ‘DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT’ environment variable to allow to disable installation of easy_install-${version} script. 
- Support Python >=3.1.4 and >=3.2.1. 
- Distribute #204: Don’t try to import the parent of a namespace package in declare_namespace 
- Distribute #196: Tolerate responses with multiple Content-Length headers 
- Distribute #205: Sandboxing doesn’t preserve working_set. Leads to setup_requires problems. 
0.6.16#
28 Apr 2011
- Builds sdist gztar even on Windows (avoiding Distribute #193). 
- Distribute #192: Fixed metadata omitted on Windows when package_dir specified with forward-slash. 
- Distribute #195: Cython build support. 
- Distribute #200: Issues with recognizing 64-bit packages on Windows. 
0.6.15#
12 Mar 2011
- Fixed typo in bdist_egg 
- Several issues under Python 3 has been solved. 
- Distribute #146: Fixed missing DLL files after easy_install of windows exe package. 
0.6.14#
15 Jul 2010
- Distribute #170: Fixed unittest failure. Thanks to Toshio. 
- Distribute #171: Fixed race condition in unittests cause deadlocks in test suite. 
- Distribute #143: Fixed a lookup issue with easy_install. Thanks to David and Zooko. 
- Distribute #174: Fixed the edit mode when its used with setuptools itself 
0.6.13#
31 May 2010
- Distribute #160: 2.7 gives ValueError(“Invalid IPv6 URL”) 
- Distribute #150: Fixed using ~/.local even in a –no-site-packages virtualenv 
- Distribute #163: scan index links before external links, and don’t use the md5 when comparing two distributions 
0.6.12#
06 May 2010
- Distribute #149: Fixed various failures on 2.3/2.4 
0.6.11#
06 May 2010
- Found another case of SandboxViolation - fixed 
- Distribute #15 and Distribute #48: Introduced a socket timeout of 15 seconds on url openings 
- Added indexsidebar.html into MANIFEST.in 
- Distribute #108: Fixed TypeError with Python3.1 
- Distribute #121: Fixed –help install command trying to actually install. 
- Distribute #112: Added an os.makedirs so that Tarek’s solution will work. 
- Distribute #133: Added –no-find-links to easy_install 
- Added easy_install –user 
- Distribute #100: Fixed develop –user not taking ‘.’ in PYTHONPATH into account 
- Distribute #134: removed spurious UserWarnings. Patch by VanLindberg 
- Distribute #138: cant_write_to_target error when setup_requires is used. 
- Distribute #147: respect the sys.dont_write_bytecode flag 
0.6.10#
12 Dec 2009
- Reverted change made for the DistributionNotFound exception because zc.buildout uses the exception message to get the name of the distribution. 
0.6.9#
12 Dec 2009
- Distribute #90: unknown setuptools version can be added in the working set 
- Distribute #87: setupt.py doesn’t try to convert distribute_setup.py anymore Initial Patch by arfrever. 
- Distribute #89: added a side bar with a download link to the doc. 
- Distribute #86: fixed missing sentence in pkg_resources doc. 
- Added a nicer error message when a DistributionNotFound is raised. 
- Distribute #80: test_develop now works with Python 3.1 
- Distribute #93: upload_docs now works if there is an empty sub-directory. 
- Distribute #70: exec bit on non-exec files 
- Distribute #99: now the standalone easy_install command doesn’t uses a “setup.cfg” if any exists in the working directory. It will use it only if triggered by - install_requiresfrom a setup.py call (install, develop, etc).
- Distribute #101: Allowing - os.devnullin Sandbox
- Distribute #92: Fixed the “no eggs” found error with MacPort (platform.mac_ver() fails) 
- Distribute #103: test_get_script_header_jython_workaround not run anymore under py3 with C or POSIX local. Contributed by Arfrever. 
- Distribute #104: removed the assertion when the installation fails, with a nicer message for the end user. 
- Distribute #100: making sure there’s no SandboxViolation when the setup script patches setuptools. 
0.6.8#
01 Nov 2009
- Added “check_packages” in dist. (added in Setuptools 0.6c11) 
- Fixed the DONT_PATCH_SETUPTOOLS state. 
0.6.7#
01 Nov 2009
- Distribute #58: Added –user support to the develop command 
- Distribute #11: Generated scripts now wrap their call to the script entry point in the standard “if name == ‘main’” 
- Added the ‘DONT_PATCH_SETUPTOOLS’ environment variable, so virtualenv can drive an installation that doesn’t patch a global setuptools. 
- Reviewed unladen-swallow specific change from http://code.google.com/p/unladen-swallow/source/detail?spec=svn875&r=719 and determined that it no longer applies. Distribute should work fine with Unladen Swallow 2009Q3. 
- Distribute #21: Allow PackageIndex.open_url to gracefully handle all cases of a httplib.HTTPException instead of just InvalidURL and BadStatusLine. 
- Removed virtual-python.py from this distribution and updated documentation to point to the actively maintained virtualenv instead. 
- Distribute #64: use_setuptools no longer rebuilds the distribute egg every time it is run 
- use_setuptools now properly respects the requested version 
- use_setuptools will no longer try to import a distribute egg for the wrong Python version 
- Distribute #74: no_fake should be True by default. 
- Distribute #72: avoid a bootstrapping issue with easy_install -U 
0.6.6#
15 Oct 2009
- Unified the bootstrap file so it works on both py2.x and py3k without 2to3 (patch by Holger Krekel) 
0.6.5#
15 Oct 2009
- Distribute #65: cli.exe and gui.exe are now generated at build time, depending on the platform in use. 
- Distribute #67: Fixed doc typo (PEP 381/PEP 382). 
- Distribute no longer shadows setuptools if we require a 0.7-series setuptools. And an error is raised when installing a 0.7 setuptools with distribute. 
- When run from within buildout, no attempt is made to modify an existing setuptools egg, whether in a shared egg directory or a system setuptools. 
- Fixed a hole in sandboxing allowing builtin file to write outside of the sandbox. 
0.6.4#
10 Oct 2009
- Added the generation of - distribute_setup_3k.pyduring the release. This closes Distribute #52.
- Added an upload_docs command to easily upload project documentation to PyPI’s https://pythonhosted.org. This close issue Distribute #56. 
- Fixed a bootstrap bug on the use_setuptools() API. 
0.6.3#
27 Sep 2009
setuptools#
- Fixed a bunch of calls to file() that caused crashes on Python 3. 
bootstrapping#
- Fixed a bug in sorting that caused bootstrap to fail on Python 3. 
0.6.2#
26 Sep 2009
setuptools#
- Added Python 3 support; see docs/python3.txt. This closes Old Setuptools #39. 
- Added option to run 2to3 automatically when installing on Python 3. This closes issue Distribute #31. 
- Fixed invalid usage of requirement.parse, that broke develop -d. This closes Old Setuptools #44. 
- Fixed script launcher for 64-bit Windows. This closes Old Setuptools #2. 
- KeyError when compiling extensions. This closes Old Setuptools #41. 
bootstrapping#
- Fixed bootstrap not working on Windows. This closes issue Distribute #49. 
- Fixed 2.6 dependencies. This closes issue Distribute #50. 
- Make sure setuptools is patched when running through easy_install This closes Old Setuptools #40. 
0.6.1#
08 Sep 2009
setuptools#
- package_index.urlopen now catches BadStatusLine and malformed url errors. This closes Distribute #16 and Distribute #18. 
- zip_ok is now False by default. This closes Old Setuptools #33. 
- Fixed invalid URL error catching. Old Setuptools #20. 
- Fixed invalid bootstraping with easy_install installation (Distribute #40). Thanks to Florian Schulze for the help. 
- Removed buildout/bootstrap.py. A new repository will create a specific bootstrap.py script. 
bootstrapping#
- The bootstrap process leave setuptools alone if detected in the system and –root or –prefix is provided, but is not in the same location. This closes Distribute #10. 
0.6#
09 Aug 2009
setuptools#
- Packages required at build time where not fully present at install time. This closes Distribute #12. 
- Protected against failures in tarfile extraction. This closes Distribute #10. 
- Made Jython api_tests.txt doctest compatible. This closes Distribute #7. 
- sandbox.py replaced builtin type file with builtin function open. This closes Distribute #6. 
- Immediately close all file handles. This closes Distribute #3. 
- Added compatibility with Subversion 1.6. This references Distribute #1. 
pkg_resources#
- Avoid a call to /usr/bin/sw_vers on OSX and use the official platform API instead. Based on a patch from ronaldoussoren. This closes issue #5. 
- Fixed a SandboxViolation for mkdir that could occur in certain cases. This closes Distribute #13. 
- Allow to find_on_path on systems with tight permissions to fail gracefully. This closes Distribute #9. 
- Corrected inconsistency between documentation and code of add_entry. This closes Distribute #8. 
- Immediately close all file handles. This closes Distribute #3. 
easy_install#
- Immediately close all file handles. This closes Distribute #3. 
0.6c9#
Fixed a missing files problem when using Windows source distributions on non-Windows platforms, due to distutils not handling manifest file line endings correctly.
Updated Pyrex support to work with Pyrex 0.9.6 and higher.
Minor changes for Jython compatibility, including skipping tests that can’t work on Jython.
Fixed not installing eggs in
install_requiresif they were also used forsetup_requiresortests_require.
Fixed not fetching eggs in
install_requireswhen running tests.
Allow
ez_setup.use_setuptools()to upgrade existing setuptools installations when called from a standalonesetup.py.
Added a warning if a namespace package is declared, but its parent package is not also declared as a namespace.
Support Subversion 1.5
Removed use of deprecated
md5module ifhashlibis available
Fixed
bdist_wininst uploadtrying to upload the.exetwice
Fixed
bdist_eggputting anative_libs.txtin the source package’s.egg-info, when it should only be in the built egg’sEGG-INFO.
Ensure that _full_name is set on all shared libs before extensions are checked for shared lib usage. (Fixes a bug in the experimental shared library build support.)
Fix to allow unpacked eggs containing native libraries to fail more gracefully under Google App Engine (with an
ImportErrorloading the C-based module, instead of getting aNameError).
Fixed
win32.exesupport for .pth files, so unnecessary directory nesting is flattened out in the resulting egg. (There was a case-sensitivity problem that affected some distributions, notablypywin32.)
Prevent
--help-commandsand other junk from showing under Python 2.5 when runningeasy_install --help.
Fixed GUI scripts sometimes not executing on Windows
Fixed not picking up dependency links from recursive dependencies.
Only make
.py,.dlland.sofiles executable when unpacking eggs
Changes for Jython compatibility
Improved error message when a requirement is also a directory name, but the specified directory is not a source package.
Fixed
--allow-hostsoption blockingfile:URLs
Fixed HTTP SVN detection failing when the page title included a project name (e.g. on SourceForge-hosted SVN)
Fix Jython script installation to handle
#!lines better whensys.executableis a script.
Removed use of deprecated
md5module ifhashlibis available
Keep site directories (e.g.
site-packages) from being included in.pthfiles.
0.6c7#
Fixed
distutils.filelist.findall()crashing on broken symlinks, andegg_infocommand failing on new, uncommitted SVN directories.
Fix import problems with nested namespace packages installed via
--rootor--single-version-externally-managed, due to the parent package not having the child package as an attribute.
ftp:download URLs now work correctly.
The default
--index-urlis nowhttps://pypi.python.org/simple, to use the Python Package Index’s new simpler (and faster!) REST API.
0.6c6#
Added
--egg-pathoption todevelopcommand, allowing you to force.egg-linkfiles to use relative paths (allowing them to be shared across platforms on a networked drive).
Fix not building binary RPMs correctly.
Fix “eggsecutables” (such as setuptools’ own egg) only being runnable with bash-compatible shells.
Fix
#!parsing problems in Windows.exescript wrappers, when there was whitespace inside a quoted argument or at the end of the#!line (a regression introduced in 0.6c4).
Fix
testcommand possibly failing if an older version of the project being tested was installed onsys.pathahead of the test source directory.
Fix
find_packages()treatingez_setupand directories with.in their names as packages.
EasyInstall no longer aborts the installation process if a URL it wants to retrieve can’t be downloaded, unless the URL is an actual package download. Instead, it issues a warning and tries to keep going.
Fixed distutils-style scripts originally built on Windows having their line endings doubled when installed on any platform.
Added
--local-snapshots-okflag, to allow building eggs from projects installed usingsetup.py develop.
Fixed not HTML-decoding URLs scraped from web pages
0.6c5#
Fix uploaded
bdist_rpmpackages being described asbdist_eggpackages under Python versions less than 2.5.
Fix uploaded
bdist_wininstpackages being described as suitable for “any” version by Python 2.5, even if a--target-versionwas specified.
Fixed
.dllfiles on Cygwin not having executable permissions when an egg is installed unzipped.
0.6c4#
Overhauled Windows script wrapping to support
bdist_wininstbetter. Scripts installed withbdist_wininstwill always use#!python.exeor#!pythonw.exeas the executable name (even when built on non-Windows platforms!), and the wrappers will look for the executable in the script’s parent directory (which should find the right version of Python).
Fix
uploadcommand not uploading files built bybdist_rpmorbdist_wininstunder Python 2.3 and 2.4.
Add support for “eggsecutable” headers: a
#!/bin/shscript that is prepended to an.eggfile to allow it to be run as a script on Unix-ish platforms. (This is mainly so that setuptools itself can have a single-file installer on Unix, without doing multiple downloads, dealing with firewalls, etc.)
Fix problem with empty revision numbers in Subversion 1.4
entriesfiles
Use cross-platform relative paths in
easy-install.pthwhen doingdevelopand the source directory is a subdirectory of the installation target directory.
Fix a problem installing eggs with a system packaging tool if the project contained an implicit namespace package; for example if the
setup()listed a namespace packagefoo.barwithout explicitly listingfooas a namespace package.
Added support for HTTP “Basic” authentication using
http://user:pass@hostURLs. If a password-protected page contains links to the same host (and protocol), those links will inherit the credentials used to access the original page.
Removed all special support for Sourceforge mirrors, as Sourceforge’s mirror system now works well for non-browser downloads.
Fixed not recognizing
win32.exeinstallers that included a custom bitmap.
Fixed not allowing
os.open()of paths outside the sandbox, even if they are opened read-only (e.g. reading/dev/urandomfor random numbers, as is done byos.urandom()on some platforms).
Fixed a problem with
.pthtesting on Windows whensys.executablehas a space in it (e.g., the user installed Python to aProgram Filesdirectory).
0.6c3#
Fixed breakages caused by Subversion 1.4’s new “working copy” format
You can once again use “python -m easy_install” with Python 2.4 and above.
Python 2.5 compatibility fixes added.
0.6c2#
The
ez_setupmodule displays the conflicting version of setuptools (and its installation location) when a script requests a version that’s not available.
Running
setup.py developon a setuptools-using project will now install setuptools if needed, instead of only downloading the egg.
Windows script wrappers now support quoted arguments and arguments containing spaces. (Patch contributed by Jim Fulton.)
The
ez_setup.pyscript now actually works when you put a setuptools.eggalongside it for bootstrapping an offline machine.
A writable installation directory on
sys.pathis no longer required to download and extract a source distribution using--editable.
Generated scripts now use
-xon the#!line whensys.executablecontains non-ASCII characters, to prevent deprecation warnings about an unspecified encoding when the script is run.
0.6c1#
Fixed
AttributeErrorwhen trying to download asetup_requiresdependency when a distribution lacks adependency_linkssetting.
Made
zip-safeandnot-zip-safeflag files contain a single byte, so as to play better with packaging tools that complain about zero-length files.
Made
setup.py developrespect the--no-depsoption, which it previously was ignoring.
Support
extra_pathoption tosetup()wheninstallis run in backward-compatibility mode.
Source distributions now always include a
setup.cfgfile that explicitly setsegg_infooptions such that they produce an identical version number to the source distribution’s version number. (Previously, the default version number could be different due to the use of--tag-date, or if the version was overridden on the command line that built the source distribution.)
EasyInstall now includes setuptools version information in the
User-Agentstring sent to websites it visits.
0.6b4#
Fix
registernot obeying name/version set byegg_infocommand, ifegg_infowasn’t explicitly run first on the same command line.
Added
--no-dateand--no-svn-revisionoptions toegg_infocommand, to allow suppressing tags configured insetup.cfg.
Fixed redundant warnings about missing
READMEfile(s); it should now appear only if you are actually a source distribution.
Fix creating Python wrappers for non-Python scripts
Fix
ftp://directory listing URLs from causing a crash when used in the “Home page” or “Download URL” slots on PyPI.
Fix
sys.path_importer_cachenot being updated when an existing zipfile or directory is deleted/overwritten.
Fix not recognizing HTML 404 pages from package indexes.
Allow
file://URLs to be used as a package index. URLs that refer to directories will use an internally-generated directory listing if there is noindex.htmlfile in the directory.
Allow external links in a package index to be specified using
rel="homepage"orrel="download", without needing the old PyPI-specific visible markup.
Suppressed warning message about possibly-misspelled project name, if an egg or link for that project name has already been seen.
0.6b3#
Fix
bdist_eggnot including files in subdirectories of.egg-info.
Allow
.pyfiles found by theinclude_package_dataoption to be automatically included. Remove duplicate data file matches if bothinclude_package_dataandpackage_dataare used to refer to the same files.
Fix local
--find-linkseggs not being copied except with--always-copy.
Fix sometimes not detecting local packages installed outside of “site” directories.
Fix mysterious errors during initial
setuptoolsinstall, caused byez_setuptrying to runeasy_installtwice, due to a code fallthru after deleting the egg from which it’s running.
0.6b2#
Don’t install or update a
site.pypatch when installing to aPYTHONPATHdirectory with--multi-version, unless aneasy-install.pthfile is already in use there.
Construct
.pthfile paths in such a way that installing an egg whose name begins withimportdoesn’t cause a syntax error.
Fixed a bogus warning message that wasn’t updated since the 0.5 versions.
0.6b1#
Strip
modulefrom the end of compiled extension modules when computing the name of a.pyloader/wrapper. (Python’s import machinery ignores this suffix when searching for an extension module.)
Better ambiguity management: accept
#eggname/version even if processing what appears to be a correctly-named distutils file, and ignore.eggfiles with no-, since valid Python.eggfiles always have a version number (but Scheme eggs often don’t).
Support
file://links to directories in--find-links, so that easy_install can build packages from local source checkouts.
Added automatic retry for Sourceforge mirrors. The new download process is to first just try dl.sourceforge.net, then randomly select mirror IPs and remove ones that fail, until something works. The removed IPs stay removed for the remainder of the run.
Ignore bdist_dumb distributions when looking at download URLs.
0.6a11#
Added
test_loaderkeyword to support custom test loaders
Added
setuptools.file_findersentry point group to allow implementing revision control plugins.
Added
--identityoption touploadcommand.
Added
dependency_linksto allow specifying URLs for--find-links.
Enhanced test loader to scan packages as well as modules, and call
additional_tests()if present to get non-unittest tests.
Support namespace packages in conjunction with system packagers, by omitting the installation of any
__init__.pyfiles for namespace packages, and adding a special.pthfile to create a working package insys.modules.
Made
--single-version-externally-managedautomatic when--rootis used, so that most system packagers won’t require special support for setuptools.
Fixed
setup_requires,tests_require, etc. not usingsetup.cfgor other configuration files for their option defaults when installing, and also made the install use--multi-versionmode so that the project directory doesn’t need to support .pth files.
MANIFEST.inis now forcibly closed when any errors occur while reading it. Previously, the file could be left open and the actual error would be masked by problems trying to remove the open file on Windows systems.
Process
dependency_links.txtif found in a distribution, by adding the URLs to the list for scanning.
Use relative paths in
.pthfiles when eggs are being installed to the same directory as the.pthfile. This maximizes portability of the target directory when building applications that contain eggs.
Added
easy_install-N.Nscript(s) for convenience when using multiple Python versions.
Added automatic handling of installation conflicts. Eggs are now shifted to the front of sys.path, in an order consistent with where they came from, making EasyInstall seamlessly co-operate with system package managers.
The
--delete-conflictingand--ignore-conflicts-at-my-riskoptions are now no longer necessary, and will generate warnings at the end of a run if you use them.
Don’t recursively traverse subdirectories given to
--find-links.
0.6a10#
Fixed the
developcommand ignoring--find-links.
Added exhaustive testing of the install directory, including a spawn test for
.pthfile support, and directory writability/existence checks. This should virtually eliminate the need to set or configure--site-dirs.
Added
--prefixoption for more do-what-I-mean-ishness in the absence of RTFM-ing. :)
Enhanced
PYTHONPATHsupport so that you don’t have to put any eggs on it manually to make it work.--multi-versionis no longer a silent default; you must explicitly use it if installing to a non-PYTHONPATH, non-“site” directory.
Expand
$variablesused in the--site-dirs,--build-directory,--install-dir, and--script-diroptions, whether on the command line or in configuration files.
Improved SourceForge mirror processing to work faster and be less affected by transient HTML changes made by SourceForge.
PyPI searches now use the exact spelling of requirements specified on the command line or in a project’s
install_requires. Previously, a normalized form of the name was used, which could lead to unnecessary full-index searches when a project’s name had an underscore (_) in it.
EasyInstall can now download bare
.pyfiles and wrap them in an egg, as long as you include an#egg=name-versionsuffix on the URL, or if the.pyfile is listed as the “Download URL” on the project’s PyPI page. This allows third parties to “package” trivial Python modules just by linking to them (e.g. from within their own PyPI page or download links page).
The
--always-copyoption now skips “system” and “development” eggs since they can’t be reliably copied. Note that this may cause EasyInstall to choose an older version of a package than what you expected, or it may cause downloading and installation of a fresh version of what’s already installed.
The
--find-linksoption previously scanned all supplied URLs and directories as early as possible, but now only directories and direct archive links are scanned immediately. URLs are not retrieved unless a package search was already going to go online due to a package not being available locally, or due to the use of the--updateor-Uoption.
Fixed the annoying
--help-commandswart.
0.6a9#
The
sdistcommand no longer uses the traditionalMANIFESTfile to create source distributions.MANIFEST.inis still read and processed, as are the standard defaults and pruning. But the manifest is built inside the project’s.egg-infodirectory asSOURCES.txt, and it is rebuilt every time theegg_infocommand is run.
Added the
include_package_datakeyword tosetup(), allowing you to automatically include any package data listed in revision control orMANIFEST.in
Added the
exclude_package_datakeyword tosetup(), allowing you to trim back files included via thepackage_dataandinclude_package_dataoptions.
Fixed
--tag-svn-revisionnot working when run from a source distribution.
Added warning for namespace packages with missing
declare_namespace()
Added
tests_requirekeyword tosetup(), so that e.g. packages requiringnoseto run unit tests can make this dependency optional unless thetestcommand is run.
Made all commands that use
easy_installrespect its configuration options, as this was causing some problems withsetup.py install.
Added an
unpack_directory()driver tosetuptools.archive_util, so that you can process a directory tree through a processing filter as if it were a zipfile or tarfile.
Added an internal
install_egg_infocommand to use as part of old-styleinstalloperations, that installs an.egg-infodirectory with the package.
Added a
--single-version-externally-managedoption to theinstallcommand so that you can more easily wrap a “flat” egg in a system package.
Enhanced
bdist_rpmso that it installs single-version eggs that don’t rely on a.pthfile. The--no-eggoption has been removed, since all RPMs are now built in a more backwards-compatible format.
Support full roundtrip translation of eggs to and from
bdist_wininstformat. Runningbdist_wininston a setuptools-based package wraps the egg in an .exe that will safely install it as an egg (i.e., with metadata and entry-point wrapper scripts), andeasy_installcan turn the .exe back into an.eggfile or directory and install it as such.
Fixed
.pthfile processing picking up nested eggs (i.e. ones inside “baskets”) when they weren’t explicitly listed in the.pthfile.
If more than one URL appears to describe the exact same distribution, prefer the shortest one. This helps to avoid “table of contents” CGI URLs like the ones on effbot.org.
Quote arguments to python.exe (including python’s path) to avoid problems when Python (or a script) is installed in a directory whose name contains spaces on Windows.
Support full roundtrip translation of eggs to and from
bdist_wininstformat. Runningbdist_wininston a setuptools-based package wraps the egg in an .exe that will safely install it as an egg (i.e., with metadata and entry-point wrapper scripts), andeasy_installcan turn the .exe back into an.eggfile or directory and install it as such.
0.6a8#
Fixed some problems building extensions when Pyrex was installed, especially with Python 2.4 and/or packages using SWIG.
Made
developcommand accept all the same options aseasy_install, and use theeasy_installcommand’s configuration settings as defaults.
Made
egg_info --tag-svn-revisionfall back to extracting the revision number fromPKG-INFOin case it is being run on a source distribution of a snapshot taken from a Subversion-based project.
Automatically detect
.dll,.soand.dylibfiles that are being installed as data, adding them tonative_libs.txtautomatically.
Fixed some problems with fresh checkouts of projects that don’t include
.egg-info/PKG-INFOunder revision control and put the project’s source code directly in the project directory. If such a package had any requirements that get processed before theegg_infocommand can be run, the setup scripts would fail with a “Missing ‘Version:’ header and/or PKG-INFO file” error, because the egg runtime interpreted the unbuilt metadata in a directory onsys.path(i.e. the current directory) as being a corrupted egg. Setuptools now monkeypatches the distribution metadata cache to pretend that the egg has valid version information, until it has a chance to make it actually be so (via theegg_infocommand).
Update for changed SourceForge mirror format
Fixed not installing dependencies for some packages fetched via Subversion
Fixed dependency installation with
--always-copynot using the same dependency resolution procedure as other operations.
Fixed not fully removing temporary directories on Windows, if a Subversion checkout left read-only files behind
Fixed some problems building extensions when Pyrex was installed, especially with Python 2.4 and/or packages using SWIG.
0.6a7#
Fixed not being able to install Windows script wrappers using Python 2.3
0.6a6#
Added support for “traditional” PYTHONPATH-based non-root installation, and also the convenient
virtual-python.pyscript, based on a contribution by Ian Bicking. The setuptools egg now contains a hackedsitemodule that makes the PYTHONPATH-based approach work with .pth files, so that you can get the full EasyInstall feature set on such installations.
Added
--no-depsand--allow-hostsoptions.
Improved Windows
.exescript wrappers so that the script can have the same name as a module without confusing Python.
Changed dependency processing so that it’s breadth-first, allowing a depender’s preferences to override those of a dependee, to prevent conflicts when a lower version is acceptable to the dependee, but not the depender. Also, ensure that currently installed/selected packages aren’t given precedence over ones desired by a package being installed, which could cause conflict errors.
0.6a5#
Fixed missing gui/cli .exe files in distribution. Fixed bugs in tests.
0.6a3#
Added
gui_scriptsentry point group to allow installing GUI scripts on Windows and other platforms. (The special handling is only for Windows; other platforms are treated the same as forconsole_scripts.)
Improved error message when trying to use old ways of running
easy_install. Removed the ability to run viapython -mor by runningeasy_install.py;easy_installis the command to run on all supported platforms.
Improved wrapper script generation and runtime initialization so that a VersionConflict doesn’t occur if you later install a competing version of a needed package as the default version of that package.
Fixed a problem parsing version numbers in
#egg=links.
0.6a2#
Added
console_scriptsentry point group to allow installing scripts without the need to create separate script files. On Windows, console scripts get an.exewrapper so you can just type their name. On other platforms, the scripts are written without a file extension.
EasyInstall can now install “console_scripts” defined by packages that use
setuptoolsand define appropriate entry points. On Windows, console scripts get an.exewrapper so you can just type their name. On other platforms, the scripts are installed without a file extension.
Using
python -m easy_installor runningeasy_install.pyis now DEPRECATED, since aneasy_installwrapper is now available on all platforms.
0.6a1#
Added support for building “old-style” RPMs that don’t install an egg for the target package, using a
--no-eggoption.
The
build_extcommand now works better when using the--inplaceoption and multiple Python versions. It now makes sure that all extensions match the current Python version, even if newer copies were built for a different Python version.
The
uploadcommand no longer attaches an extra.zipwhen uploading eggs, as PyPI now supports egg uploads without trickery.
The
ez_setupscript/module now displays a warning before downloading the setuptools egg, and attempts to check the downloaded egg against an internal MD5 checksum table.
Fixed the
--tag-svn-revisionoption ofegg_infonot finding the latest revision number; it was using the revision number of the directory containingsetup.py, not the highest revision number in the project.
Added
eager_resourcessetup argument
The
sdistcommand now recognizes Subversion “deleted file” entries and does not include them in source distributions.
setuptoolsnow embeds itself more thoroughly into the distutils, so that other distutils extensions (e.g. py2exe, py2app) will subclass setuptools’ versions of things, rather than the native distutils ones.
Added
entry_pointsandsetup_requiresarguments tosetup();setup_requiresallows you to automatically find and download packages that are needed in order to build your project (as opposed to running it).
setuptoolsnow finds its commands,setup()argument validators, and metadata writers using entry points, so that they can be extended by third-party packages. See Creating distutils Extensions for more details.
The vestigial
dependscommand has been removed. It was never finished or documented, and never would have worked without EasyInstall - which it pre-dated and was never compatible with.
EasyInstall now does MD5 validation of downloads from PyPI, or from any link that has an “#md5=…” trailer with a 32-digit lowercase hex md5 digest.
EasyInstall now handles symlinks in target directories by removing the link, rather than attempting to overwrite the link’s destination. This makes it easier to set up an alternate Python “home” directory (as described in the Non-Root Installation section of the docs).
Added support for handling MacOS platform information in
.eggfilenames, based on a contribution by Kevin Dangoor. You may wish to delete and reinstall any eggs whose filename includes “darwin” and “Power_Macintosh”, because the format for this platform information has changed so that minor OS X upgrades (such as 10.4.1 to 10.4.2) do not cause eggs built with a previous OS version to become obsolete.
easy_install’s dependency processing algorithms have changed. When using
--always-copy, it now ensures that dependencies are copied too. When not using--always-copy, it tries to use a single resolution loop, rather than recursing.
Fixed installing extra
.pycor.pyofiles for scripts with.pyextensions.
Added
--site-dirsoption to allow adding custom “site” directories. Madeeasy-install.pthwork in platform-specific alternate site directories (e.g.~/Library/Python/2.x/site-packageson Mac OS X).
If you manually delete the current version of a package, the next run of EasyInstall against the target directory will now remove the stray entry from the
easy-install.pthfile.
EasyInstall now recognizes URLs with a
#egg=project_namefragment ID as pointing to the named project’s source checkout. Such URLs have a lower match precedence than any other kind of distribution, so they’ll only be used if they have a higher version number than any other available distribution, or if you use the--editableoption. The#eggfragment can contain a version if it’s formatted as#egg=proj-ver, whereprojis the project name, andveris the version number. You must use the format for these values that thebdist_eggcommand uses; i.e., all non-alphanumeric runs must be condensed to single underscore characters.
Added the
--editableoption; see Editing and Viewing Source Packages in the docs. Also, slightly changed the behavior of the--build-directoryoption.
Fixed the setup script sandbox facility not recognizing certain paths as valid on case-insensitive platforms.
0.5a12#
The zip-safety scanner now checks for modules that might be used with
python -m, and marks them as unsafe for zipping, since Python 2.4 can’t handle-mon zipped modules.
Fix
python -m easy_installnot working due to setuptools being installed as a zipfile. Update safety scanner to check for modules that might be used aspython -mscripts.
Misc. fixes for win32.exe support, including changes to support Python 2.4’s changed
bdist_wininstformat.
0.5a11#
Fix breakage of the “develop” command that was caused by the addition of
--always-unzipto theeasy_installcommand.
0.5a10#
Put the
easy_installmodule back in as a module, as it’s needed forpython -mto run it!
Allow
--find-links/-fto accept local directories or filenames as well as URLs.
0.5a9#
Include
svn:externalsdirectories in source distributions as well as normal subversion-controlled files and directories.
Added
exclude=patternlistoption tosetuptools.find_packages()
Changed –tag-svn-revision to include an “r” in front of the revision number for better readability.
Added ability to build eggs without including source files (except for any scripts, of course), using the
--exclude-source-filesoption tobdist_egg.
setup.py installnow automatically detects when an “unmanaged” package or module is going to be onsys.pathahead of a package being installed, thereby preventing the newer version from being imported. If this occurs, a warning message is output tosys.stderr, but installation proceeds anyway. The warning message informs the user what files or directories need deleting, and advises them they can also use EasyInstall (with the--delete-conflictingoption) to do it automatically.
The
egg_infocommand now adds atop_level.txtfile to the metadata directory that lists all top-level modules and packages in the distribution. This is used by theeasy_installcommand to find possibly-conflicting “unmanaged” packages when installing the distribution.
Added
zip_safeandnamespace_packagesarguments tosetup(). Added package analysis to determine zip-safety if thezip_safeflag is not given, and advise the author regarding what code might need changing.
Fixed the swapped
-dand-boptions ofbdist_egg.
EasyInstall now automatically detects when an “unmanaged” package or module is going to be on
sys.pathahead of a package you’re installing, thereby preventing the newer version from being imported. By default, it will abort installation to alert you of the problem, but there are also new options (--delete-conflictingand--ignore-conflicts-at-my-risk) available to change the default behavior. (Note: this new feature doesn’t take effect for egg files that were built with oldersetuptoolsversions, because they lack the new metadata file required to implement it.)
The
easy_installdistutils command now usesDistutilsErroras its base error type for errors that should just issue a message to stderr and exit the program without a traceback.
EasyInstall can now be given a path to a directory containing a setup script, and it will attempt to build and install the package there.
EasyInstall now performs a safety analysis on module contents to determine whether a package is likely to run in zipped form, and displays information about what modules may be doing introspection that would break when running as a zipfile.
Added the
--always-unzip/-Zoption, to force unzipping of packages that would ordinarily be considered safe to unzip, and changed the meaning of--zip-ok/-zto “always leave everything zipped”.
0.5a8#
The “egg_info” command now always sets the distribution metadata to “safe” forms of the distribution name and version, so that distribution files will be generated with parseable names (i.e., ones that don’t include ‘-’ in the name or version). Also, this means that if you use the various
--tagoptions of “egg_info”, any distributions generated will use the tags in the version, not just egg distributions.
Added support for defining command aliases in distutils configuration files, under the “[aliases]” section. To prevent recursion and to allow aliases to call the command of the same name, a given alias can be expanded only once per command-line invocation. You can define new aliases with the “alias” command, either for the local, global, or per-user configuration.
Added “rotate” command to delete old distribution files, given a set of patterns to match and the number of files to keep. (Keeps the most recently-modified distribution files matching each pattern.)
Added “saveopts” command that saves all command-line options for the current invocation to the local, global, or per-user configuration file. Useful for setting defaults without having to hand-edit a configuration file.
Added a “setopt” command that sets a single option in a specified distutils configuration file.
There is now a separate documentation page for setuptools; revision history that’s not specific to EasyInstall has been moved to that page.
0.5a7#
Added “upload” support for egg and source distributions, including a bug fix for “upload” and a temporary workaround for lack of .egg support in PyPI.
0.5a6#
Beefed up the “sdist” command so that if you don’t have a MANIFEST.in, it will include all files under revision control (CVS or Subversion) in the current directory, and it will regenerate the list every time you create a source distribution, not just when you tell it to. This should make the default “do what you mean” more often than the distutils’ default behavior did, while still retaining the old behavior in the presence of MANIFEST.in.
Fixed the “develop” command always updating .pth files, even if you specified
-nor--dry-run.
Slightly changed the format of the generated version when you use
--tag-buildon the “egg_info” command, so that you can make tagged revisions compare lower than the version specified in setup.py (e.g. by using--tag-build=dev).
0.5a5#
Added
developcommand tosetuptools-based packages. This command installs an.egg-linkpointing to the package’s source directory, and script wrappers thatexecfile()the source versions of the package’s scripts. This lets you put your development checkout(s) on sys.path without having to actually install them. (To uninstall the link, use usesetup.py develop --uninstall.)
Added
egg_infocommand tosetuptools-based packages. This command just creates or updates the “projectname.egg-info” directory, without building an egg. (It’s used by thebdist_egg,test, anddevelopcommands.)
Enhanced the
testcommand so that it doesn’t install the package, but instead builds any C extensions in-place, updates the.egg-infometadata, adds the source directory tosys.path, and runs the tests directly on the source. This avoids an “unmanaged” installation of the package tosite-packagesor elsewhere.
Made
easy_installa standardsetuptoolscommand, moving it from theeasy_installmodule tosetuptools.command.easy_install. Note that if you were importing or extending it, you must now change your imports accordingly.easy_install.pyis still installed as a script, but not as a module.
0.5a4#
Setup scripts using setuptools can now list their dependencies directly in the setup.py file, without having to manually create a
depends.txtfile. Theinstall_requiresandextras_requirearguments tosetup()are used to create a dependencies file automatically. If you are manually creatingdepends.txtright now, please switch to using these setup arguments as soon as practical, becausedepends.txtsupport will be removed in the 0.6 release cycle. For documentation on the new arguments, see thesetuptools.dist.Distributionclass.
Setup scripts using setuptools now always install using
easy_installinternally, for ease of uninstallation and upgrading.
Added
--always-copy/-aoption to always copy needed packages to the installation directory, even if they’re already present elsewhere on sys.path. (In previous versions, this was the default behavior, but now you must request it.)
Added
--upgrade/-Uoption to force checking PyPI for latest available version(s) of all packages requested by name and version, even if a matching version is available locally.
Added automatic installation of dependencies declared by a distribution being installed. These dependencies must be listed in the distribution’s
EGG-INFOdirectory, so the distribution has to have declared its dependencies by using setuptools. If a package has requirements it didn’t declare, you’ll still have to deal with them yourself. (E.g., by asking EasyInstall to find and install them.)
Added the
--recordoption toeasy_installfor the benefit of tools that runsetup.py install --record=filenameon behalf of another packaging system.)
0.5a3#
Fixed not setting script permissions to allow execution.
Improved sandboxing so that setup scripts that want a temporary directory (e.g. pychecker) can still run in the sandbox.
0.5a2#
Fix stupid stupid refactoring-at-the-last-minute typos. :(
0.5a1#
Added support for “self-installation” bootstrapping. Packages can now include
ez_setup.pyin their source distribution, and add the following to theirsetup.py, in order to automatically bootstrap installation of setuptools as part of their setup process:from ez_setup import use_setuptools use_setuptools() from setuptools import setup # etc...
Added support for converting
.win32.exeinstallers to eggs on the fly. EasyInstall will now recognize such files by name and install them.
Fixed a problem with picking the “best” version to install (versions were being sorted as strings, rather than as parsed values)
0.4a4#
Added support for the distutils “verbose/quiet” and “dry-run” options, as well as the “optimize” flag.
Support downloading packages that were uploaded to PyPI (by scanning all links on package pages, not just the homepage/download links).
0.4a3#
Add progress messages to the search/download process so that you can tell what URLs it’s reading to find download links. (Hopefully, this will help people report out-of-date and broken links to package authors, and to tell when they’ve asked for a package that doesn’t exist.)
0.4a2#
Added
ez_setup.pyinstaller/bootstrap script to make initial setuptools installation easier, and to allow distributions using setuptools to avoid having to include setuptools in their source distribution.
All downloads are now managed by the
PackageIndexclass (which is now subclassable and replaceable), so that embedders can more easily override download logic, give download progress reports, etc. The class has also been moved to the newsetuptools.package_indexmodule.
The
Installerclass no longer handles downloading, manages a temporary directory, or tracks thezip_okoption. Downloading is now handled byPackageIndex, andInstallerhas become aneasy_installcommand class based onsetuptools.Command.
There is a new
setuptools.sandbox.run_setup()API to invoke a setup script in a directory sandbox, and a newsetuptools.archive_utilmodule with anunpack_archive()API. These were split out of EasyInstall to allow reuse by other tools and applications.
setuptools.Commandnow supports reinitializing commands using keyword arguments to set/reset options. Also,Commandsubclasses can now set theircommand_consumes_argumentsattribute toTruein order to receive anargsoption containing the rest of the command line.
Added support for installing scripts
Added support for setting options via distutils configuration files, and using distutils’ default options as a basis for EasyInstall’s defaults.
Renamed
--scan-url/-sto--find-links/-fto free up-sfor the script installation directory option.
Use
urllib2instead ofurllib, to allow use ofhttps:URLs if Python includes SSL support.
0.4a1#
Added
--scan-urland--index-urloptions, to scan download pages and search PyPI for needed packages.
0.3a4#
Restrict
--build-directory=DIR/-b DIRoption to only be used with single URL installs, to avoid running the wrong setup.py.
0.3a3#
Added
--build-directory=DIR/-b DIRoption.
Added “installation report” that explains how to use ‘require()’ when doing a multiversion install or alternate installation directory.
Added SourceForge mirror auto-select (Contributed by Ian Bicking)
Added “sandboxing” that stops a setup script from running if it attempts to write to the filesystem outside of the build area
Added more workarounds for packages with quirky
install_datahacks
0.3a2#
Added new options to
bdist_eggto allow tagging the egg’s version number with a subversion revision number, the current date, or an explicit tag value. Runsetup.py bdist_egg --helpto get more information.
Added subversion download support for
svn:andsvn+URLs, as well as automatic recognition of HTTP subversion URLs (Contributed by Ian Bicking)
Misc. bug fixes
0.3a1#
Initial release.
Credits#
- The original design for the - .eggformat and the- pkg_resourcesAPI was co-created by Phillip Eby and Bob Ippolito. Bob also implemented the first version of- pkg_resources, and supplied the macOS operating system version compatibility algorithm.
- Ian Bicking implemented many early “creature comfort” features of easy_install, including support for downloading via Sourceforge and Subversion repositories. Ian’s comments on the Web-SIG about WSGI application deployment also inspired the concept of “entry points” in eggs, and he has given talks at PyCon and elsewhere to inform and educate the community about eggs and setuptools. 
- Jim Fulton contributed time and effort to build automated tests of various aspects of - easy_install, and supplied the doctests for the command-line- .exewrappers on Windows.
- Phillip J. Eby is the seminal author of setuptools, and first proposed the idea of an importable binary distribution format for Python application plug-ins. 
- Significant parts of the implementation of setuptools were funded by the Open Source Applications Foundation, to provide a plug-in infrastructure for the Chandler PIM application. In addition, many OSAF staffers (such as Mike “Code Bear” Taylor) contributed their time and stress as guinea pigs for the use of eggs and setuptools, even before eggs were “cool”. (Thanks, guys!) 
- Tarek Ziadé is the principal author of the Distribute fork, which re-invigorated the community on the project, encouraged renewed innovation, and addressed many defects. 
- Jason R. Coombs performed the merge with Distribute, maintaining the project for several years in coordination with the Python Packaging Authority (PyPA).