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
3903f50f
Kaydet (Commit)
3903f50f
authored
Kas 22, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow simultaneous installation of 32-bit and 64-bit versions
on 64-bit Windows systems.
üst
d3a81df1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
NEWS
Misc/NEWS
+3
-0
msi.py
Tools/msi/msi.py
+23
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
3903f50f
...
@@ -158,6 +158,9 @@ Documentation
...
@@ -158,6 +158,9 @@ Documentation
Build
Build
-----
-----
-
Allow
simultaneous
installation
of
32
-
bit
and
64
-
bit
versions
on
64
-
bit
Windows
systems
.
-
Patch
#
786737
:
Allow
building
in
a
tree
of
symlinks
pointing
to
-
Patch
#
786737
:
Allow
building
in
a
tree
of
symlinks
pointing
to
a
readonly
source
.
a
readonly
source
.
...
...
Tools/msi/msi.py
Dosyayı görüntüle @
3903f50f
...
@@ -64,12 +64,20 @@ current_version = "%s.%d" % (short_version, FIELD3)
...
@@ -64,12 +64,20 @@ current_version = "%s.%d" % (short_version, FIELD3)
# package replace this one. See "UpgradeCode Property".
# package replace this one. See "UpgradeCode Property".
upgrade_code_snapshot
=
'{92A24481-3ECB-40FC-8836-04B7966EC0D5}'
upgrade_code_snapshot
=
'{92A24481-3ECB-40FC-8836-04B7966EC0D5}'
upgrade_code
=
'{65E6DE48-A358-434D-AA4F-4AF72DB4718F}'
upgrade_code
=
'{65E6DE48-A358-434D-AA4F-4AF72DB4718F}'
# This was added in 2.5.2, to support parallel installation of
# both 32-bit and 64-bit versions of Python on a single system.
upgrade_code_64
=
'{6A965A0C-6EE6-4E3A-9983-3263F56311EC}'
if
snapshot
:
if
snapshot
:
current_version
=
"
%
s.
%
s.
%
s"
%
(
major
,
minor
,
int
(
time
.
time
()
/
3600
/
24
))
current_version
=
"
%
s.
%
s.
%
s"
%
(
major
,
minor
,
int
(
time
.
time
()
/
3600
/
24
))
product_code
=
msilib
.
gen_uuid
()
product_code
=
msilib
.
gen_uuid
()
else
:
else
:
product_code
=
product_codes
[
current_version
]
product_code
=
product_codes
[
current_version
]
if
msilib
.
Win64
:
# Bump the last digit of the code by one, so that 32-bit and 64-bit
# releases get separate product codes
digit
=
hex
((
int
(
product_codes
[
-
2
],
16
)
+
1
)
%
16
)[
-
1
]
product_code
=
product_code
[:
-
2
]
+
digit
+
'}'
if
full_current_version
is
None
:
if
full_current_version
is
None
:
full_current_version
=
current_version
full_current_version
=
current_version
...
@@ -184,6 +192,8 @@ def build_database():
...
@@ -184,6 +192,8 @@ def build_database():
Summary information stream."""
Summary information stream."""
if
snapshot
:
if
snapshot
:
uc
=
upgrade_code_snapshot
uc
=
upgrade_code_snapshot
elif
msilib
.
Win64
:
uc
=
upgrade_code_64
else
:
else
:
uc
=
upgrade_code
uc
=
upgrade_code
# schema represents the installer 2.0 database schema.
# schema represents the installer 2.0 database schema.
...
@@ -234,11 +244,22 @@ def remove_old_versions(db):
...
@@ -234,11 +244,22 @@ def remove_old_versions(db):
"REMOVEOLDSNAPSHOT"
)])
"REMOVEOLDSNAPSHOT"
)])
props
=
"REMOVEOLDSNAPSHOT"
props
=
"REMOVEOLDSNAPSHOT"
else
:
else
:
if
msilib
.
Win64
:
uc
=
upgrade_code_64
# For 2.5, also upgrade installation with upgrade_code
# of 2.5.0 and 2.5.1, since they used the same code for
# 64-bit versions
assert
major
==
2
and
minor
==
5
extra
=
(
upgrade_code
,
start
,
"2.5.2"
,
None
,
migrate_features
,
None
,
"REMOVEOLDVERSION"
)
else
:
uc
=
upgrade_code
extra
=
[]
add_data
(
db
,
"Upgrade"
,
add_data
(
db
,
"Upgrade"
,
[(
u
pgrade_code
,
start
,
current_version
,
[(
u
c
,
start
,
current_version
,
None
,
migrate_features
,
None
,
"REMOVEOLDVERSION"
),
None
,
migrate_features
,
None
,
"REMOVEOLDVERSION"
),
(
upgrade_code_snapshot
,
start
,
"
%
s.
%
d.0"
%
(
major
,
int
(
minor
)
+
1
),
(
upgrade_code_snapshot
,
start
,
"
%
s.
%
d.0"
%
(
major
,
int
(
minor
)
+
1
),
None
,
migrate_features
,
None
,
"REMOVEOLDSNAPSHOT"
)])
None
,
migrate_features
,
None
,
"REMOVEOLDSNAPSHOT"
)
+
extra
])
props
=
"REMOVEOLDSNAPSHOT;REMOVEOLDVERSION"
props
=
"REMOVEOLDSNAPSHOT;REMOVEOLDVERSION"
# Installer collects the product codes of the earlier releases in
# Installer collects the product codes of the earlier releases in
# these properties. In order to allow modification of the properties,
# these properties. In order to allow modification of the properties,
...
...
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