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
367c79a4
Kaydet (Commit)
367c79a4
authored
May 25, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Create grammar pickle files on installation; remove them on uninstallation.
üst
f2e23d03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
msi.py
Tools/msi/msi.py
+6
-0
msilib.py
Tools/msi/msilib.py
+5
-0
No files found.
Tools/msi/msi.py
Dosyayı görüntüle @
367c79a4
...
@@ -382,6 +382,7 @@ def add_ui(db):
...
@@ -382,6 +382,7 @@ def add_ui(db):
])
])
compileargs
=
r'-Wi "[TARGETDIR]Lib\compileall.py" -f -x bad_coding|badsyntax|site-packages|py3_ "[TARGETDIR]Lib"'
compileargs
=
r'-Wi "[TARGETDIR]Lib\compileall.py" -f -x bad_coding|badsyntax|site-packages|py3_ "[TARGETDIR]Lib"'
lib2to3args
=
r'-c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"'
# See "CustomAction Table"
# See "CustomAction Table"
add_data
(
db
,
"CustomAction"
,
[
add_data
(
db
,
"CustomAction"
,
[
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
...
@@ -395,6 +396,7 @@ def add_ui(db):
...
@@ -395,6 +396,7 @@ def add_ui(db):
# See "Custom Action Type 18"
# See "Custom Action Type 18"
(
"CompilePyc"
,
18
,
"python.exe"
,
compileargs
),
(
"CompilePyc"
,
18
,
"python.exe"
,
compileargs
),
(
"CompilePyo"
,
18
,
"python.exe"
,
"-O "
+
compileargs
),
(
"CompilePyo"
,
18
,
"python.exe"
,
"-O "
+
compileargs
),
(
"CompileGrammar"
,
18
,
"python.exe"
,
lib2to3args
),
])
])
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
...
@@ -424,12 +426,14 @@ def add_ui(db):
...
@@ -424,12 +426,14 @@ def add_ui(db):
(
"UpdateEditIDLE"
,
None
,
1050
),
(
"UpdateEditIDLE"
,
None
,
1050
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
])
])
add_data
(
db
,
"AdminExecuteSequence"
,
add_data
(
db
,
"AdminExecuteSequence"
,
[(
"InitialTargetDir"
,
'TARGETDIR=""'
,
750
),
[(
"InitialTargetDir"
,
'TARGETDIR=""'
,
750
),
(
"SetDLLDirToTarget"
,
'DLLDIR=""'
,
751
),
(
"SetDLLDirToTarget"
,
'DLLDIR=""'
,
751
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
])
])
#####################################################################
#####################################################################
...
@@ -999,6 +1003,8 @@ def add_files(db):
...
@@ -999,6 +1003,8 @@ def add_files(db):
if
dir
==
"setuptools"
:
if
dir
==
"setuptools"
:
lib
.
add_file
(
"cli.exe"
)
lib
.
add_file
(
"cli.exe"
)
lib
.
add_file
(
"gui.exe"
)
lib
.
add_file
(
"gui.exe"
)
if
dir
==
"lib2to3"
:
lib
.
removefile
(
"pickle"
,
"*.pickle"
)
if
dir
==
"data"
and
parent
.
physical
==
"test"
and
parent
.
basedir
.
physical
==
"email"
:
if
dir
==
"data"
and
parent
.
physical
==
"test"
and
parent
.
basedir
.
physical
==
"email"
:
# This should contain all non-.svn files listed in subversion
# This should contain all non-.svn files listed in subversion
for
f
in
os
.
listdir
(
lib
.
absolute
):
for
f
in
os
.
listdir
(
lib
.
absolute
):
...
...
Tools/msi/msilib.py
Dosyayı görüntüle @
367c79a4
...
@@ -571,6 +571,11 @@ class Directory:
...
@@ -571,6 +571,11 @@ class Directory:
[(
self
.
component
+
"c"
,
self
.
component
,
"*.pyc"
,
self
.
logical
,
2
),
[(
self
.
component
+
"c"
,
self
.
component
,
"*.pyc"
,
self
.
logical
,
2
),
(
self
.
component
+
"o"
,
self
.
component
,
"*.pyo"
,
self
.
logical
,
2
)])
(
self
.
component
+
"o"
,
self
.
component
,
"*.pyo"
,
self
.
logical
,
2
)])
def
removefile
(
self
,
key
,
pattern
):
"Add a RemoveFile entry"
add_data
(
self
.
db
,
"RemoveFile"
,
[(
self
.
component
+
key
,
self
.
component
,
pattern
,
self
.
logical
,
2
)])
class
Feature
:
class
Feature
:
def
__init__
(
self
,
db
,
id
,
title
,
desc
,
display
,
level
=
1
,
def
__init__
(
self
,
db
,
id
,
title
,
desc
,
display
,
level
=
1
,
parent
=
None
,
directory
=
None
,
attributes
=
0
):
parent
=
None
,
directory
=
None
,
attributes
=
0
):
...
...
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