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
0e305557
Commit
0e305557
authored
Mar 06, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of r61263:
#1725737: ignore other VC directories other than CVS and SVN's too.
parent
bc89897e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
Doc/dist/dist.tex
Doc/dist/dist.tex
+4
-2
Lib/distutils/command/sdist.py
Lib/distutils/command/sdist.py
+2
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/dist/dist.tex
View file @
0e305557
...
@@ -1213,7 +1213,8 @@ fully processed the manifest template, we remove files that should not
...
@@ -1213,7 +1213,8 @@ fully processed the manifest template, we remove files that should not
be included in the source distribution:
be included in the source distribution:
\begin{itemize}
\begin{itemize}
\item
all files in the Distutils ``build'' tree (default
\file
{
build/
}
)
\item
all files in the Distutils ``build'' tree (default
\file
{
build/
}
)
\item
all files in directories named
\file
{
RCS
}
,
\file
{
CVS
}
or
\file
{
.svn
}
\item
all files in directories named
\file
{
RCS
}
,
\file
{
CVS
}
,
\file
{
.svn
}
,
\file
{
.hg
}
,
\file
{
.git
}
,
\file
{
.bzr
}
, or
\file
{
\_
darcs
}
\end{itemize}
\end{itemize}
Now we have our complete list of files, which is written to the manifest
Now we have our complete list of files, which is written to the manifest
for future reference, and then used to build the source distribution
for future reference, and then used to build the source distribution
...
@@ -1246,7 +1247,8 @@ Distutils source distribution:
...
@@ -1246,7 +1247,8 @@ Distutils source distribution:
\code
{
prune
}
command in the manifest template comes after the
\code
{
prune
}
command in the manifest template comes after the
\code
{
recursive-include
}
command
\code
{
recursive-include
}
command
\item
exclude the entire
\file
{
build
}
tree, and any
\file
{
RCS
}
,
\item
exclude the entire
\file
{
build
}
tree, and any
\file
{
RCS
}
,
\file
{
CVS
}
and
\file
{
.svn
}
directories
\file
{
CVS
}
,
\file
{
.svn
}
,
\file
{
.hg
}
,
\file
{
.git
}
,
\file
{
.bzr
}
, or
\file
{
\_
darcs
}
directories
\end{enumerate}
\end{enumerate}
Just like in the setup script, file and directory names in the manifest
Just like in the setup script, file and directory names in the manifest
template should always be slash-separated; the Distutils will take care
template should always be slash-separated; the Distutils will take care
...
...
Lib/distutils/command/sdist.py
View file @
0e305557
...
@@ -347,14 +347,14 @@ class sdist (Command):
...
@@ -347,14 +347,14 @@ class sdist (Command):
* the build tree (typically "build")
* the build tree (typically "build")
* the release tree itself (only an issue if we ran "sdist"
* the release tree itself (only an issue if we ran "sdist"
previously with --keep-temp, or it aborted)
previously with --keep-temp, or it aborted)
* any RCS, CVS
and .svn
directories
* any RCS, CVS
, .svn, .hg, .git, .bzr, _darcs
directories
"""
"""
build
=
self
.
get_finalized_command
(
'build'
)
build
=
self
.
get_finalized_command
(
'build'
)
base_dir
=
self
.
distribution
.
get_fullname
()
base_dir
=
self
.
distribution
.
get_fullname
()
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
build
.
build_base
)
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
build
.
build_base
)
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
base_dir
)
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
base_dir
)
self
.
filelist
.
exclude_pattern
(
r'
/(RCS|CVS|\
.s
vn
)/.*'
,
is_regex
=
1
)
self
.
filelist
.
exclude_pattern
(
r'
(^|/)(RCS|CVS|\
.s
vn|\
.hg|
\.git|\
.
bzr|_darcs
)/.*'
,
is_regex
=
1
)
def
write_manifest
(
self
):
def
write_manifest
(
self
):
...
...
Misc/NEWS
View file @
0e305557
...
@@ -15,6 +15,9 @@ Core and builtins
...
@@ -15,6 +15,9 @@ Core and builtins
Library
Library
-------
-------
- Bug #1725737: In distutil'
s
sdist
,
exclude
RCS
,
CVS
etc
.
also
in
the
root
directory
,
and
also
exclude
.
hg
,
.
git
,
.
bzr
,
and
_darcs
.
-
Bug
#
1389051
:
imaplib
causes
excessive
memory
fragmentation
when
reading
-
Bug
#
1389051
:
imaplib
causes
excessive
memory
fragmentation
when
reading
large
messages
.
large
messages
.
...
...
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