I try to compile PJSUA2 for Python. I could manage to compile the source with Visual Studio 2015 Community edition. 
My question is, how can I install the Python module now? 
The guide suggests to use make and make install. I tried to install also minwg, but it is not working as the project was compiled with VS. 

I have also tried to compile with minwg, but I never could succeed due to undefined requirements. Also official PJSUA guide recommend to use VS for Windows.

Following settings have been applied to build from source:

Swig location has been added to path
JAVA_home system variable has been added
Java location has been added to path
Empty pjlib/include/pj/config_site.h has been created
Opened source in VS 2015 Community (all suggested VS package and module has been installed)
Set following project to do not compile:


pjsua_cli_uwp_comp
pjsua_cli_wp8
pjsua_cli_wp8_comp

Set swig_java_pjsua2 to build.
Add following folders to swig_java_pjsua2 VC++ include directories


c:\Program Files\Java\jdk-11.0.2\include
c:\Program Files\Java\jdk-11.0.2\include\win32

Build solution
Thank You very much Krisz for this awesome work!

I just got it working for Python 2.7 / 32bit and some things are slightly different, so I will add them here:
Environment:

Windows 10
SWIG 4.0.1
PJSIP 2.9
Python 2.7.14 (32bit)
Visual Studio Express 2015  (V 14.0.25431.01 Update 3)

Whaddado:

Important: Check if your Python-interpreter is really x64 or win32 like the following:
start a python session and enter:

import platform
platform.architecture()

If you have 32bit, consider this in your choice for target platform in VS.
when you add this %inline%-Snippet to pjsip-apps/src/swig/pjsua2.i, add it at the end of the file!
when starting the swig-command, omit the "-py3"-parameter, if you use Python 2.x
there is a little typo in Krisz' description, at "pjsua.py located under pjsip-apps/src/swig/python" -> of course pjsua2.py is meant. Do not use the pjsua.py.

finally copy _pjsua2.lib and pjsua2.py into \Lib\site-packages\ and the _pjsua2.pyd into \DLLs\ to make them available everywhere.
How to build PJSUA2 (swig) with Visual Studio 2015