Skip to content

configure: don't clobber existing $PYTHONPATH#509

Merged
TooTallNate merged 1 commit intonodejs:masterfrom
timbertson:PYTHONPATH
May 24, 2015
Merged

configure: don't clobber existing $PYTHONPATH#509
TooTallNate merged 1 commit intonodejs:masterfrom
timbertson:PYTHONPATH

Conversation

@timbertson
Copy link
Copy Markdown
Contributor

My node executable happens to be a wrapper created by 0install, implemented in python. It relies on some library code being available on $PYTHONPATH. Which means it can't run when npm-gyp overwrites $PYTHONPATH to include only the bundled gyp/pylib dir.

This commit achieves the same effect as the existing code (giving the bundled gyp module priority), but without clobbering an existing $PYTHONPATH value.

Comment thread lib/configure.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funnily enough, this would be a good use-case for my path-array module.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, if you don't mind the extra dependency just for these couple of lines - I didn't know about that module. Want me to redo the PR, or are you happy to do that since you're presumably pretty familiar with it?

TooTallNate added a commit that referenced this pull request May 24, 2015
configure: don't clobber existing $PYTHONPATH
@TooTallNate TooTallNate merged commit 15f6aeb into nodejs:master May 24, 2015
@mhart mhart mentioned this pull request Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants