This flag turns on variousĮxtra sanity checks which help catch common issues. Which creates what is known as a “pydebug” build. Misc/SpecialBuilds.txt file, the most critical one is the Py_DEBUG flag While all of the known flags can be found in the Patches for the documentation can be made from the same repository seeĬPython provides several compilation flags which help with debugging various
(If you change C code, you will need to recompile the
#GETTING STARTED WITH PYTHON ON MAC CODE#
This means that if you edit CPython’s source code in your working copy,Ĭhanges to Python code will be picked up by the interpreter for immediate You will need to re-compile CPython when you do such an update.ĭo note that CPython will notice that it is being run from a working copy. For instance, to checkout a working copy of Python 3.8, I.e., a version in maintenance mode, you can checkoutĪ release branch. If you want a working copy of an already-released version of Python, ( origin) and the official CPython repository ( upstream). In the cpython directory and two remotes that refer to your own GitHub fork If you did everything correctly, you should now have a copy of the code Origin (fetch) origin (push) upstream (fetch) upstream (push) When asked where to fork the repository, choose to fork it to your username.Ĭlone your GitHub fork (replace with your username):
You will only need to execute these steps once: To get a copy of the source code you shouldįork the Python repository on GitHub, create a localĬlone of your personal fork, and configure the remotes. You may also want to consider a graphical clientĪs this will allow you to interact with GitHub without typing a usernameĪnd password each time you execute a command, such as git pull, Or the git project instructions for step-by-step git is easily available for all common operating systems.Īs the CPython repo is hosted on GitHub, please refer to either the The gitĬommand line program is named git this is also used to refer to git
#GETTING STARTED WITH PYTHON ON MAC INSTALL#
Install git #ĬPython is developed using git for version control. Installing git to submitting a pull request. The Quick Reference gives brief summary of the process from