Ignore:
Timestamp:
Feb 4, 2020 4:47:32 AM (4 years ago)
Author:
nanang
Message:

Close #2265: Fixed compatibility issues on Python 3.7 or above.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/python/Makefile

    r5777 r6152  
    44 
    55ifeq ($(USE_PYTHON3),1) 
    6   PYTHON_EXE=python3.6 
    7   PYTHON_PKG_DIR=$(HOME)/.local/lib/python3.6/site-packages 
     6  PYTHON_EXE=python3 
    87else 
    9   PYTHON_EXE=python2.7 
    10   PYTHON_PKG_DIR=$(HOME)/.local/lib/python2.7/site-packages 
     8  PYTHON_EXE=python2 
    119endif 
    1210 
    1311#PYTHON_SETUP_FLAGS = --inplace  
    1412ifeq ($(OS),Windows_NT) 
     13  PYTHON_PKG_DIR := $(shell $(PYTHON_EXE) -m site --user-site | sed 's/\\/\//g') 
    1514  PYTHON_SETUP_FLAGS += --compiler=mingw32 
    1615  GCC_EXE=gcc.exe 
    1716else 
     17  PYTHON_PKG_DIR := $(shell $(PYTHON_EXE) -m site --user-site) 
    1818  GCC_EXE= 
    1919endif 
Note: See TracChangeset for help on using the changeset viewer.