Skip to content

Commit

Permalink
get rid of py3.12 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Nov 6, 2021
1 parent 297f557 commit 8d7e330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dicts = advancedcppDict.so \
all : $(dicts)

genreflex_flags := $(shell genreflex --cppflags)
cppflags=$(shell cling-config --cppflags) $(genreflex_flags) -O3 -fPIC -I$(shell python -c 'import distutils.sysconfig as ds; print(ds.get_config_var("INCLUDEPY"))') -Wno-register
cppflags=$(shell cling-config --cppflags) $(genreflex_flags) -O3 -fPIC -I$(shell python -c 'import sysconfig as sc; print(sc.get_config_var("INCLUDEPY"))') -Wno-register

PLATFORM := $(shell uname -s)
ifeq ($(PLATFORM),Darwin)
Expand Down
6 changes: 3 additions & 3 deletions test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def test02_dir(self):
def test03_pyfunc_doc(self):
"""Help on a generated pyfunc used to crash."""

import cppyy, distutils, pydoc, sys
import distutils.sysconfig as sc
import cppyy, pydoc, sys
import sysconfig as sc

cppyy.add_include_path(sc.get_python_inc())
cppyy.add_include_path(sc.get_config_var("INCLUDEPY"))
if sys.hexversion < 0x3000000:
cppyy.cppdef("#undef _POSIX_C_SOURCE")
cppyy.cppdef("#undef _XOPEN_SOURCE")
Expand Down

0 comments on commit 8d7e330

Please sign in to comment.