@@ -98,7 +98,7 @@ kj::Array<kj::String> PythonModuleInfo::getPythonFileContents() {
98
98
99
99
kj::HashSet<kj::String> PythonModuleInfo::getWorkerModuleSet () {
100
100
auto result = kj::HashSet<kj::String>();
101
- const auto vendor = " vendor /" _kj;
101
+ const auto vendor = " python_modules /" _kj;
102
102
const auto dotPy = " .py" _kj;
103
103
const auto dotSo = " .so" _kj;
104
104
for (auto & item: names) {
@@ -418,26 +418,26 @@ kj::Own<PyodideMetadataReader::State> PyodideMetadataReader::State::clone() {
418
418
}
419
419
420
420
void PyodideMetadataReader::State::verifyNoMainModuleInVendor () {
421
- // Verify that we don't have module named after the main module in the `vendor ` subdir.
421
+ // Verify that we don't have module named after the main module in the `python_modules ` subdir.
422
422
// mainModule includes the .py extension, so we need to extract the base name
423
423
kj::ArrayPtr<const char > mainModuleBase = mainModule;
424
424
if (mainModule.endsWith (" .py" )) {
425
425
mainModuleBase = mainModuleBase.slice (0 , mainModuleBase.size () - 3 );
426
426
}
427
427
428
428
for (auto & name: moduleInfo.names ) {
429
- if (name.startsWith (kj::str (" vendor /" , mainModule))) {
429
+ if (name.startsWith (kj::str (" python_modules /" , mainModule))) {
430
430
JSG_FAIL_REQUIRE (
431
- Error, kj::str (" Python module vendor /" , mainModule, " clashes with main module" ));
431
+ Error, kj::str (" Python module python_modules /" , mainModule, " clashes with main module" ));
432
432
}
433
- if (name == kj::str (" vendor /" , mainModuleBase, " /__init__.py" )) {
433
+ if (name == kj::str (" python_modules /" , mainModuleBase, " /__init__.py" )) {
434
434
JSG_FAIL_REQUIRE (Error,
435
- kj::str (
436
- " Python module vendor/ " , mainModuleBase, " /__init__.py clashes with main module" ));
435
+ kj::str (" Python module python_modules/ " , mainModuleBase,
436
+ " /__init__.py clashes with main module" ));
437
437
}
438
- if (name == kj::str (" vendor /" , mainModuleBase, " .so" )) {
439
- JSG_FAIL_REQUIRE (
440
- Error, kj::str (" Python module vendor /" , mainModuleBase, " .so clashes with main module" ));
438
+ if (name == kj::str (" python_modules /" , mainModuleBase, " .so" )) {
439
+ JSG_FAIL_REQUIRE (Error,
440
+ kj::str (" Python module python_modules /" , mainModuleBase, " .so clashes with main module" ));
441
441
}
442
442
}
443
443
}
0 commit comments