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
2f50e908
Commit
2f50e908
authored
May 31, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch 959726: sdist versus SVN
The disutils sdist command now ignores .svn directories.
parent
92816de1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
Doc/dist/dist.tex
Doc/dist/dist.tex
+3
-3
Lib/distutils/command/sdist.py
Lib/distutils/command/sdist.py
+2
-2
Misc/NEWS
Misc/NEWS
+7
-3
No files found.
Doc/dist/dist.tex
View file @
2f50e908
...
...
@@ -1066,7 +1066,7 @@ fully processed the manifest template, we remove files that should not
be included in the source distribution:
\begin{itemize}
\item
all files in the Distutils ``build'' tree (default
\file
{
build/
}
)
\item
all files in directories named
\file
{
RCS
}
or
\file
{
CVS
}
\item
all files in directories named
\file
{
RCS
}
,
\file
{
CVS
}
or
\file
{
.svn
}
\end{itemize}
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
...
...
@@ -1098,8 +1098,8 @@ Distutils source distribution:
included by the previous two steps, so it's important that the
\code
{
prune
}
command in the manifest template comes after the
\code
{
recursive-include
}
command
\item
exclude the entire
\file
{
build
}
tree, and any
\file
{
RCS
}
or
\file
{
CVS
}
directories
\item
exclude the entire
\file
{
build
}
tree, and any
\file
{
RCS
}
,
\file
{
CVS
}
and
\file
{
.svn
}
directories
\end{enumerate}
Just like in the setup script, file and directory names in the manifest
template should always be slash-separated; the Distutils will take care
...
...
Lib/distutils/command/sdist.py
View file @
2f50e908
...
...
@@ -347,14 +347,14 @@ class sdist (Command):
* the build tree (typically "build")
* the release tree itself (only an issue if we ran "sdist"
previously with --keep-temp, or it aborted)
* any RCS
or CVS
directories
* any RCS
, CVS and .svn
directories
"""
build
=
self
.
get_finalized_command
(
'build'
)
base_dir
=
self
.
distribution
.
get_fullname
()
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
build
.
build_base
)
self
.
filelist
.
exclude_pattern
(
None
,
prefix
=
base_dir
)
self
.
filelist
.
exclude_pattern
(
r'/(RCS|CVS)/.*'
,
is_regex
=
1
)
self
.
filelist
.
exclude_pattern
(
r'/(RCS|CVS
|\
.s
vn
)/.*'
,
is_regex
=
1
)
def
write_manifest
(
self
):
...
...
Misc/NEWS
View file @
2f50e908
...
...
@@ -311,6 +311,10 @@ Extension modules
Library
-------
-
The
distutils
sdist
command
now
ignores
all
.
svn
directories
,
in
addition
to
CVS
and
RCS
directories
.
.
svn
directories
hold
administrative
files
for
the
Subversion
source
control
system
.
-
Added
a
new
module
:
cookielib
.
Automatic
cookie
handling
for
HTTP
clients
.
Also
,
support
for
cookielib
has
been
added
to
urllib2
,
so
urllib2
.
urlopen
()
can
transparently
handle
cookies
.
...
...
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