Socket
Socket
Sign inDemoInstall

node-gyp

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-gyp - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

16

lib/configure.js

@@ -19,2 +19,3 @@

, spawn = cp.spawn
, execFile = cp.execFile
, win = process.platform == 'win32'

@@ -90,17 +91,8 @@

function checkPythonVersion () {
exec(python + ' --version', function (err, stdout, stderr) {
execFile(python, ['-c', 'import platform; print platform.python_version();'], function (err, stdout) {
if (err) {
return callback(err)
}
log.verbose('check python version', '`%s --version` returned: %j', python, stderr)
var version = stderr.trim().replace(/[^\d\.]+/g, '')
var numDots = 0
version.replace(/\./g, function () {
numDots++
})
while (numDots < 2) {
version += '.0'
numDots++
}
log.verbose('check python version', 'using version %j to check', version)
log.verbose('check python version', '`%s -c "import platform; print platform.python_version();"` returned: %j', python, stdout)
var version = stdout.trim()
if (semver.gte(version, '2.5.0') && semver.lt(version, '3.0.0')) {

@@ -107,0 +99,0 @@ getNodeDir()

{ "name": "node-gyp"
, "description": "Node.js native addon build tool"
, "keywords": [ "native", "addon", "module", "c", "c++", "bindings", "gyp" ]
, "version": "0.6.7"
, "version": "0.6.8"
, "installVersion": 9

@@ -6,0 +6,0 @@ , "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc