Skip to content

Commit 5806cc8

Browse files
committed
i really should make a new branch shouldnt i
1 parent 9019833 commit 5806cc8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hatch_build.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def initialize(self, version: str, data: dict):
3838

3939
libpython_path = find_libpython()
4040
if not libpython_path:
41-
self.app.abort("failed to find libpython")
41+
self.app.display_warning("failed to find libpython")
4242

4343
compiler.add_library_dir(str(Path(libpython_path).parent.absolute()))
4444

@@ -55,7 +55,7 @@ def initialize(self, version: str, data: dict):
5555
compiler.compile(
5656
glob("./src/mod.c"),
5757
output_dir=ext,
58-
extra_preargs=["-fPIC", "-v"]
58+
extra_preargs=["-fPIC", "-v"] if os.name != "nt" else [],
5959
)
6060
except Exception:
6161
self.app.abort("failed to compile _pointers")
@@ -71,7 +71,12 @@ def initialize(self, version: str, data: dict):
7171
files.append(os.path.join(root, i))
7272

7373
try:
74-
compiler.link_shared_lib(files, "_pointers", output_dir=lib)
74+
compiler.link_shared_lib(
75+
files,
76+
"_pointers",
77+
output_dir=lib,
78+
debug=True
79+
)
7580
except Exception:
7681
self.app.abort("failed to link _pointers")
7782

0 commit comments

Comments
 (0)