-
-
Notifications
You must be signed in to change notification settings - Fork 47
Document how to update SQLite source dependencies. #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
cpython-source-deps | ||
=================== | ||
|
||
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. | ||
|
||
.. contents:: | ||
|
||
Updating Source Dependencies | ||
---------------------------- | ||
|
||
The procedure for updating the different source dependencies are similar. Below | ||
is an example for updating SQLite:: | ||
|
||
|
||
1. Fork and clone this repository. | ||
|
||
2. Checkout a new branch off the ``sqlite`` branch. Assuming this repo is set | ||
as your ``upstream``:: | ||
|
||
git checkout -b <branch-name>-sqlite upstream/sqlite | ||
|
||
3. Download SQLite source from `sqlite.org <https://www.sqlite.org>`_. | ||
|
||
4. Unzip it to the branch checked out in step 2. | ||
|
||
5. Commit and push the changes. | ||
|
||
6. 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 ``sqlite``, ``bzip2``, ``xz``, and ``zlib``, follow the above | ||
instructions. | ||
|
||
For ``tcl`` and ``tk``, after step 5, `cpython-bin-deps | ||
<https://github.com/python/cpython-bin-deps/>`_ | ||
needs to be updated. | ||
|
||
For ``openssl``, step 5 will be more complicated :) | ||
|
||
|
||
Download links | ||
-------------- | ||
|
||
- ``sqlite``: https://www.sqlite.org/download.html | ||
- ``bzip2``: http://www.bzip.org/downloads.html | ||
- ``xz``: https://tukaani.org/xz/ | ||
- ``zlib``: https://zlib.net/ | ||
- ``tcl``/``tk``: https://tcl.tk/software/tcltk/download.html | ||
- ``openssl``: https://www.openssl.org/source/ | ||
|
||
|
||
Tagging the commit | ||
------------------ | ||
|
||
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 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For each of these, we can link to the source site:
sqlite: https://www.sqlite.org/download.html
bzip2: http://www.bzip.org/downloads.html
xz: https://tukaani.org/xz/
zlib: https://zlib.net/
tcl/tk: https://tcl.tk/software/tcltk/download.html
openssl: https://www.openssl.org/source/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I added a "Download links" section listing the above.