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
e71b9f83
Kaydet (Commit)
e71b9f83
authored
Şub 12, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Use distutils to find site-python (suggested by Thomas Heller, thanks!)
- Fixed a bug for packages without MD5 checksum.
üst
c13f19f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
pimp.py
Lib/plat-mac/pimp.py
+3
-7
No files found.
Lib/plat-mac/pimp.py
Dosyayı görüntüle @
e71b9f83
...
@@ -18,6 +18,7 @@ import urllib
...
@@ -18,6 +18,7 @@ import urllib
import
urlparse
import
urlparse
import
plistlib
import
plistlib
import
distutils.util
import
distutils.util
import
distutils.sysconfig
import
md5
import
md5
__all__
=
[
"PimpPreferences"
,
"PimpDatabase"
,
"PimpPackage"
,
"main"
]
__all__
=
[
"PimpPreferences"
,
"PimpDatabase"
,
"PimpPackage"
,
"main"
]
...
@@ -33,12 +34,7 @@ PIMP_VERSION="0.1"
...
@@ -33,12 +34,7 @@ PIMP_VERSION="0.1"
DEFAULT_FLAVORORDER
=
[
'source'
,
'binary'
]
DEFAULT_FLAVORORDER
=
[
'source'
,
'binary'
]
DEFAULT_DOWNLOADDIR
=
'/tmp'
DEFAULT_DOWNLOADDIR
=
'/tmp'
DEFAULT_BUILDDIR
=
'/tmp'
DEFAULT_BUILDDIR
=
'/tmp'
for
_p
in
sys
.
path
:
DEFAULT_INSTALLDIR
=
distutils
.
sysconfig
.
get_python_lib
()
if
_p
[
-
13
:]
==
'site-packages'
:
DEFAULT_INSTALLDIR
=
_p
break
else
:
DEFAULT_INSTALLDIR
=
sys
.
prefix
# Have to put things somewhere
DEFAULT_PIMPDATABASE
=
"http://www.cwi.nl/~jack/pimp/pimp-
%
s.plist"
%
distutils
.
util
.
get_platform
()
DEFAULT_PIMPDATABASE
=
"http://www.cwi.nl/~jack/pimp/pimp-
%
s.plist"
%
distutils
.
util
.
get_platform
()
ARCHIVE_FORMATS
=
[
ARCHIVE_FORMATS
=
[
...
@@ -419,7 +415,7 @@ class PimpPackage:
...
@@ -419,7 +415,7 @@ class PimpPackage:
if
not
os
.
path
.
exists
(
self
.
archiveFilename
):
if
not
os
.
path
.
exists
(
self
.
archiveFilename
):
return
0
return
0
if
not
self
.
_dict
[
'MD5Sum'
]
:
if
not
self
.
_dict
.
get
(
'MD5Sum'
)
:
sys
.
stderr
.
write
(
"Warning: no MD5Sum for
%
s
\n
"
%
self
.
fullname
())
sys
.
stderr
.
write
(
"Warning: no MD5Sum for
%
s
\n
"
%
self
.
fullname
())
return
1
return
1
data
=
open
(
self
.
archiveFilename
,
'rb'
)
.
read
()
data
=
open
(
self
.
archiveFilename
,
'rb'
)
.
read
()
...
...
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