Skip to content

Commit de9627a

Browse files
committed
Explicitly call sys.exit in the modules_mapping generator
When running python with `-S` to disable the `site` module, you need to explicitly call `sys.exit` instead of the `exit` function which seems to be a remnant of the REPL
1 parent 5a8f6c4 commit de9627a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gazelle/modules_mapping/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ def data_has_purelib_or_platlib(path):
164164
generator = Generator(
165165
sys.stderr, args.output_file, args.exclude_patterns, args.include_stub_packages
166166
)
167-
exit(generator.run(args.wheels))
167+
sys.exit(generator.run(args.wheels))

0 commit comments

Comments
 (0)