Source for packages that the CPython build process depends on.
It is currently expected that this will only be useful on Windows, and in any case you should never need to clone this repository unless you are updating its contents.
The procedure for updating the different source dependencies are similar. Below is an example for updating SQLite:
Fork and clone this repository.
Checkout a new branch off the
sqlite
branch. Assuming this repo is set as yourupstream
:git checkout -b <branch-name>-sqlite upstream/sqlite
Download SQLite source from sqlite.org.
Unzip it to the branch checked out in step 2.
Commit and push the changes.
Create the PR, with
sqlite
as the base branch.
Once the PR has been merged, tag the commit as
sqlite-<full version to be used in CPython's PCbuild/get_externals.bat>
.
For updating each project to be updated, follow the above instructions with
appropriate substitutions. For sqlite
, bzip2
, xz
, and zlib
,
that's it!
For openssl
, tcl
/tk
, and libffi
, builds of each should also be
checked into cpython-bin-deps
for use in the CPython Windows build. Each one has a prepare_<name>.bat
script in the cpython
PCbuild
directory that will take care of building
the project. Note, though, that builds checked into cpython-bin-deps
need
to be signed by the release signing key, so it is generally up to a member of
the release management team to create those builds.
bzip2
: https://www.sourceware.org/bzip2/downloads.htmllibffi
: https://github.com/libffi/libffimpdecimal
: https://www.bytereef.org/mpdecimal/download.htmlopenssl
: https://www.openssl.org/source/sqlite
: https://www.sqlite.org/download.htmltcl
/tk
: https://tcl.tk/software/tcltk/download.htmlxz
: https://xz.tukaani.org/xz-utils/zlib
: https://zlib.net/
Using the sqlite
branch as an example:
git checkout -b sqlite-tag upstream/sqlite git tag sqlite-3.21.0.0 # replace 3.21.0.0 with the correct version. git push --tags upstream