aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
Commit message (Collapse)AuthorAgeFilesLines
* Always use Python 3 version of mapJason R. Coombs2016-01-161-1/+1
|
* Modeling after Astropy's technique for bundling libraries, the imports are ↵Jason R. Coombs2015-12-311-8/+2
| | | | | | | now much cleaner. Thanks @embray. Ref #229. --HG-- branch : feature/issue-229
* Update vendoring technique to match that used for packaging. Ref #229.Jason R. Coombs2015-12-311-2/+8
| | | | | --HG-- branch : feature/issue-229
* Merge with master. Ref #229.Jason R. Coombs2015-12-311-33/+71
|\ | | | | | | | | --HG-- branch : feature/issue-229
| * Always import for SandboxViolation so it's pickleable. Ref #440.Jason R. Coombs2015-12-131-0/+1
| |
| * Prevent infinite recursion when UnpickleableException occurs in a sandbox ↵Jason R. Coombs2015-12-131-2/+4
| | | | | | | | context. Fixes #440.
| * Check for Jython using sys.platform, not os.nameAlex Grönholm2015-04-211-1/+1
| |
| * Fix setuptools.sandbox._execfile() with Python 3.1.Arfrever Frehtes Taifersar Arahesis2015-03-301-4/+4
| | | | | | | | It fixes failure of setuptools.tests.test_sandbox.TestSandbox.test_setup_py_with_CRLF() with Python 3.1.
| * Re-use context available in sandbox.Jason R. Coombs2015-02-031-1/+3
| |
| * Wrap unpickleable exceptions in another class. Fixes #329.Jason R. Coombs2015-01-141-5/+19
| |
| * Make attributes private and remove redundant naming.Jason R. Coombs2015-01-141-7/+7
| |
| * Extract Exception saving behavior.Jason R. Coombs2015-01-141-25/+45
| |
| * Use except/as, now supported by Python 2.6Jason R. Coombs2015-01-041-2/+1
| |
* | Merge with 10.2.1Jason R. Coombs2015-01-021-26/+144
|\| | | | | | | | | --HG-- branch : feature/issue-229
| * Ensure setuptools is present in the environment before invoking setup.py ↵Jason R. Coombs2014-12-301-0/+2
| | | | | | | | from easy_install. Fixes #319.
| * Catch, save, and restore any exceptions across the save_modules context. ↵Jason R. Coombs2014-12-291-11/+32
| | | | | | | | This corrects the latter of the two test failures. Ref #315.
| * Backed out changeset: 40cc1fbecb1cJason R. Coombs2014-12-291-3/+1
| | | | | | | | Restores purging of distutils/setuptools during sandbox operations. Ref #315.
| * Disable purging of distutils/setuptools during sandbox operations. Ref #315.Jason R. Coombs2014-12-281-1/+3
| |
| * Rename function to match intention.Jason R. Coombs2014-12-281-7/+7
| |
| * Correct docstringJason R. Coombs2014-12-281-5/+5
| |
| * Include distutils in modules hiddenJason R. Coombs2014-12-281-1/+3
| |
| * Extract function for _clear_modules, encapsulating the need for the module ↵Jason R. Coombs2014-12-281-5/+10
| | | | | | | | names to be greedily evaluated before removing them.
| * Remove setuptools modules from sys.modules before invoking setup script. ↵Jason R. Coombs2014-12-281-0/+27
| | | | | | | | Fixes #315.
| * Extract sandboxing context as a series of encapsulated contexts.Jason R. Coombs2014-12-271-26/+87
| |
* | Merge with 6.0.2Jason R. Coombs2014-09-291-1/+6
|\| | | | | | | | | --HG-- branch : feature/issue-229
| * Correct execfile implementation for Python 2.6. Fixes #236.Jason R. Coombs2014-08-011-0/+4
| |
| * Extract variableJason R. Coombs2014-08-011-1/+2
| |
* | Use six for Python 2 compatibilityJason R. Coombs2014-07-051-2/+2
|/ | | | | | --HG-- branch : feature/issue-229 extra : source : 7b1997ececc5772798ce33a0f8e77387cb55a977
* Since Python 3 will always need the _execfile functionality (to fulfill the ↵Jason R. Coombs2014-07-051-7/+16
| | | | test in test_sandbox), this functionality should become part of the core implementation.
* Use modern syntax for octal valuesJason R. Coombs2014-05-051-1/+1
|
* Exempt lib2to3 pickled grammars from the DirectorySandboxing. Fixes #121.2.0Jason R. Coombs2013-12-071-2/+5
| | | | | --HG-- extra : histedit_source : 6cd9a3c6003d3f6de2f8e676b61589db4dffafb0
* Add support for exempting a path based on a regular expression.Jason R. Coombs2013-12-071-2/+12
| | | | | --HG-- extra : histedit_source : 2f1f4146ec1d5196cb65602302185a12060cfa17
* Use any on a generator insteadJason R. Coombs2013-12-071-2/+2
| | | | | --HG-- extra : histedit_source : 7924e09d06d2f6db58371735314caeee77aa2d3d
* Use any for matching exceptions in DirectorySandbox.Jason R. Coombs2013-12-071-2/+5
| | | | | --HG-- extra : histedit_source : 9a99f28235a96543a3ca2da4ec691da0e1cd880c
* Always return a boolean in DirectorySandbox._okJason R. Coombs2013-12-071-4/+9
| | | | | --HG-- extra : histedit_source : b0072af02db4ba170105a4eb3f8a033dce678869
* Normalize whitespace in function signaturesJason R. Coombs2013-12-071-3/+3
| | | | | --HG-- extra : histedit_source : 471b9c3fbde309c39492f2a567a26993c1dc94de
* Modernize style on sandbox.pyJason R. Coombs2013-11-241-32/+8
|
* Remove compatibility around reduce.Jason R. Coombs2013-11-241-2/+3
|
* Allow other arguments and kwargs to os.open when in the sandbox. Fixes ↵Jason R. Coombs2013-07-131-3/+3
| | | | Distribute #386.
* More post-merge fixes.Vinay Sajip2013-06-191-1/+0
| | | | | --HG-- branch : single-codebase
* Merged upstream changes.Vinay Sajip2013-06-191-0/+2
|\ | | | | | | | | --HG-- branch : single-codebase
| * Merge Python 3 native support from distributeJason R. Coombs2013-06-181-7/+10
| |\ | | | | | | | | | | | | --HG-- rename : tests/test_distribute_setup.py => tests/test_ez_setup.py
| | * Merge Vinay Sajip's unified Python 2/3 support from distribute 3Jason R. Coombs2013-06-181-1/+4
| | |\ | | | | | | | | | | | | | | | | --HG-- branch : distribute
| | * \ Merge with upstreamJason R. Coombs2013-06-181-7/+13
| | |\ \ | | | | | | | | | | | | | | | | | | | | --HG-- branch : distribute
| | * | | Changes to support 2.x and 3.x in the same codebase.Vinay Sajip2011-06-201-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 7d3608edee54a43789f0574d702fb839628b5071
* | | | | Misc. updates following 2to3 checks.Vinay Sajip2013-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | --HG-- branch : single-codebase
* | | | | Initial commit. All tests pass on 2.7, 3.2 and 3.3, though there are some ↵Vinay Sajip2013-06-151-7/+9
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | atexit errors in the multiprocessing module in 2.7/3.2 (seemingly unrelated to setuptools). --HG-- branch : single-codebase
* | | | Remove redundant exception for os.devnullJason R. Coombs2013-05-161-2/+1
| | | | | | | | | | | | | | | | | | | | --HG-- branch : Setuptools-Distribute merge
* | | | Merged sandbox moduleJason R. Coombs2013-03-201-9/+38
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | --HG-- branch : Setuptools-Distribute merge
| * | | Update sandbox.py to latest from setuptools-0.6Jason R. Coombs2013-03-201-19/+60
| | | | | | | | | | | | | | | | | | | | | | | | --HG-- branch : Setuptools-Distribute merge extra : source : 7f4dd650af5779b69ae13fe6a1b4adce386b5489