summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bumped to 3.6 in preparation for next release.3.6Jason R. Coombs2014-05-072-2/+2
|
* Update changelog. Fixes #203.Jason R. Coombs2014-05-071-0/+7
|
* Extract powershell command to correct long lineJason R. Coombs2014-05-071-1/+7
| | | | | --HG-- extra : amend_source : 1a6e3e5d0f62c1ce54c0d42ce806bd13541642ca
* Downloading throw proxy fixed http://stackoverflow.com/a/18790045/61505Arkadiy Shapkin2014-04-241-1/+1
| | | | | --HG-- extra : rebase_source : b4dced905dbe7206c15ae35ccdae9c400637efa2
* Bumped to 3.5.3 in preparation for next release.Jason R. Coombs2014-05-072-2/+2
|
* Added tag 3.5.2 for changeset 572201d08eadJason R. Coombs2014-05-071-0/+1
|
* Merge Pull Request #483.5.2Jason R. Coombs2014-05-072-14/+44
|\
| * Update changelogJason R. Coombs2014-05-071-0/+7
| |
| * make easy_install.uncache_zipdir() remove more stale zipimporter instancesJurko Gospodnetić2014-04-151-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since paths are case-insensitive on Windows, zipped egg modules may be loaded using different but equivalent paths. Importing each such different path causes a new zipimporter to be instantiated. Removing cached zipimporter instances must then not forget about removing those created for differently spelled paths to the same replaced egg. Other missed zipimporter instances are those used to access zipped eggs stored inside zipped eggs. When clearing zipimporter instances got a given path, we need to clear all the instances related to any of its subpaths as well. --HG-- extra : rebase_source : 86aeadd1e639fbc83d27a0c551fdc2b8a68a6f85
| * clean up easy_install.uncache_zipdir() code & commentsJurko Gospodnetić2014-04-151-5/+17
| | | | | | | | | | --HG-- extra : rebase_source : 79778a670897cb92c17307f2535fcac6447e16b4
| * quick-fix #168: avoid using stale cached zipped egg dist info in easy_installJurko Gospodnetić2014-04-151-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When installing a zipped egg, into a Python environment with a same named zipped egg already installed, the installation can fail with a zipimport.ZipImportError complaining about a 'bad local header' encountered in the new zip archive. This can occur if setuptools loads the original egg for some reason and the two zip archives have different content. Then if Python attempts to read a file from the new archive, it will expect it in a location pointed to by the original archive's directory. This will report an error if zipimport does not encounter the expected local file start header in the given location. The mismatch between the two archives can be reproduced by installing the same setuptools version (prior to this commit and after commit f40b810acc5f6494735c912a625d647dc2a3c582 that first introduced the requires.txt metadata information file into the setuptools project) twice from its sources - which can randomly fail due to the scenario described above. That will package the zipped egg archive twice, with each of the archives containing slightly different Python modules. In case this causes any of the compressed modules to have different size (easy_install.pyc is often the culprit here), then attempting to read any later file in the zip archive will fail (requires.txt package metadata file is often the culprit here). A similar scenario can be reproduced more consistently by manually modifying the setuptools easy_install.py source file before building the new egg, e.g. by adding some additional empty lines to its start. The underlying reason for this problem is setuptools using zipimporter instances with cached zip archive content directory information from the older zip archive, even after the old archive has been replaced. This patch cleans up only one such old zipimporter instance - one referenced via easy_install command's local_index attribute. That is the one that has been causing all the currently reported/reproduced installation failures. A clean solution needs to make certain there are no more zipimporter instances with stale archive content directory caches left behind after replacing a zipped egg archive with another. There are currently at least the following known potential sources for such stale zipimporter instances (all holding references to Distribution instances that can then hold a reference to a zipimporter related to their zipped egg archive): easy_install command attributes: local_index (Environment with a list of Distributions) package_index (PackageIndex with a list of Distributions) pth_file (PthDistributions with a list of Distributions) global pkg_resources.working_set object (holds a list of Distributions) imported module's __loader__ attribute (zipimporter instance) zipimport._zip_directory_cache sys.path_importer_cache Further debugging & development note: A complete list of all the currently active stale zipimporter instances can be read using CPython's gc module and its object reference introspection functionality (gc.get_objects() & gc.get_referrers()) from inside the uncache_zipdir() method in the setuptools easy_install.py module. That is the method called just after the old arhive has been replaced by the new one and all the stale zipimporter instances were supposed to have been released. --HG-- extra : rebase_source : 041d2819881b8f7e5c4da333a387fc86d4f7b791
* | Just suppress the spurious IndexError when it happens. Rely on the ↵Jason R. Coombs2014-05-051-3/+4
| | | | | | | | environments where the behavior doesn't fail until the upstream issue can be resolved. Fixes #201.
* | Add Python 3.4 as a testable version. Bump version pulled in bootstrap test.Jason R. Coombs2014-05-051-1/+2
| |
* | Use modern syntax for octal valuesJason R. Coombs2014-05-054-9/+9
| |
* | Avoid trailing commentsJason R. Coombs2014-05-051-47/+92
| |
* | Fix spacing in __all__Jason R. Coombs2014-05-051-3/+4
| |
* | Now this syntax fits nicely on one lineJason R. Coombs2014-05-051-4/+1
| |
* | Remove unnecessary list comprehensionJason R. Coombs2014-05-051-2/+2
| |
* | Reindent more long lines. Other minor syntax modernization.Jason R. Coombs2014-05-051-21/+39
| |
* | Reindent long lines in marker implJason R. Coombs2014-05-051-12/+35
| |
* | Use simpler syntax to get the same infoJason R. Coombs2014-05-051-2/+2
| |
* | Reindent long lineJason R. Coombs2014-05-051-1/+2
| |
* | Reformat for consistencyJason R. Coombs2014-05-051-1/+8
| |
* | Rewrite hashcmp using modern syntaxJason R. Coombs2014-05-051-5/+6
| |
* | Merge pkg_resources.Environment.__getitem__() code cleanup (pull request #47 ↵Jason R. Coombs2014-05-051-22/+10
|\ \ | | | | | | | | | and subsequent changes).
| * | Remove _sort_dists (unused)Jason R. Coombs2014-05-051-6/+0
| | |
| * | Correct sort order by using list.sort with support for 'key' and 'reverse'. ↵Jason R. Coombs2014-05-051-2/+2
| | | | | | | | | | | | This method is less efficient, but allows the tests to pass.
| * | Sort _distmap entries on insert. Obviates need for a cache.Jason R. Coombs2014-05-041-49/+3
| | |
| * | pkg_resources.Environment.__getitem__() code cleanupJurko Gospodnetić2014-04-151-12/+52
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Better commented the code, especially the result caching & lazy distribution list sorting strategies implemented there. Added several TODO comments indicating things to look into there in the future. General code cleanup: - stopped reusing the project_name variable for different purposes - added an assertion to detect corrupt distribution list caches --HG-- extra : source : 86ef8f59ef4e1fc253c155b9ca0856497455372d
* | Bumped to 3.5.2 in preparation for next release.Jason R. Coombs2014-05-043-6/+6
| |
* | Added tag 3.5.1 for changeset 254d8c625f46Jason R. Coombs2014-05-041-0/+1
| |
* | Bumped to 3.5.1 in preparation for next release.3.5.1Jason R. Coombs2014-05-042-2/+2
| |
* | Restore install._install with a comment to capture its requirement on ↵Jason R. Coombs2014-05-042-0/+11
| | | | | | | | | | | | | | earlier NumPy versions. Fixes #199. --HG-- extra : amend_source : a76d060c98e0048506e5aadddd675151db9d273c
* | Give comma-separated values a little room to breathe (use common style ↵Jason R. Coombs2014-05-041-115/+115
| | | | | | | | convention).
* | Bumped to 3.6 in preparation for next release.Jason R. Coombs2014-05-033-6/+6
| |
* | Added tag 3.5 for changeset 98f29d521c3aJason R. Coombs2014-05-031-0/+1
| |
* | Bumped to 3.5 in preparation for next release.3.5Jason R. Coombs2014-05-032-2/+2
| |
* | Update changelogJason R. Coombs2014-05-031-0/+4
| |
* | Restore traversal of symbolic links in find_packages. Fixes #195.Jason R. Coombs2014-05-031-1/+1
| |
* | Add test capturing failure when find_packages no longer follows symlinks. ↵Jason R. Coombs2014-05-032-4/+29
| | | | | | | | | | | | | | Ref #195 --HG-- extra : amend_source : 4efa6b87d3acaefebdfcc953e78a452ffc1f160d
* | Backed out changeset: b0a2fcc5275a Ref #193Jason R. Coombs2014-05-031-1/+2
| |
* | Monkey-patch the write_pkg_info method on Python 3.1 DistributionMetadata. ↵Jason R. Coombs2014-05-032-0/+28
| | | | | | | | Fixes #197
* | Updated references to bootstrap module to use new bootstrap.pypa.io ↵Jason R. Coombs2014-05-022-9/+9
| | | | | | | | locations. Fixes #192.
* | Correct indentation and clarify meaning by using namespacingJason R. Coombs2014-04-308-45/+43
|/ | | | | --HG-- extra : amend_source : 20ab7547c8478eb084767fe701e627bdd462ba16
* Re-arrange _first_line_re to put core functionality at the top levelJason R. Coombs2014-04-151-4/+8
|
* Move import to the topJason R. Coombs2014-04-151-2/+2
|
* Extract first_line_re function to encapsulate compatibility mechanismJason R. Coombs2014-04-151-4/+9
|
* Fix typo in formats.txtMartin Froehlich2014-04-131-1/+1
| | | | | --HG-- extra : source : 32166eed1174dc565d903c81b9d99c292357aecc
* Python2.x needs encode as well.yyfeng88625@gmail.com2014-03-211-2/+1
| | | | | --HG-- extra : source : ab82442e2205a4ab1016711e482388590688fa15
* Bumped to 3.4.5 in preparation for next release.Jason R. Coombs2014-04-112-2/+2
|