summaryrefslogtreecommitdiff
path: root/setuptools/sandbox.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | | | Fix 2 errors with Jython 2.5.Arfrever Frehtes Taifersar Arahesis2012-11-261-1/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | (Now there remain 1 failure and 2 errors with Jython 2.5 and 1 failure and 5 errors with Jython 2.7.) --HG-- branch : distribute extra : rebase_source : c245820df5090ac5d005ebb7d6c4419145afce53
* | | Adds a fix for issue #318, including a regression test. This also fixes ↵Erik Bray2012-09-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | another test that was passing trivially due to *bug* in yet another test, ugh --HG-- branch : distribute extra : rebase_source : 476550766b7b756dced040ad4356b7685d6f062a
* | | Exclude 'encodings' modules when removing modules from sys.modules. ↵Jason R. Coombs2012-05-181-2/+8
| |/ |/| | | | | | | | | | | | | Workaround for #285. (Fixes #285) --HG-- branch : distribute extra : rebase_source : 913eaebbb0971a044d6087dc4faa2fdb4220def2
* | Adds some missing bits to the sandbox fix--need to actually save/restore the ↵Erik Bray2011-05-201-1/+3
| | | | | | | | | | | | | | | | pkg_resources state. --HG-- branch : distribute extra : rebase_source : 961ca56f30a6aabb5d24eff3cabb527d1be93ae4
* | Found a public API method which is preferable to using the private attribute ↵Jason R. Coombs2010-05-151-5/+3
| | | | | | | | | | | | | | | | for ascertaining the location of the gen_py cache --HG-- branch : distribute extra : rebase_source : 6feed4430505ad2d2680b141d41dccb95d9e80af
* | Updated gen_py exception to use attribute of win32com rather than infer the ↵Jason R. Coombs2010-05-151-4/+3
| | | | | | | | | | | | | | | | location of gen_py --HG-- branch : distribute extra : rebase_source : 55f1f3c23dc20edf9c91ea223fc5762fda22f5b2
* | Merged Fix for #151Jason R. Coombs2010-05-151-2/+5
|\ \ | | | | | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 7f7f9c64a26c6110096387b9862e06455c49f2ec
| * | we want any(), not all()Tarek Ziade2010-05-061-1/+1
| | | | | | | | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : c740917424bbc5efdfb91360399f1f17a09ea3a1
| * | make sure all tests passes on all python versions fixes #149Tarek Ziade2010-05-061-7/+12
| | | | | | | | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 6288f4fcf65083b9d4ffb0ea8b35af44e699b4d5
* | | Fix for #151 - attribute error when gen_py doesn't have __init__ moduleJason R. Coombs2010-05-151-2/+7
|/ / | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 6d42ed6e7f4d1ab4500aa8a695ee64af6a3f63f8
* | Worked out a fix for failing sandbox errors in Windows. Fixes #118.Jason R. Coombs2010-03-021-2/+12
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 69c8e59604f9d711cd29bb55e9edd3caab2b36a0
* | Allowing 'os.devnull' in Sandbox, fixes #101tarek2009-12-041-2/+6
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : d6f63794621874eb637139f353314256e02e02df
* | fix a hole in sandboxing allowing builtin file to write outside of the sandboxPhilip Jenvey2009-10-121-0/+6
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 5ff181b30f41080ec0e0628c96abf270ffe1a730
* | Conditionalize _file processing.Martin v. Löwis2009-09-111-4/+10
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : fd07ce0e0541a269a88596e985884f688c86185e
* | Packages required at build time where not fully present at install time. ↵Hanno Schlichting2009-07-171-3/+4
| | | | | | | | | | | | | | | | This closes #12. --HG-- branch : distribute extra : rebase_source : 178f508c83ecab9244064108d55ce840111a0e34
* | Applied patch from pjenvey. This closes #6.Hanno Schlichting2009-07-161-3/+7
|/ | | | | | --HG-- branch : distribute extra : rebase_source : 96ce51b3a70155a8b87de8ed0f72de8e12a7a27c
* Fix os.open() sandboxing code that refused anything but read-only access.PJ Eby2006-12-301-2/+2
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053199
* Fixed not allowing ``os.open()`` of paths outside the sandbox, even if theyPJ Eby2006-10-241-1/+42
| | | | | | | | | | are opened read-only (e.g. reading ``/dev/urandom`` for random numbers, as is done by ``os.urandom()`` on some platforms). (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052438
* Recognize 'U' as a valid read-only mode for open()PJ Eby2006-04-211-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045629
* Fixed the setup script sandbox facility not recognizing certain paths asPJ Eby2005-07-241-2/+2
| | | | | | | | valid on case-insensitive platforms. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041146
* Detect and handle conflicts with "unmanaged" packages when installingPJ Eby2005-07-101-2/+2
| | | | | | | | | packages managed by EasyInstall. Also, add an option to exclude source files from .egg distributions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041109