Skip to content

Commit e1fed7c

Browse files
committed
flip order
1 parent 315e583 commit e1fed7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def build_extension(self, ext: Extension):
5757
]
5858

5959
if platform.system() == "Windows":
60-
cmd.append("-DPYTHON_EXTENSION_MODULE_SUFFIX=.abi3.so")
60+
cmd.append("-DPYTHON_EXTENSION_MODULE_SUFFIX=.abi3.pyd")
6161
cmd.insert(2, f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{self.config.upper()}={_ed}")
6262
else:
63-
cmd.append("-DPYTHON_EXTENSION_MODULE_SUFFIX=.abi3.pyd")
63+
cmd.append("-DPYTHON_EXTENSION_MODULE_SUFFIX=.abi3.so")
6464

6565
cmd.append(ext.source_dir.as_posix())
6666

@@ -126,5 +126,5 @@ def execute_command(cmd: List[str], cwd: Path, env: Dict[str, str] = os.environ)
126126
else:
127127
output = str(e.output)
128128

129-
logging.info('\n'.join([f'{"-" * 20} ERROR {"-" * 20}', output or "", ]))
129+
logging.info('\n'.join([f'{"-" * 20} ERROR {"-" * 20}', output, ]))
130130
raise e

0 commit comments

Comments
 (0)