stemit-cli 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/setup.js +5 -14
package/package.json
CHANGED
package/src/commands/setup.js
CHANGED
|
@@ -114,20 +114,11 @@ async function ensureDemucsVenv(systemPython) {
|
|
|
114
114
|
process.exit(1)
|
|
115
115
|
}
|
|
116
116
|
console.log(chalk.green(' ✔ demucs installed'))
|
|
117
|
-
|
|
118
|
-
//
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
['-c', 'import certifi, ssl, urllib.request; urllib.request.install_opener(urllib.request.build_opener(urllib.request.HTTPSHandler(context=ssl.create_default_context(cafile=certifi.where()))))'],
|
|
123
|
-
{ encoding: 'utf8', stdio: 'pipe' }
|
|
124
|
-
)
|
|
125
|
-
if (certScript.status !== 0) {
|
|
126
|
-
console.log(chalk.yellow(
|
|
127
|
-
' ⚠ SSL cert fix skipped. If you see SSL errors, run:\n' +
|
|
128
|
-
' /Applications/Python\\ 3.x/Install\\ Certificates.command'
|
|
129
|
-
))
|
|
130
|
-
}
|
|
117
|
+
} else {
|
|
118
|
+
// Ensure certifi is present even if venv was created without it
|
|
119
|
+
const certifiCheck = spawnSync(VENV_PYTHON, ['-c', 'import certifi'], { encoding: 'utf8', stdio: 'pipe' })
|
|
120
|
+
if (certifiCheck.status !== 0) {
|
|
121
|
+
spawnSync(VENV_PIP, ['install', '--quiet', 'certifi'], { encoding: 'utf8', stdio: 'inherit' })
|
|
131
122
|
}
|
|
132
123
|
}
|
|
133
124
|
|