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
bcb0e200
Kaydet (Commit)
bcb0e200
authored
Ock 24, 2003
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change the mode of scripts in the build/scripts* directory to
executable.
üst
c9713874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
build_scripts.py
Lib/distutils/command/build_scripts.py
+12
-0
No files found.
Lib/distutils/command/build_scripts.py
Dosyayı görüntüle @
bcb0e200
...
...
@@ -7,6 +7,7 @@ Implements the Distutils 'build_scripts' command."""
__revision__
=
"$Id$"
import
sys
,
os
,
re
from
stat
import
ST_MODE
from
distutils
import
sysconfig
from
distutils.core
import
Command
from
distutils.dep_util
import
newer
...
...
@@ -54,10 +55,12 @@ class build_scripts (Command):
line to refer to the current Python interpreter as we copy.
"""
self
.
mkpath
(
self
.
build_dir
)
outfiles
=
[]
for
script
in
self
.
scripts
:
adjust
=
0
script
=
convert_path
(
script
)
outfile
=
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
script
))
outfiles
.
append
(
outfile
)
if
not
self
.
force
and
not
newer
(
script
,
outfile
):
log
.
debug
(
"not copying
%
s (up-to-date)"
,
script
)
...
...
@@ -106,6 +109,15 @@ class build_scripts (Command):
f
.
close
()
self
.
copy_file
(
script
,
outfile
)
if
os
.
name
==
'posix'
:
for
file
in
outfiles
:
if
self
.
dry_run
:
log
.
info
(
"changing mode of
%
s"
,
file
)
else
:
mode
=
((
os
.
stat
(
file
)[
ST_MODE
])
|
0555
)
&
07777
log
.
info
(
"changing mode of
%
s to
%
o"
,
file
,
mode
)
os
.
chmod
(
file
,
mode
)
# copy_scripts ()
# class build_scripts
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