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
d916fa24
Commit
d916fa24
authored
Feb 05, 2018
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feed the hobgoblins (delint).
parent
cfb0d71a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
setuptools/command/bdist_egg.py
setuptools/command/bdist_egg.py
+8
-4
No files found.
setuptools/command/bdist_egg.py
View file @
d916fa24
...
@@ -39,6 +39,7 @@ def strip_module(filename):
...
@@ -39,6 +39,7 @@ def strip_module(filename):
filename
=
filename
[:
-
6
]
filename
=
filename
[:
-
6
]
return
filename
return
filename
def
sorted_walk
(
dir
):
def
sorted_walk
(
dir
):
"""Do os.walk in a reproducible way,
"""Do os.walk in a reproducible way,
independent of indeterministic filesystem readdir order
independent of indeterministic filesystem readdir order
...
@@ -48,6 +49,7 @@ def sorted_walk(dir):
...
@@ -48,6 +49,7 @@ def sorted_walk(dir):
files
.
sort
()
files
.
sort
()
yield
base
,
dirs
,
files
yield
base
,
dirs
,
files
def
write_stub
(
resource
,
pyfile
):
def
write_stub
(
resource
,
pyfile
):
_stub_template
=
textwrap
.
dedent
(
"""
_stub_template
=
textwrap
.
dedent
(
"""
def __bootstrap__():
def __bootstrap__():
...
@@ -252,15 +254,17 @@ class bdist_egg(Command):
...
@@ -252,15 +254,17 @@ class bdist_egg(Command):
pattern
=
r'(?P<name>.+)\
.(?P<m
agic>[^.]+)\
.pyc
'
pattern
=
r'(?P<name>.+)\
.(?P<m
agic>[^.]+)\
.pyc
'
m = re.match(pattern, name)
m = re.match(pattern, name)
path_new = os.path.join(base, os.pardir, m.group('
name
') + '
.
pyc
')
path_new = os.path.join(
log.info("Renaming file from [%s] to [%s]" % (path_old, path_new))
base, os.pardir, m.group('
name
') + '
.
pyc
')
log.info(
"Renaming file from [%s] to [%s]"
% (path_old, path_new))
try:
try:
os.remove(path_new)
os.remove(path_new)
except OSError:
except OSError:
pass
pass
os.rename(path_old, path_new)
os.rename(path_old, path_new)
def zip_safe(self):
def zip_safe(self):
safe = getattr(self.distribution, '
zip_safe
', None)
safe = getattr(self.distribution, '
zip_safe
', None)
if safe is not None:
if safe is not None:
...
...
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