Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | Decode file as latin-1 when opening to ensure decoding any bytes. | Jason R. Coombs | 2015-01-20 | 1 | -3/+2 | |
| | | | | ||||||
* | | | | Use a .best classmethod to resolve JythonCommandSpec when relevant. | Jason R. Coombs | 2015-01-20 | 1 | -13/+22 | |
| | | | | ||||||
* | | | | Bypass string handling when default behavior of sys.executable is used. | Jason R. Coombs | 2015-01-20 | 1 | -1/+3 | |
| | | | | ||||||
* | | | | Use non-posix semantics in a WindowsCommandSpec and use that class in the ↵ | Jason R. Coombs | 2015-01-18 | 1 | -1/+8 | |
| | | | | | | | | | | | | | | | | Windows script writers. Fixes #331. | |||||
* | | | | Also use command_spec_class in ScriptWriter. | Jason R. Coombs | 2015-01-18 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | Allow the CommandSpec class to be resolved by the writer. | Jason R. Coombs | 2015-01-18 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | Extract messages as class attributes for nicer indentation. | Jason R. Coombs | 2015-01-18 | 1 | -73/+88 | |
| | | | | ||||||
* | | | | Restore setuptools.command.easy_install.sys_executable for pbr compatibility. | Jason R. Coombs | 2015-01-16 | 1 | -2/+3 | |
| | | | | ||||||
* | | | | Renamed .get_writer to .best and removed boolean argument. | Jason R. Coombs | 2015-01-16 | 1 | -6/+19 | |
| | | | | ||||||
* | | | | Change the way string values are interpreted from build.executable - now ↵ | Jason R. Coombs | 2015-01-04 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | they must be quoted or otherwise escaped suitable for parsing by shlex.split. | |||||
* | | | | Add test capturing expectation around sys.executable having spaces in the name. | Jason R. Coombs | 2015-01-04 | 1 | -3/+6 | |
| | | | | ||||||
* | | | | Allow CommandSpec to be constructed simply from a list. | Jason R. Coombs | 2015-01-04 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | Remove redundant line | Jason R. Coombs | 2015-01-04 | 1 | -1/+0 | |
| | | | | ||||||
* | | | | Use CommandSpec in ScriptWriter, removing now unused methods. | Jason R. Coombs | 2015-01-04 | 1 | -33/+3 | |
| | | | | ||||||
* | | | | Use CommandSpec in get_script_header | Jason R. Coombs | 2015-01-04 | 1 | -5/+8 | |
| | | | | ||||||
* | | | | Update install_scripts to use CommandSpec for generating script headers. | Jason R. Coombs | 2015-01-04 | 1 | -0/+13 | |
| | | | | ||||||
* | | | | Added new class CommandSpec, which will be used for abstracting the command ↵ | Jason R. Coombs | 2015-01-04 | 1 | -8/+87 | |
| | | | | | | | | | | | | | | | | handling for script headers. | |||||
* | | | | Extract method for handling non-ascii exe. Strip out excess whitespace from ↵ | Jason R. Coombs | 2015-01-04 | 1 | -17/+20 | |
| | | | | | | | | | | | | | | | | option handling. | |||||
* | | | | Extract method for parsing options. | Jason R. Coombs | 2015-01-04 | 1 | -7/+17 | |
| | | | | ||||||
* | | | | Rename _gen_args to get_args (for consistency). | Jason R. Coombs | 2015-01-04 | 1 | -5/+5 | |
| | | | | ||||||
* | | | | Deprecate and remove usage of easy_install.get_script_header. | Jason R. Coombs | 2015-01-04 | 1 | -4/+8 | |
| | | | | ||||||
* | | | | Moved get_script_header into ScriptWriter class | Jason R. Coombs | 2015-01-04 | 1 | -5/+6 | |
| | | | | ||||||
* | | | | Move get_script_header into ScriptWriter | Jason R. Coombs | 2015-01-04 | 1 | -24/+26 | |
| | | | | ||||||
* | | | | Move decision logic about windows/header generation closer to ↵ | Jason R. Coombs | 2015-01-04 | 1 | -6/+9 | |
| | | | | | | | | | | | | | | | | install_scripts, as it doesn't appear to be used elsewhere. | |||||
* | | | | Move trailing comment | Jason R. Coombs | 2015-01-04 | 1 | -1/+2 | |
| | | | | ||||||
* | | | | No need to pass the writer - just invoke it directly. | Jason R. Coombs | 2015-01-04 | 1 | -4/+4 | |
| | | | | ||||||
* | | | | Extract method for getting script args | Jason R. Coombs | 2015-01-04 | 1 | -5/+9 | |
| | | | | ||||||
* | | | | Reuse list2cmdline for argument quoting. | Jason R. Coombs | 2015-01-04 | 1 | -30/+2 | |
| | | | | ||||||
* | | | | Test the report method | Jason R. Coombs | 2015-01-04 | 1 | -4/+1 | |
| | | | | ||||||
* | | | | Use except/as, now supported by Python 2.6 | Jason R. Coombs | 2015-01-04 | 1 | -8/+4 | |
| |/ / |/| | | ||||||
* | | | Extract variable for clarity of reading | Jason R. Coombs | 2014-12-30 | 1 | -4/+8 | |
| | | | ||||||
* | | | Extract _patch_usage and re-implement as a context manager. | Jason R. Coombs | 2014-12-29 | 1 | -23/+27 | |
| | | | ||||||
* | | | Reindent using textwrap | Jason R. Coombs | 2014-12-29 | 1 | -4/+4 | |
| | | | ||||||
* | | | Silence PEP440Warning by default unless invoking easy_install | Donald Stufft | 2014-12-18 | 1 | -0/+5 | |
|/ / | ||||||
* | | Remove Python 2.5 compatibility for sys.dont_write_bytecode | Jason R. Coombs | 2014-10-25 | 1 | -2/+2 | |
|/ | ||||||
* | Fixed PEP 8 compliancy of the setuptools.command package | Alex Gr?nholm | 2014-06-18 | 1 | -231/+298 | |
| | ||||||
* | Merge template loader refactoring | Jason R. Coombs | 2014-06-15 | 1 | -14/+16 | |
|\ | ||||||
| * | Moved filename resolution into _load_template | Jason R. Coombs | 2014-06-15 | 1 | -7/+8 | |
| | | ||||||
| * | Extract embedded function as protected staticmethod. | Jason R. Coombs | 2014-06-15 | 1 | -9/+10 | |
| | | ||||||
* | | Merge issue202 changes. Fixes #202. | Jason R. Coombs | 2014-06-15 | 1 | -9/+3 | |
|\ \ | |/ | ||||||
| * | Rename script template to use .tmpl extensions. | Jason R. Coombs | 2014-06-14 | 1 | -2/+2 | |
| | | ||||||
| * | Now that 2to3 is no longer run on the codebase, it's safe for the templates ↵ | Jason R. Coombs | 2014-06-14 | 1 | -7/+1 | |
| | | | | | | | | to be syntactically incorrect (prior to substitution). | |||||
* | | remove instead of fix stale zipimport._zip_directory_cache data on PyPy | Jurko Gospodneti? | 2014-06-15 | 1 | -25/+42 | |
| | | | | | | | | | | | | | | PyPy's zipimport._zip_directory_cache implementation does not support direct item assignment, thus breaking our attempts at silently updating the cached zip archive directory information behind the scene. As a workaround, when using PyPy, we fall back to simply clearing the stale cached information. | |||||
* | | clear cached zip archive directory data when removing it from cache | Jurko Gospodneti? | 2014-06-04 | 1 | -10/+22 | |
| | | | | | | | | | | | | | | | | | | | | This is an extra safety measure to avoid someone holding a reference to this cached data and using its content even after we know that the underlying zip archive has been removed and possibly even replaced. Change suggested by PJ Eby (pje on BitBucket) in a setuptools pull request #51 comment: https://bitbucket.org/pypa/setuptools/pull-request/51/diff#comment-2018183 | |||||
* | | extract function for updating zipimporter cache data | Jurko Gospodneti? | 2014-06-04 | 1 | -14/+35 | |
| | | | | | | | | | | | | | | | | | | _update_zipimporter_cache() extracted from _uncache() & _replace_zip_directory_cache_data(). Code cleanup done in preparation for adding a bit more detailed cache item clearing logic, so that would not require adding a separate function with yet more code duplication. | |||||
* | | extract duplicate code | Jurko Gospodneti? | 2014-06-04 | 1 | -13/+18 | |
| | | | | | | | | | | Extracted code for collecting a list of zipimporter cache entries related to a given path into _collect_zipimporter_cache_entries(). | |||||
* | | update zipimporter cache clearing related code comments | Jurko Gospodneti? | 2014-06-04 | 1 | -25/+31 | |
| | | ||||||
* | | fix clearing zipimport._zip_directory_cache on pypy | Jurko Gospodneti? | 2014-06-02 | 1 | -1/+8 | |
| | | | | | | | | | | | | | | | | | | | | pypy uses a custom zipimport._zip_directory_cache implementation class that does not support the complete dict interface, e.g. it does not support the dict.pop() method. For more detailed information see the following links: https://bitbucket.org/pypa/setuptools/issue/202/more-robust-zipimporter-cache-invalidation#comment-10495960 https://bitbucket.org/pypy/pypy/src/dd07756a34a41f674c0cacfbc8ae1d4cc9ea2ae4/pypy/module/zipimport/interp_zipimport.py#cl-99 | |||||
* | | remove quick-fix comment for the solution to issue #169. | Jurko Gospodneti? | 2014-05-08 | 1 | -7/+0 | |
| | | | | | | | | | | | | | | Although the original problematic use case when we are replacing a zipped egg distribution with another zipped egg distribution is now cleanly handled by fixing all existing zipimport.zipimporter loaders, this fix is still valid for cases when replacing a distribution with a non-zipped egg folder. | |||||
* | | fix issue202 - update existing zipimporters when replacing a zipped egg | Jurko Gospodneti? | 2014-05-08 | 1 | -30/+109 | |
|/ | | | | | | | | | | | When replacing a zipped egg distribution with a different zipped egg, we make all existing zipimport.zipimporter loaders valid again instead of having to go hunting them down one by one. This is done by updating their shared zip directory information cache - zipimport._zip_directory_cache. Related to the following project issues: #169 - http://bitbucket.org/pypa/setuptools/issue/168 #202 - http://bitbucket.org/pypa/setuptools/issue/202 |