Steps:
- Clone the repo
git clone https://github.com/Nuitka/Nuitka-Python.git
to download a copy of the repo into theNuitka-Python
folder.
- Built it from source by running these commands
cd Nuitka-Python
to navigate into the Nuitka-Python folder you just cloned.\build.bat -x64
to start the build process (note there arebuild.sh
andbuild.mac.sh
scripts for Linux and Mac)
- After the build completes you will have a newly build version of Nuitka-Python in the
output
folder.
Note that you probably want to make a copy of this folder for each project, rather than using it directly, since it self-modifies.
Note: It is a good idea to activate the visual studio developer shell for x64 native (both for building NP and also for running the built NP python.exe when pip install
ing a package, since it needs to use the same compiler):
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
- Make a copy of your built nuitka-python:
- Copy the
output
folder to another folder likemy_project_nuitka_static
.