Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a47ca08a
Commit
a47ca08a
authored
Aug 20, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27819: Simply default to gztar for sdist formats by default on all platforms.
parent
3766572a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
Lib/distutils/command/sdist.py
Lib/distutils/command/sdist.py
+1
-11
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/command/sdist.py
View file @
a47ca08a
...
...
@@ -91,9 +91,6 @@ class sdist(Command):
negative_opt
=
{
'no-defaults'
:
'use-defaults'
,
'no-prune'
:
'prune'
}
default_format
=
{
'posix'
:
'gztar'
,
'nt'
:
'zip'
}
sub_commands
=
[(
'check'
,
checking_metadata
)]
def
initialize_options
(
self
):
...
...
@@ -110,7 +107,7 @@ class sdist(Command):
self
.
manifest_only
=
0
self
.
force_manifest
=
0
self
.
formats
=
None
self
.
formats
=
[
'gztar'
]
self
.
keep_temp
=
0
self
.
dist_dir
=
None
...
...
@@ -126,13 +123,6 @@ class sdist(Command):
self
.
template
=
"MANIFEST.in"
self
.
ensure_string_list
(
'formats'
)
if
self
.
formats
is
None
:
try
:
self
.
formats
=
[
self
.
default_format
[
os
.
name
]]
except
KeyError
:
raise
DistutilsPlatformError
(
"don't know how to create source distributions "
"on platform %s"
%
os
.
name
)
bad_format
=
archive_util
.
check_archive_formats
(
self
.
formats
)
if
bad_format
:
...
...
Misc/NEWS
View file @
a47ca08a
...
...
@@ -20,6 +20,9 @@ Core and Builtins
Library
-------
- Issue #27819: In distutils sdists, simply produce the "gztar" (gzipped tar
format) distributions on all platforms unless "formats" is supplied.
- Issue #2466: posixpath.ismount now correctly recognizes mount points which
the user does not have permission to access.
...
...
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