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
7b7c594c
Commit
7b7c594c
authored
Mar 01, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delint bdist_wininst
parent
acad569c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
33 deletions
+5
-33
setuptools/command/bdist_wininst.py
setuptools/command/bdist_wininst.py
+5
-33
No files found.
setuptools/command/bdist_wininst.py
View file @
7b7c594c
import
os
from
distutils.command.bdist_wininst
import
bdist_wininst
as
_bdist_wininst
import
os
,
sys
class
bdist_wininst
(
_bdist_wininst
):
_good_upload
=
_bad_upload
=
None
def
create_exe
(
self
,
arcname
,
fullname
,
bitmap
=
None
):
_bdist_wininst
.
create_exe
(
self
,
arcname
,
fullname
,
bitmap
)
installer_name
=
self
.
get_installer_filename
(
fullname
)
installer_name
=
self
.
get_installer_filename
(
fullname
)
if
self
.
target_version
:
pyversion
=
self
.
target_version
# fix 2.5+ bdist_wininst ignoring --target-version spec
...
...
@@ -14,7 +14,7 @@ class bdist_wininst(_bdist_wininst):
else
:
pyversion
=
'any'
self
.
_good_upload
=
(
'bdist_wininst'
,
pyversion
,
installer_name
)
def
_fix_upload_names
(
self
):
good
,
bad
=
self
.
_good_upload
,
self
.
_bad_upload
dist_files
=
getattr
(
self
.
distribution
,
'dist_files'
,
[])
...
...
@@ -23,7 +23,7 @@ class bdist_wininst(_bdist_wininst):
if
good
not
in
dist_files
:
dist_files
.
append
(
good
)
def
reinitialize_command
(
self
,
command
,
reinit_subcommands
=
0
):
def
reinitialize_command
(
self
,
command
,
reinit_subcommands
=
0
):
cmd
=
self
.
distribution
.
reinitialize_command
(
command
,
reinit_subcommands
)
if
command
in
(
'install'
,
'install_lib'
):
...
...
@@ -38,7 +38,6 @@ class bdist_wininst(_bdist_wininst):
finally
:
self
.
_is_running
=
False
if
not
hasattr
(
_bdist_wininst
,
'get_installer_filename'
):
def
get_installer_filename
(
self
,
fullname
):
# Factored out to allow overriding in subclasses
...
...
@@ -47,36 +46,9 @@ class bdist_wininst(_bdist_wininst):
# 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
))
(
fullname
,
self
.
target_version
))
else
:
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"%s.win32.exe"
%
fullname
)
return
installer_name
# get_installer_filename()
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