Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1df03405
Kaydet (Commit)
1df03405
authored
Mar 06, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1725737: ignore other VC directories other than CVS and SVN's too.
üst
1d136bb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
sourcedist.rst
Doc/distutils/sourcedist.rst
+5
-3
sdist.py
Lib/distutils/command/sdist.py
+2
-2
No files found.
Doc/distutils/sourcedist.rst
Dosyayı görüntüle @
1df03405
...
@@ -122,7 +122,8 @@ distribution:
...
@@ -122,7 +122,8 @@ distribution:
* all files in the Distutils "build" tree (default :file:`build/`)
* all files in the Distutils "build" tree (default :file:`build/`)
* all files in directories named :file:`RCS`, :file:`CVS` or :file:`.svn`
* all files in directories named :file:`RCS`, :file:`CVS`, :file:`.svn`,
:file:`.hg`, :file:`.git`, :file:`.bzr` or :file:`_darcs`
Now we have our complete list of files, which is written to the manifest for
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 archive(s).
future reference, and then used to build the source distribution archive(s).
...
@@ -156,8 +157,9 @@ source distribution:
...
@@ -156,8 +157,9 @@ source distribution:
previous two steps, so it's important that the ``prune`` command in the manifest
previous two steps, so it's important that the ``prune`` command in the manifest
template comes after the ``recursive-include`` command
template comes after the ``recursive-include`` command
#. exclude the entire :file:`build` tree, and any :file:`RCS`, :file:`CVS` and
#. exclude the entire :file:`build` tree, and any :file:`RCS`, :file:`CVS`,
:file:`.svn` directories
:file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` and :file:`_darcs`
directories
Just like in the setup script, file and directory names in the manifest template
Just like in the setup script, file and directory names in the manifest template
should always be slash-separated; the Distutils will take care of converting
should always be slash-separated; the Distutils will take care of converting
...
...
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
1df03405
...
@@ -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|\.svn
)/.*'
,
is_regex
=
1
)
self
.
filelist
.
exclude_pattern
(
r'
(^|/)(RCS|CVS|\.svn|\.hg|\.git|\.bzr|_darcs
)/.*'
,
is_regex
=
1
)
def
write_manifest
(
self
):
def
write_manifest
(
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