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
dcc86204
Kaydet (Commit)
dcc86204
authored
May 25, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Include all licenses of the packages that we include.
üst
5d7d6c37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
msi.py
Tools/msi/msi.py
+22
-1
No files found.
Tools/msi/msi.py
Dosyayı görüntüle @
dcc86204
...
...
@@ -840,6 +840,26 @@ def extract_msvcr90():
result
.
append
((
f
,
kw
))
return
result
def
generate_license
():
import
shutil
,
glob
out
=
open
(
"LICENSE.txt"
,
"w"
)
shutil
.
copyfileobj
(
open
(
os
.
path
.
join
(
srcdir
,
"LICENSE"
)),
out
)
for
dir
,
file
in
((
"bzip2"
,
"LICENSE"
),
(
"db"
,
"LICENSE"
),
(
"openssl"
,
"LICENSE"
),
(
"tcl"
,
"license.terms"
),
(
"tk"
,
"license.terms"
)):
out
.
write
(
"
\n
This copy of Python includes a copy of
%
s, which is licensed under the following terms:
\n\n
"
%
dir
)
dirs
=
glob
.
glob
(
srcdir
+
"/../"
+
dir
+
"-*"
)
if
not
dirs
:
raise
ValueError
,
"Could not find "
+
srcdir
+
"/../"
+
dir
+
"-*"
if
len
(
dirs
)
>
2
:
raise
ValueError
,
"Multiple copies of "
+
dir
dir
=
dirs
[
0
]
shutil
.
copyfileobj
(
open
(
os
.
path
.
join
(
dir
,
file
)),
out
)
out
.
close
()
class
PyDirectory
(
Directory
):
"""By default, all components in the Python installer
can run from source."""
...
...
@@ -860,7 +880,8 @@ def add_files(db):
root
.
add_file
(
"
%
s/w9xpopen.exe"
%
PCBUILD
)
root
.
add_file
(
"README.txt"
,
src
=
"README"
)
root
.
add_file
(
"NEWS.txt"
,
src
=
"Misc/NEWS"
)
root
.
add_file
(
"LICENSE.txt"
,
src
=
"LICENSE"
)
generate_license
()
root
.
add_file
(
"LICENSE.txt"
,
src
=
os
.
path
.
abspath
(
"LICENSE.txt"
))
root
.
start_component
(
"python.exe"
,
keyfile
=
"python.exe"
)
root
.
add_file
(
"
%
s/python.exe"
%
PCBUILD
)
root
.
start_component
(
"pythonw.exe"
,
keyfile
=
"pythonw.exe"
)
...
...
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