diff options
Diffstat (limited to 'dev-python/cython/files/cython-0.13-python-3.1.3.patch')
-rw-r--r-- | dev-python/cython/files/cython-0.13-python-3.1.3.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/dev-python/cython/files/cython-0.13-python-3.1.3.patch b/dev-python/cython/files/cython-0.13-python-3.1.3.patch deleted file mode 100644 index 19e30bef11e1..000000000000 --- a/dev-python/cython/files/cython-0.13-python-3.1.3.patch +++ /dev/null @@ -1,25 +0,0 @@ -http://hg.cython.org/cython-devel/rev/66db6308e5be - ---- setup.py -+++ setup.py -@@ -106,12 +106,19 @@ - ) - - class build_ext(build_ext_orig): -+ # we must keep the original modules alive to make sure -+ # their code keeps working when we remove them from -+ # sys.modules -+ dead_modules = [] -+ - def build_extensions(self): - # add path where 2to3 installed the transformed sources - # and make sure Python (re-)imports them from there - already_imported = [ module for module in sys.modules - if module == 'Cython' or module.startswith('Cython.') ] -+ keep_alive = self.dead_modules.append - for module in already_imported: -+ keep_alive(sys.modules[module]) - del sys.modules[module] - sys.path.insert(0, os.path.join(source_root, self.build_lib)) - - |