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
612eb09a
Commit
612eb09a
authored
Jul 23, 2004
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factored out a method to determine the final installer filename.
parent
6fa2474b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
Lib/distutils/command/bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+14
-9
No files found.
Lib/distutils/command/bdist_wininst.py
View file @
612eb09a
...
...
@@ -224,15 +224,7 @@ class bdist_wininst (Command):
cfgdata
=
self
.
get_inidata
()
if
self
.
target_version
:
# if we create an installer for a specific python version,
# it's better to include this in the name
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"%s.win32-py%s.exe"
%
(
fullname
,
self
.
target_version
))
else
:
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"%s.win32.exe"
%
fullname
)
installer_name
=
self
.
get_installer_filename
(
fullname
)
self
.
announce
(
"creating %s"
%
installer_name
)
if
bitmap
:
...
...
@@ -280,6 +272,19 @@ class bdist_wininst (Command):
# create_exe()
def
get_installer_filename
(
self
,
fullname
):
# Factored out to allow overriding in subclasses
if
self
.
target_version
:
# if we create an installer for a specific python version,
# it's better to include this in the name
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"%s.win32-py%s.exe"
%
(
fullname
,
self
.
target_version
))
else
:
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"%s.win32.exe"
%
fullname
)
# get_installer_filename()
def
get_exe_bytes
(
self
):
from
distutils.msvccompiler
import
get_build_version
# If a target-version other than the current version has been
...
...
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