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
2b9e43f8
Kaydet (Commit)
2b9e43f8
authored
Nis 14, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Coerce all paths in the manifest template to the local path syntax with
'native_path()'.
üst
1c79330e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sdist.py
Lib/distutils/command/sdist.py
+7
-7
No files found.
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
2b9e43f8
...
...
@@ -12,7 +12,7 @@ from types import *
from
glob
import
glob
from
distutils.core
import
Command
from
distutils.util
import
\
newer
,
remove_tree
,
make_tarball
,
make_zipfile
,
create_tree
newer
,
create_tree
,
remove_tree
,
make_tarball
,
make_zipfile
,
native_path
from
distutils.text_file
import
TextFile
from
distutils.errors
import
DistutilsExecError
...
...
@@ -317,7 +317,7 @@ class sdist (Command):
action
)
continue
pattern
=
words
[
1
]
pattern
=
native_path
(
words
[
1
])
elif
action
in
(
'recursive-include'
,
'recursive-exclude'
):
if
len
(
words
)
!=
3
:
...
...
@@ -327,7 +327,7 @@ class sdist (Command):
action
)
continue
(
dir
,
pattern
)
=
words
[
1
:
3
]
(
dir
,
pattern
)
=
map
(
native_path
,
words
[
1
:
3
])
elif
action
in
(
'graft'
,
'prune'
):
if
len
(
words
)
!=
2
:
...
...
@@ -337,7 +337,7 @@ class sdist (Command):
action
)
continue
dir_pattern
=
words
[
1
]
dir_pattern
=
native_path
(
words
[
1
])
else
:
template
.
warn
(
"invalid manifest template line: "
+
...
...
@@ -347,9 +347,9 @@ class sdist (Command):
# OK, now we know that the action is valid and we have the
# right number of words on the line for that action -- so we
# can proceed with minimal error-checking. Also, we have
# defined either
'patter', 'dir' and 'pattern'
, or
#
'dir_pattern' -- so we don't have to spend any time digging
# stuff up out of 'words'.
# defined either
(pattern), (dir and pattern)
, or
#
(dir_pattern) -- so we don't have to spend any time
#
digging
stuff up out of 'words'.
if
action
==
'include'
:
print
"include"
,
pattern
...
...
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