Skip to content

pass through python flag to node-gyp #54

Closed

Description

@tbranyen

i'm running python 3 (not supported) and was able to get nodegit installed by patching the install.js file to pass through the --python gyp flag

Activity

  1. ghost assigned on Mar 17, 2013
  2. faceleg commented on Mar 17, 2013

    @faceleg
    Collaborator

    I'll check how it works with my python version, if it's different and doesn't fail we should put this in the default installer? Otherwise I guess we're going to have to detect python versions and act accordingly...

  3. faceleg commented on Mar 18, 2013

    @faceleg
    Collaborator

    Adding the --python flag fails for me:

    [nodegit] Building native module.
    gyp info it worked if it ends with ok
    gyp info using node-gyp@0.8.4
    gyp info using node@0.8.20 | darwin | x64
    gyp ERR! configure error 
    gyp ERR! stack Error: Python executable "true" is v, which is not supported by gyp.
    gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
    gyp ERR! stack     at failPythonVersion (/usr/local/share/npm/lib/node_modules/node-gyp/lib/configure.js:118:14)
    gyp ERR! stack     at /usr/local/share/npm/lib/node_modules/node-gyp/lib/configure.js:107:9
    gyp ERR! stack     at ChildProcess.exithandler (child_process.js:538:7)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
    gyp ERR! stack     at maybeClose (child_process.js:638:16)
    gyp ERR! stack     at Socket.ChildProcess.spawn.stdin (child_process.js:815:11)
    gyp ERR! stack     at Socket.EventEmitter.emit (events.js:96:17)
    gyp ERR! stack     at Socket._destroy.destroyed (net.js:358:10)
    gyp ERR! stack     at process.startup.processNextTick.process._tickCallback (node.js:244:9)
    gyp ERR! System Darwin 12.2.0
    gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "--python"
    gyp ERR! cwd /Users/faceleg/Work/Web/js-apprentice.com/Site/node_modules/nodegit
    gyp ERR! node -v v0.8.20
    gyp ERR! node-gyp -v v0.8.4
    gyp ERR! not ok 
    

    So I guess we'll have to sniff python versions in the install script?

  4. tbranyen commented on Mar 18, 2013

    @tbranyen
    MemberAuthor

    --python python2 is what i used.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions