icoa-cli 1.8.2 → 1.8.3
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/dist/commands/env.js +7 -5
- package/dist/index.js +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
package/dist/commands/env.js
CHANGED
|
@@ -375,10 +375,13 @@ async function installAll() {
|
|
|
375
375
|
catch { /* ignore */ }
|
|
376
376
|
}
|
|
377
377
|
console.log();
|
|
378
|
-
//
|
|
379
|
-
|
|
378
|
+
// Build environment for native extensions (gmpy2 etc.)
|
|
379
|
+
const buildEnv = { ...process.env };
|
|
380
380
|
if (os === 'darwin') {
|
|
381
|
-
|
|
381
|
+
buildEnv['CFLAGS'] = `-I/opt/homebrew/include ${buildEnv['CFLAGS'] || ''}`.trim();
|
|
382
|
+
buildEnv['LDFLAGS'] = `-L/opt/homebrew/lib ${buildEnv['LDFLAGS'] || ''}`.trim();
|
|
383
|
+
buildEnv['C_INCLUDE_PATH'] = `/opt/homebrew/include:${buildEnv['C_INCLUDE_PATH'] || ''}`;
|
|
384
|
+
buildEnv['LIBRARY_PATH'] = `/opt/homebrew/lib:${buildEnv['LIBRARY_PATH'] || ''}`;
|
|
382
385
|
}
|
|
383
386
|
// Install Python libraries
|
|
384
387
|
let pipInstalled = 0;
|
|
@@ -395,8 +398,7 @@ async function installAll() {
|
|
|
395
398
|
}
|
|
396
399
|
process.stdout.write(chalk.gray(` ⏳ ${lib.name}...`));
|
|
397
400
|
try {
|
|
398
|
-
|
|
399
|
-
execSync(cmd, { stdio: 'ignore', shell: '/bin/bash' });
|
|
401
|
+
execSync(`${pipCmd} install ${pipFlag} ${lib.install}`, { stdio: 'ignore', env: buildEnv });
|
|
400
402
|
process.stdout.write('\r');
|
|
401
403
|
console.log(chalk.green(` ✓ ${lib.name}`) + chalk.gray(` (${lib.install})`));
|
|
402
404
|
pipInstalled++;
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ ${LINE}
|
|
|
36
36
|
${chalk.white('Sydney, Australia')} ${chalk.gray('Jun 27 - Jul 2, 2026')}
|
|
37
37
|
${chalk.cyan.underline('https://icoa2026.au')}
|
|
38
38
|
|
|
39
|
-
${chalk.gray('CLI-Native Competition Terminal v1.8.
|
|
39
|
+
${chalk.gray('CLI-Native Competition Terminal v1.8.3')}
|
|
40
40
|
|
|
41
41
|
${LINE}
|
|
42
42
|
`;
|
package/dist/repl.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ensureSandbox, runInSandbox, isDockerAvailable } from './lib/sandbox.js
|
|
|
8
8
|
import { logCommand } from './lib/logger.js';
|
|
9
9
|
import { startLogSync, stopLogSync } from './lib/log-sync.js';
|
|
10
10
|
const INTERCEPT = '__REPL_NO_EXIT__';
|
|
11
|
-
const VERSION = '1.8.
|
|
11
|
+
const VERSION = '1.8.3';
|
|
12
12
|
export async function startRepl(program, resumeMode) {
|
|
13
13
|
const config = getConfig();
|
|
14
14
|
const connected = isConnected();
|