Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
c1e60ed9
Commit
c1e60ed9
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
255d561a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
command/bdist_wininst.py
command/bdist_wininst.py
+14
-9
No files found.
command/bdist_wininst.py
View file @
c1e60ed9
...
...
@@ -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