Skip to content

Commit 1fec6af

Browse files
committed
COMP: Encode the pygccxml __version__
We do not have package metadata to pull from in the vendored version.
1 parent e4b4dfa commit 1fec6af

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Modules/ThirdParty/pygccxml/src/UpdatepygccxmlFromUpstream.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ upstream_sha="aa8661e4efa276f0af034d858e0be1cd1db4af20"
2828
# EDIT THIS SCRIPT to change the hash tag at which to begin the
2929
# next update...
3030
#
31-
# This merge was done on: July 27th, 2020
32-
git branch pygccxml-upstream f8322d75a190d6d393336ffd5e0d8bd23bbc83e5
31+
# This merge was done on: August 23rd, 2023
32+
git branch pygccxml-upstream 6637e8709b7779d19cd6089d3c25b193fd794b7c
3333

3434
#
3535
# Make a temp directory to handle the import of the upstream source
@@ -96,5 +96,9 @@ echo to get the commit hash from which the pygccxml-upstream
9696
echo branch must be started on the next update.
9797
echo "---------------------------------"
9898
echo edit the line \"git branch pygccxml-upstream\" above.
99-
echo Once you have commited this change to the UpdatepygccxmlFromUpstream.sh script,
99+
echo "---------------------------------"
100+
echo Also update the __version__ in pygccxml/__init__.py
101+
echo "---------------------------------"
102+
echo Once you have commited this change to the
103+
echo UpdatepygccxmlFromUpstream.sh script and __init__.py,
100104
echo use \"git review-push\" to push this new update branch back to GitHub.

Modules/ThirdParty/pygccxml/src/pygccxml/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@
5151
else:
5252
from importlib import metadata
5353

54-
__version__ = metadata.version("pygccxml")
54+
# Begin ITK edit
55+
__version__ = "2.4.0"
56+
# __version__ = metadata.version("pygccxml")

0 commit comments

Comments
 (0)