Shifting from python to pypy
<p>I am currently working on a project where the source files are all written in python. The files/modules are currently being run on a python interpreter(CPython). I want to use PyPy interpreter instead as i see it is much more efficient. Is there way how I can change the interpreter from the CMakeLists.txt file so the build process takes in PyPy interpreter instead of the python default interpreter? 
I have a project named P and it contains a CMakeLists.txt file. </p>

<p>When it needs python interpreter, <code>CMakeLists.txt</code> usually uses <a href="https://cmake.org/cmake/help/v3.0/module/FindPythonInterp.html" rel="nofollow">find_package(PythonInterp)</a>, which searches python executable and sets <code>PYTHON_EXECUTABLE</code> to the path where it is located.</p>

<p>You may set this <em>cache</em> variable when call <code>cmake</code>:</p>

<pre><code>cmake -DPYTHON_EXECUTABLE=&lt;path-to-PyPy&gt; ...
</code></pre>

<p>so it will not search executable but use one you provide.</p>

python cmake pypy