Skip to content

Commit 0c913fa

Browse files
committed
Move CYTHON_TRACE defines to "make debug" target out of setup.py
1 parent bc8c0e9 commit 0c913fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ debug: check-env clean
3030
echo "DEF DEBUG = 1" > asyncpg/protocol/__debug.pxi
3131
cython -a -X linetrace=True asyncpg/protocol/protocol.pyx; rm asyncpg/protocol/__debug.pxi
3232
@echo "$$CYTHON_BUILD_PATCH_SCRIPT" | $(PYTHON)
33-
$(PYTHON) setup.py build_ext --inplace --debug
33+
CFLAGS="${CFLAGS} -DCYTHON_TRACE=1 -DCYTHON_TRACE_NOGIL=1" \
34+
$(PYTHON) setup.py build_ext --inplace --debug
3435

3536

3637
test:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"asyncpg.protocol.protocol",
4040
["asyncpg/protocol/record/recordobj.c",
4141
"asyncpg/protocol/protocol.c"],
42-
extra_compile_args=['-O2', '-DCYTHON_TRACE=1', '-D CYTHON_TRACE_NOGIL=1'])
42+
extra_compile_args=['-O2'])
4343
]
4444
)

0 commit comments

Comments
 (0)