Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0d1bb8f1
Commit
0d1bb8f1
authored
Jul 19, 2004
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The binary layout of cfgdata has changed, so the magic number has to
change as well. Add a comment explaining this.
parent
325444ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Lib/distutils/command/bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+7
-1
No files found.
Lib/distutils/command/bdist_wininst.py
View file @
0d1bb8f1
...
...
@@ -253,8 +253,14 @@ class bdist_wininst (Command):
# empty pre-install script
cfgdata
=
cfgdata
+
"
\
0
"
file
.
write
(
cfgdata
)
# The 'magic number' 0x1234567B is used to make sure that the
# binary layout of 'cfgdata' is what the wininst.exe binary
# expects. If the layout changes, increment that number, make
# the corresponding changes to the wininst.exe sources, and
# recompile them.
header
=
struct
.
pack
(
"<iii"
,
0x1234567
A
,
# tag
0x1234567
B
,
# tag
len
(
cfgdata
),
# length
bitmaplen
,
# number of bytes in bitmap
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment