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
1d6a16bf
Commit
1d6a16bf
authored
Sep 04, 2008
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #3160: the "bdist_wininst" distutils command didn't work.
Reviewed by Trent Nelson.
parent
95aee626
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Lib/distutils/command/bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+9
-4
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/distutils/command/bdist_wininst.py
View file @
1d6a16bf
...
...
@@ -260,13 +260,18 @@ class bdist_wininst(Command):
cfgdata
=
cfgdata
.
encode
(
"mbcs"
)
# Append the pre-install script
cfgdata
=
cfgdata
+
"
\
0
"
cfgdata
=
cfgdata
+
b
"
\
0
"
if
self
.
pre_install_script
:
script_data
=
open
(
self
.
pre_install_script
,
"r"
).
read
()
cfgdata
=
cfgdata
+
script_data
+
"
\
n
\
0
"
# We need to normalize newlines, so we open in text mode and
# convert back to bytes. "latin1" simply avoids any possible
# failures.
with
open
(
self
.
pre_install_script
,
"r"
,
encoding
=
"latin1"
)
as
script
:
script_data
=
script
.
read
().
encode
(
"latin1"
)
cfgdata
=
cfgdata
+
script_data
+
b"
\
n
\
0
"
else
:
# empty pre-install script
cfgdata
=
cfgdata
+
"
\
0
"
cfgdata
=
cfgdata
+
b
"
\
0
"
file
.
write
(
cfgdata
)
# The 'magic number' 0x1234567B is used to make sure that the
...
...
Misc/NEWS
View file @
1d6a16bf
...
...
@@ -77,6 +77,8 @@ C API
Library
-------
- Issue #3160: the "bdist_wininst" distutils command didn't work.
- Issue #1658: tkinter changes dict size during iteration in both
tkinter.BaseWidget and tkinter.scrolledtext.ScrolledText.
...
...
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