Skip to content

Commit b91350c

Browse files
committed
Fix Windows macro quoting.
1 parent 8046eb0 commit b91350c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arraykit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ PyInit_arraykit(void)
380380
import_array();
381381
PyObject *m = PyModule_Create(&arraykit_module);
382382
if (!m ||
383-
PyModule_AddStringConstant(m, "__version__", AK_VERSION) ||
383+
PyModule_AddStringConstant(m, "__version__", Py_STRINGIFY(AK_VERSION)) ||
384384
PyType_Ready(&ArrayGOType) ||
385385
PyModule_AddObject(m, "ArrayGO", (PyObject *) &ArrayGOType))
386386
{

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_long_description() -> str:
4848
name='arraykit',
4949
sources=['arraykit.c'],
5050
include_dirs=[np.get_include()],
51-
define_macros=[("AK_VERSION", f'"{AK_VERSION}"')],
51+
define_macros=[("AK_VERSION", AK_VERSION)],
5252
),
5353
],
5454
)

0 commit comments

Comments
 (0)