mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Make sure python2.7 is installed on win32
Closes #2193 Closes #2167 Closes atom/node-runas#5
This commit is contained in:
@@ -6,9 +6,18 @@ if (nodeMinorVersion !== '10') {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (process.platform == 'win32' && process.arch != 'ia32') {
|
||||
console.warn("You must run script/bootstrap and script/build with the 32bit version of node");
|
||||
process.exit(1);
|
||||
if (process.platform == 'win32') {
|
||||
// Make sure it is 32bit node
|
||||
if (process.arch != 'ia32') {
|
||||
console.warn("You must run script/bootstrap and script/build with the 32bit version of node");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Make sure python2.7 is installed
|
||||
if (!fs.existsSync('C:\\Python27\\')) {
|
||||
console.warn("You must have Python 2.7 installed at 'C:\\Python27\\'");
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
var safeExec = require('./utils/child-process-wrapper.js').safeExec;
|
||||
|
||||
Reference in New Issue
Block a user