[Webkit-unassigned] [Bug 35163] New: autoinstall: should unzip downloaded zip files prior to importing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 19 10:18:59 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35163

           Summary: autoinstall: should unzip downloaded zip files prior
                    to importing
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cjerdonek at webkit.org
                CC: eric at webkit.org, abarth at webkit.org,
                    levin at chromium.org, hamaji at chromium.org


Autoinstall should probably unzip downloaded zip files prior to importing.

See, for example, the following information from the zipimport documentation:

"Any files may be present in the ZIP archive, but only files .py and .py[co]
are available for import.... Note that if an archive only contains .py files,
Python will not attempt to modify the archive by adding the corresponding .pyc
or .pyo file, meaning that if a ZIP archive doesn’t contain .pyc files,
importing may be rather slow."

(from the beginning of http://docs.python.org/library/zipimport.html )

The two packages we currently autoinstall don't seem to have .pyc files.

Also, it seems like autoinstall's code should modify sys.path rather than using
zipimport directly, as described in the following example:

http://docs.python.org/library/zipimport.html#examples

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list