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
0dc98e60
Commit
0dc98e60
authored
Sep 25, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed '--keep-tree' option to '--keep-temp', for consistency
with the bdist_* commands.
parent
0881101d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
command/sdist.py
command/sdist.py
+6
-6
No files found.
command/sdist.py
View file @
0dc98e60
...
...
@@ -59,7 +59,7 @@ class sdist (Command):
"forcibly regenerate the manifest and carry on as usual"
),
(
'formats='
,
None
,
"formats for source distribution (comma-separated list)"
),
(
'keep-t
ree
'
,
'k'
,
(
'keep-t
emp
'
,
'k'
,
"keep the distribution tree around after creating "
+
"archive file(s)"
),
(
'dist-dir='
,
'd'
,
...
...
@@ -69,7 +69,7 @@ class sdist (Command):
boolean_options
=
[
'use-defaults'
,
'prune'
,
'manifest-only'
,
'force-manifest'
,
'keep-t
ree
'
]
'keep-t
emp
'
]
help_options
=
[
(
'help-formats'
,
None
,
...
...
@@ -97,7 +97,7 @@ class sdist (Command):
self
.
force_manifest
=
0
self
.
formats
=
None
self
.
keep_t
ree
=
0
self
.
keep_t
emp
=
0
self
.
dist_dir
=
None
self
.
archive_files
=
None
...
...
@@ -357,7 +357,7 @@ class sdist (Command):
by 'read_template()', but really don't belong there:
* the build tree (typically "build")
* the release tree itself (only an issue if we ran "sdist"
previously with --keep-t
ree
, or it aborted)
previously with --keep-t
emp
, or it aborted)
* any RCS or CVS directories
"""
build
=
self
.
get_finalized_command
(
'build'
)
...
...
@@ -447,7 +447,7 @@ class sdist (Command):
tree with 'make_release_tree()'; then, we create all required
archive files (according to 'self.formats') from the release tree.
Finally, we clean up by blowing away the release tree (unless
'self.keep_t
ree
' is true). The list of archive files created is
'self.keep_t
emp
' is true). The list of archive files created is
stored so it can be retrieved later by 'get_archive_files()'.
"""
# Don't warn about missing meta-data here -- should be (and is!)
...
...
@@ -463,7 +463,7 @@ class sdist (Command):
self
.
archive_files
=
archive_files
if
not
self
.
keep_t
ree
:
if
not
self
.
keep_t
emp
:
dir_util
.
remove_tree
(
base_dir
,
self
.
verbose
,
self
.
dry_run
)
def
get_archive_files
(
self
):
...
...
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