diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-18 15:19:12 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-18 15:19:12 -0500 |
commit | 7daf18ff0aaa6e9c9f5078ed1880512dbf8e497a (patch) | |
tree | 31ea5ee65bbbaa52e91ab2b667a5306070c81c17 /setuptools | |
parent | ed765324e72e7e6be1f84778eaa7496df0e7a381 (diff) | |
download | external_python_setuptools-7daf18ff0aaa6e9c9f5078ed1880512dbf8e497a.tar.gz external_python_setuptools-7daf18ff0aaa6e9c9f5078ed1880512dbf8e497a.tar.bz2 external_python_setuptools-7daf18ff0aaa6e9c9f5078ed1880512dbf8e497a.zip |
Drop exception support for packages triggering win32com cache generation during build/install. Fixes #841
Diffstat (limited to 'setuptools')
-rwxr-xr-x | setuptools/sandbox.py | 8 | ||||
-rw-r--r-- | setuptools/tests/test_sandbox.py | 16 |
2 files changed, 0 insertions, 24 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 39afd57e..d882d715 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -373,14 +373,6 @@ if hasattr(os, 'devnull'): else: _EXCEPTIONS = [] -try: - from win32com.client.gencache import GetGeneratePath - _EXCEPTIONS.append(GetGeneratePath()) - del GetGeneratePath -except ImportError: - # it appears pywin32 is not installed, so no need to exclude. - pass - class DirectorySandbox(AbstractSandbox): """Restrict operations to a single subdirectory - pseudo-chroot""" diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index b92a477a..929f0a5b 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -23,22 +23,6 @@ class TestSandbox: return do_write - def test_win32com(self, tmpdir): - """ - win32com should not be prevented from caching COM interfaces - in gen_py. - """ - win32com = pytest.importorskip('win32com') - gen_py = win32com.__gen_path__ - target = os.path.join(gen_py, 'test_write') - sandbox = DirectorySandbox(str(tmpdir)) - try: - # attempt to create gen_py file - sandbox.run(self._file_writer(target)) - finally: - if os.path.exists(target): - os.remove(target) - def test_setup_py_with_BOM(self): """ It should be possible to execute a setup.py with a Byte Order Mark |