[Python-Dev] Re: [Python-checkins] python/dist/src/Lib modulefinder.py, 1.7, 1.8

Guido van Rossum guido at python.org
Fri Nov 14 11:03:39 EST 2003


> Index: modulefinder.py
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/modulefinder.py,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -C2 -d -r1.7 -r1.8
> *** modulefinder.py	18 Jul 2003 15:31:40 -0000	1.7
> --- modulefinder.py	14 Nov 2003 10:28:42 -0000	1.8
> ***************
> *** 211,215 ****
>               return
>           modules = {}
> !         suffixes = [".py", ".pyc", ".pyo"]
>           for dir in m.__path__:
>               try:
> --- 211,220 ----
>               return
>           modules = {}
> !         # 'suffixes' used to be a list hardcoded to [".py", ".pyc", ".pyo"].
> !         # But we must also collect Python extension modules - although
> !         # we cannot separate normal dlls from Python extensions.
> !         suffixes = []
> !         for triple in imp.get_suffixes():
> !             suffixes.append(triple[0])
>           for dir in m.__path__:
>               try:

Have you tested freeze after this?  I'm not sure that receiving
extension module files won't confuse it.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list