Comparing version 0.6.7 to 0.6.8
@@ -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)" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
0
923054
1256