Skip to content

On Windows, build is broken #10

Description

@smaudet

sys.executable is nonsensical ( == None).

This causes some fun breakage in distutils. The shim fix is to manually modify distutils to point to the path of sys.executable every time it is called - but perhaps this should be configurable inside Jython itself.

The proposed fix would provide e.g. a -Djython='jython-name' parameter to the jython startup, which would then be queried via Jython with:

sys.executable = subprocess.check_output(('where','jython-name').replace('\r\n','')

And then have sys.executable set transparently for the distutils (and other) packages.

Currently this requires one manual modification to the ez_setup.py and two modifications to the distutils package (build.py @ 118 && sysconfig.py @ 30)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions