CPython - Setting Up¶
Development¶
./configure --with-pydebug && make -j./python.exe -m test -j3
Compile¶
Misc/SpecialBuilds.txtcompilation flagsPy_DEBUGuse for “pydebug” build to catch common issues
Clang¶
Handy CFLAGS
-Wno-unused-value-Wno-empty-body-Qunused-arguments-Wno-parentheses-equalityif using clang with ccache-no-integrated-asif using LLVM 2.8 which is needed to buildctypemodule
Dependencies¶
xcode-select --install
brew install openssl xz
./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
make -s -j2
make¶
The CPython Makefile is generated when you run ./configure.
Makefile.pre is used to generate a Makefile specific to your compile system
[Generic C] Handy compile options¶
-gdebug-Wallwarnings all-O3or-O1optimization levels