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
d8cd9e2b
Commit
d8cd9e2b
authored
Mar 18, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
use 'util.remove_tree()' instead of 'nuke_release_tree()'.
parent
b0b51892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
command/sdist.py
command/sdist.py
+2
-16
No files found.
command/sdist.py
View file @
d8cd9e2b
...
...
@@ -10,9 +10,8 @@ import sys, os, string, re
import
fnmatch
from
types
import
*
from
glob
import
glob
from
shutil
import
rmtree
from
distutils.core
import
Command
from
distutils.util
import
newer
from
distutils.util
import
newer
,
remove_tree
from
distutils.text_file
import
TextFile
from
distutils.errors
import
DistutilsExecError
...
...
@@ -504,19 +503,6 @@ class sdist (Command):
# make_release_tree ()
def nuke_release_tree (self, base_dir):
try:
self.execute (rmtree, (base_dir,),
"
removing
%
s
" % base_dir)
except (IOError, OSError), exc:
if exc.filename:
msg = "
error
removing
%
s
:
%
s
(
%
s
)
" %
\
(base_dir, exc.strerror, exc.filename)
else:
msg = "
error
removing
%
s
:
%
s
" % (base_dir, exc.strerror)
self.warn (msg)
def make_tarball (self, base_dir, compress="
gzip
"):
# XXX GNU tar 1.13 has a nifty option to add a prefix directory.
...
...
@@ -601,7 +587,7 @@ class sdist (Command):
self
.
make_zipfile
(
base_dir
)
if
not
self
.
keep_tree
:
self
.
nuke_release_tree
(
base_dir
)
remove_tree
(
base_dir
,
self
.
verbose
,
self
.
dry_run
)
# class Dist
...
...
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