diff options
author | Olly Betts <olly@survex.com> | 2022-03-17 15:30:21 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-03-17 18:55:10 +1300 |
commit | c7af8eabb3334063c9cede2916b14f23920082d7 (patch) | |
tree | 1f4beaf3a603e3a9e601108ddf6bbfb76d8ed575 /Examples/Makefile.in | |
parent | 2da3815f998a3488995fec5d1a7583da395ac2fa (diff) | |
download | swig-c7af8eabb3334063c9cede2916b14f23920082d7.tar.gz |
Default to running tests with Python 3
Specify PY2=1 to use Python 2.
See #1779
Closes #2235
Diffstat (limited to 'Examples/Makefile.in')
-rw-r--r-- | Examples/Makefile.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Examples/Makefile.in b/Examples/Makefile.in index 5a1fa7188..5f56f71dc 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -309,7 +309,7 @@ perl5_clean: PYTHON_FLAGS = # Make sure these locate your Python installation -ifeq (,$(PY3)) +ifneq (,$(PY2)) PYTHON_INCLUDE= $(DEFS) @PYINCLUDE@ PYTHON_LIB = @PYLIB@ PYTHON = @PYTHON@ $(PYTHON_FLAGS) @@ -320,7 +320,7 @@ else endif # Extra Python specific linking options -ifeq (,$(PY3)) +ifneq (,$(PY2)) PYTHON_DLNK = @PYTHONDYNAMICLINKING@ PYTHON_LINK = @PYLINK@ else @@ -330,7 +330,7 @@ endif PYTHON_SO = @PYTHON_SO@ # SWIG option for Python3 -ifeq (,$(PY3)) +ifneq (,$(PY2)) SWIGOPTPY3 = else SWIGOPTPY3 = -py3 |