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
8d8e7a32
Kaydet (Commit)
8d8e7a32
authored
Tem 29, 2001
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do convert_path() on script paths (now PyXML builds out of the box
under MacOS.)
üst
8e02fb15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
build_scripts.py
Lib/distutils/command/build_scripts.py
+2
-0
No files found.
Lib/distutils/command/build_scripts.py
Dosyayı görüntüle @
8d8e7a32
...
...
@@ -9,6 +9,7 @@ __revision__ = "$Id$"
import
sys
,
os
,
re
from
distutils.core
import
Command
from
distutils.dep_util
import
newer
from
distutils.util
import
convert_path
# check if Python is called on the first line with this expression
first_line_re
=
re
.
compile
(
r'^#!.*python(\s+.*)?'
)
...
...
@@ -54,6 +55,7 @@ class build_scripts (Command):
self
.
mkpath
(
self
.
build_dir
)
for
script
in
self
.
scripts
:
adjust
=
0
script
=
convert_path
(
script
)
outfile
=
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
script
))
if
not
self
.
force
and
not
newer
(
script
,
outfile
):
...
...
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