@@ -8,6 +8,7 @@ var request = require("request");
88var tar = require ( "tar" ) ;
99var which = require ( "which" ) ;
1010var rimraf = require ( "rimraf" ) ;
11+ var NODE_VERSION = Number ( process . version . match ( / ^ v ( \d + \. \d + ) / ) [ 1 ] ) ;
1112
1213// This will take in an object and find any matching keys in the environment
1314// to use as overrides.
@@ -58,6 +59,10 @@ var paths = envOverride({
5859// Load the package.json.
5960var pkg = require ( paths . pkg ) ;
6061
62+ if ( NODE_VERSION === 0.1 ) {
63+ pkg . http_parser = pkg . http_parser [ "0.10" ] ;
64+ }
65+
6166// Ensure all dependencies are available.
6267var dependencies = Q . allSettled ( [
6368 // This will prioritize `python2` over `python`, because we always want to
@@ -196,12 +201,6 @@ var dependencies = Q.allSettled([
196201 // Write out a sha file for testing in the future.
197202 return Q . ninvoke ( fs , "writeFile" , paths . http_parser +
198203 pkg . http_parser . version , "" ) ;
199- } ) . then ( function ( ) {
200- // Only run the configuration script in a BSD-like environment.
201- if ( process . platform !== "win32" ) {
202- return Q . nfcall ( exec , "cd " + paths . http_parser + " ; " +
203- paths . http_parser + "configure" ) ;
204- }
205204 } ) ;
206205} )
207206
0 commit comments