Differences between revisions 1 and 2
Revision 1 as of 2007-08-04 18:10:52
Size: 577
Editor: PhilipJenvey
Comment: setuptools on jython status
Revision 2 as of 2007-08-04 19:16:23
Size: 807
Editor: PhilipJenvey
Comment: more additions
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * PEP 302 (added in Jython 2.2)  * PEP 302: added in Jython 2.2

We don't have:
Line 7: Line 10:
  - The Jython zipimport machinery is somewhat different: ZipFileImporter only imports zips if they're SyspathArchives: currently .zips and .jars   - The Jython zipimport machinery is different: ZipFileImporter only imports zips if they're SyspathArchives: currently .zips and .jars. How does CPython zipimport identify .eggs as .zips (for the ez_setup bootstrap process)
Line 10: Line 13:
 * tempfile.mkstemp
 * os.open is used for a small hack having to do with usage of tempfile.mkstemp
 * imp.acquire/release_lock

Setuptools needs:

  • PEP 302: added in Jython 2.2

We don't have:

  • PEP 273 (the zipimport module)
    • - Jython's ZipFileImporter is somewhat different that the CPython zipimport module -- it's not a module, and it does not maintain its own _zip_importer_cache (which setuptools utilizes) apart from sys.path_importer_cache

      - The Jython zipimport machinery is different: ZipFileImporter only imports zips if they're SyspathArchives: currently .zips and .jars. How does CPython zipimport identify .eggs as .zips (for the ez_setup bootstrap process)

  • distutils
  • tempfile.mkstemp
  • os.open is used for a small hack having to do with usage of tempfile.mkstemp
  • imp.acquire/release_lock

SetuptoolsOnJython (last edited 2010-01-02 16:58:16 by AndrewKuchling)