I have systems where Python 3.6 is unavailable, thus I have written a custom compilation script to download & compile Python 3.6 including OpenCV 3.1 and so on.Although this works the compilation of Python is really slow (taking like 10-20 minutes on 4-Core CPUs). OpenCV compiles much faster (<= 1 minute).Especially Python's tests (before the actual compilation starts) take forever. test_time, test_timeit, ... (approx. 405 tests for Python 3.6.1) run with like 2-5% CPU usage.After unpacking the source files I run:./configure --enable-optimizationsmake -j4make altinstall prefix=/home/user/new_py exec-prefix=/home/user/new_pyThis follows the official recommendation from the Python documentation:The build process consists in the usual./configure  make  make installinvocations. Configuration options and caveats for specific Unix  platforms are extensively documented in the README.rst file in the root of the Python source tree.Warningmake install can overwrite or masquerade the python3 binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion.Is this normal? Can I speed up the compilation somehow?
Compilation of custom Python is very slow
python;compiling;python3