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
22dd73a7
Kaydet (Commit)
22dd73a7
authored
Eki 14, 2016
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add case-sensitive file comparison for detecting/adding standard default files.
üst
00e3cea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
sdist.py
Lib/distutils/command/sdist.py
+20
-2
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
22dd73a7
...
...
@@ -32,6 +32,24 @@ def show_formats():
FancyGetopt
(
formats
)
.
print_help
(
"List of available source distribution formats:"
)
def
cs_path_exists
(
fspath
):
"""
Case-sensitive path existence check
>>> cs_path_exists(__file__)
True
>>> cs_path_exists(__file__.upper())
False
"""
if
not
os
.
path
.
exists
(
fspath
):
return
False
# make absolute so we always have a directory
abspath
=
os
.
path
.
abspath
(
fspath
)
directory
,
filename
=
os
.
path
.
split
(
abspath
)
return
filename
in
os
.
listdir
(
directory
)
class
sdist
(
Command
):
description
=
"create a source distribution (tarball, zip file, etc.)"
...
...
@@ -235,7 +253,7 @@ class sdist(Command):
alts
=
fn
got_it
=
False
for
fn
in
alts
:
if
os
.
path
.
exists
(
fn
):
if
cs_path_
exists
(
fn
):
got_it
=
True
self
.
filelist
.
append
(
fn
)
break
...
...
@@ -244,7 +262,7 @@ class sdist(Command):
self
.
warn
(
"standard file not found: should have one of "
+
', '
.
join
(
alts
))
else
:
if
os
.
path
.
exists
(
fn
):
if
cs_path_
exists
(
fn
):
self
.
filelist
.
append
(
fn
)
else
:
self
.
warn
(
"standard file '
%
s' not found"
%
fn
)
...
...
Misc/NEWS
Dosyayı görüntüle @
22dd73a7
...
...
@@ -85,6 +85,11 @@ Core and Builtins
Library
-------
- Distutils.sdist now looks for README and setup.py files with case
sensitivity. This behavior matches that found in Setuptools 6.0 and
later. See `setuptools 100
<https://github.com/pypa/setuptools/issues/100>`_ for rationale.
- Issue #24452: Make webbrowser support Chrome on Mac OS X.
- Issue #20766: Fix references leaked by pdb in the handling of SIGINT
...
...
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