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
2958de38
Commit
2958de38
authored
Oct 14, 2017
by
Jason R. Coombs
Committed by
GitHub
Oct 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1172 from xoviat/patch-1
commands: dist_info: say something!
parents
4995726b
60270c24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
setuptools/command/dist_info.py
setuptools/command/dist_info.py
+5
-2
No files found.
setuptools/command/dist_info.py
View file @
2958de38
...
@@ -7,6 +7,7 @@ import os
...
@@ -7,6 +7,7 @@ import os
import
shutil
import
shutil
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils
import
log
class
dist_info
(
Command
):
class
dist_info
(
Command
):
...
@@ -28,10 +29,12 @@ class dist_info(Command):
...
@@ -28,10 +29,12 @@ class dist_info(Command):
egg_info
=
self
.
get_finalized_command
(
'egg_info'
)
egg_info
=
self
.
get_finalized_command
(
'egg_info'
)
egg_info
.
run
()
egg_info
.
run
()
dist_info_dir
=
egg_info
.
egg_info
[:
-
len
(
'.egg-info'
)]
+
'.dist-info'
dist_info_dir
=
egg_info
.
egg_info
[:
-
len
(
'.egg-info'
)]
+
'.dist-info'
log
.
info
(
"creating '{}'"
.
format
(
os
.
path
.
abspath
(
dist_info_dir
)))
bdist_wheel
=
self
.
get_finalized_command
(
'bdist_wheel'
)
bdist_wheel
=
self
.
get_finalized_command
(
'bdist_wheel'
)
bdist_wheel
.
egg2dist
(
egg_info
.
egg_info
,
dist_info_dir
)
bdist_wheel
.
egg2dist
(
egg_info
.
egg_info
,
dist_info_dir
)
if
self
.
egg_base
:
if
self
.
egg_base
:
shutil
.
move
(
dist_info_dir
,
os
.
path
.
join
(
destination
=
os
.
path
.
join
(
self
.
egg_base
,
dist_info_dir
)
self
.
egg_base
,
dist_info_dir
))
log
.
info
(
"creating '{}'"
.
format
(
os
.
path
.
abspath
(
destination
)))
shutil
.
move
(
dist_info_dir
,
destination
)
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