objspace.soabiΒΆ

  • name: soabi
  • description: Tag to differentiate extension modules built for different Python interpreters
  • command-line: –soabi
  • option type: string option

This option controls the tag included into extension module file names. The default is something like pypy-14, which means that import foo will look for a file named foo.pypy-14.so (or foo.pypy-14.pyd on Windows).

This is an implementation of PEP3149, with two differences:

  • the filename without tag foo.so is not considered.
  • the feature is also available on Windows.

When set to the empty string (with –soabi=), the interpreter will only look for a file named foo.so, and will crash if this file was compiled for another Python interpreter.