summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a PY2 also.Jason R. Coombs2014-05-171-1/+2
|
* Compute PY3 directly and switch on that for clarity.Jason R. Coombs2014-05-171-4/+3
|
* with_statement is available naturally in Python 2.6Jason R. Coombs2014-05-172-7/+6
|
* Merge 4 out of 5 commits from Philip Thiem's unicode_try_2. Ref #193Jason R. Coombs2014-05-173-11/+74
|\
| * In corporate the old unicode with the spirit of what the FileList updating.Philip Thiem2014-05-171-6/+25
| | | | | | | | | | --HG-- extra : source : 199c917b8a0be209144878872269c3bd08936d6a
| * Starting a unicode_utils module.Philip Thiem2014-05-171-0/+41
| | | | | | | | | | --HG-- extra : source : 2e47fa11a272ed61f7c1bbf88aae27e81040fe93
| * with_statements and output utf-8 outputPhilip Thiem2014-05-171-6/+9
| | | | | | | | | | | | | | | | | | | | *Since py2.5 has been dropped, we can use future imports to make use of with statements. *End goal was to always decode to utf-8 in write_file on 307 --HG-- extra : rebase_source : 502ea7128f4e3b843b16c6d64d6d0b2ac56ce87d
| * Merge in test changes from previous tryPhilip Thiem2014-05-171-8/+16
| | | | | | | | | | --HG-- extra : rebase_source : 0dba3308549833dc7fc5b242e8ae3a4ec9f3c119
* | Backed out changeset: 1ceaffff2d9b (restoring b0a2fcc5275a). Ref #193Jason R. Coombs2014-05-151-2/+1
| | | | | | | | | | --HG-- extra : rebase_source : 5ca0514bbe3ec025094ea8f39921722d0ab3dd05
* | Merge changes from Pull Request 50Jason R. Coombs2014-05-172-9/+17
|\ \ | |/ |/|
| * Improved comment in the latin1 sdist test.philip_thiem2014-04-251-7/+4
| |
| * test_sdist: change the latin1 test to match the behavior of write_manifestPhilip Thiem2014-04-241-3/+14
| |
| * ignore .git* filesPhilip Thiem2014-04-241-2/+1
| |
| * ensure write_manifest passes contents to write_file as unicode strings.Philip Thiem2014-04-242-18/+34
| | | | | | | | | | --HG-- extra : rebase_source : 719fb2eb2c3599c57d7a11f5fc55cf9a88d74df7
* | Add a _repair method to repair the FileList after unsafe entries have been ↵Jason R. Coombs2014-05-161-0/+12
| | | | | | | | added.
* | Also override extend to check paths for safety.Jason R. Coombs2014-05-161-0/+3
| |
* | Move Python 3 code to the body of the functionJason R. Coombs2014-05-161-9/+8
| |
* | Use compat for Python 3 detectionJason R. Coombs2014-05-161-2/+2
| |
* | Extract _safe_pathJason R. Coombs2014-05-161-3/+6
| |
* | ReindentJason R. Coombs2014-05-161-2/+2
| |
* | Fix failure on non-Windows systemsJason R. Coombs2014-05-161-2/+1
| |
* | FileList.append already excludes files that are not UTF-8 encodable, so rely ↵Jason R. Coombs2014-05-151-14/+1
| | | | | | | | on it when building the manifest. Ref #193
* | Test should use the same high-level interface for appending filenames as the ↵Jason R. Coombs2014-05-151-1/+1
| | | | | | | | object itself will use when building the filelist. Ideally, FileList wouldn't expose this attribute at all.
* | Extend docstring for test_write_manifest_skips_non_utf8_filenamesJason R. Coombs2014-05-151-1/+6
| |
* | ReindentJason R. Coombs2014-05-151-2/+2
| |
* | This code path doesn't make sense. If the UnicodeEncodeError occurred above, ↵Jason R. Coombs2014-05-151-4/+0
| | | | | | | | it will occur here too.
* | Clean up docstringJason R. Coombs2014-05-151-2/+2
| |
* | Bumped to 3.7 in preparation for next release.Jason R. Coombs2014-05-073-6/+6
| |
* | Added tag 3.6 for changeset e94e768594a1Jason R. Coombs2014-05-071-0/+1
| |
* | 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
| |