Skip to content

Commit e17a042

Browse files
committed
i hope this fixes build
1 parent 33be667 commit e17a042

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hatch_build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def initialize(self, version: str, data: dict):
2626
ext = os.path.join(self.root, "ext")
2727
lib = os.path.join(ext, "./ext/lib")
2828

29+
compiler.add_library_dir(sysconfig.get_path("stdlib"))
30+
compiler.add_library_dir(sysconfig.get_path("platstdlib"))
2931
compiler.add_include_dir(sysconfig.get_path("include"))
3032
compiler.define_macro("PY_SSIZE_T_CLEAN")
3133

src/mod.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define PY_SSIZE_T_CLEAN
21
#include <Python.h>
32
#if PY_MAJOR_VERSION != 3
43
#error "Python 3 is needed to build"

0 commit comments

Comments
 (0)