cskit-cli 1.0.9 → 1.0.11
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/init.js +3 -3
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -92,12 +92,12 @@ async function setupPythonEnv(projectDir, spinner) {
|
|
|
92
92
|
execSync(`python3 -m venv "${venvPath}"`, { stdio: 'pipe', cwd: libPythonDir });
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// Parse requirements.txt
|
|
95
|
+
// Parse requirements.txt (strip inline comments)
|
|
96
96
|
const pipPath = path.join(venvPath, 'bin', 'pip');
|
|
97
97
|
const requirements = fs.readFileSync(requirementsFile, 'utf8')
|
|
98
98
|
.split('\n')
|
|
99
|
-
.map(line => line.trim())
|
|
100
|
-
.filter(line => line
|
|
99
|
+
.map(line => line.split('#')[0].trim()) // Remove inline comments
|
|
100
|
+
.filter(line => line); // Remove empty lines
|
|
101
101
|
|
|
102
102
|
if (requirements.length === 0) {
|
|
103
103
|
spinner.succeed('No packages to install');
|