Changeset 5777


Ignore:
Timestamp:
Apr 6, 2018 6:07:32 AM (6 years ago)
Author:
ming
Message:

Re #2059 (misc):

  • Allow USE_PYTHON3 to be obtained from environment variable.
  • Change PYTHON_EXE. Reasons:
  • The platform Arch Linux defaults to Python 3 already. Therefore, when /usr/bin/python is called, it is not Python 2.7 but Python 3.6.
  • The platform NetBSD and Gentoo Linux does not offer /usr/bin/python3 but only /usr/bin/python3.6.

Thanks to Alexander Traud for the patch.

File:
1 edited

Legend:

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

    r5638 r5777  
    11PYTHON_SO=_pjsua2.so 
    22 
    3 USE_PYTHON3=1 
     3USE_PYTHON3?=1 
    44 
    55ifeq ($(USE_PYTHON3),1) 
    6   PYTHON_EXE=python3 
     6  PYTHON_EXE=python3.6 
    77  PYTHON_PKG_DIR=$(HOME)/.local/lib/python3.6/site-packages 
    88else 
    9   PYTHON_EXE=python 
     9  PYTHON_EXE=python2.7 
    1010  PYTHON_PKG_DIR=$(HOME)/.local/lib/python2.7/site-packages 
    1111endif 
Note: See TracChangeset for help on using the changeset viewer.