Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7a2aaaed
Commit
7a2aaaed
authored
Feb 12, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use distutils to find site-python (suggested by Thomas Heller, thanks!)
- Fixed a bug for packages without MD5 checksum.
parent
f189b64e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
Lib/plat-mac/pimp.py
Lib/plat-mac/pimp.py
+3
-7
No files found.
Lib/plat-mac/pimp.py
View file @
7a2aaaed
...
...
@@ -18,6 +18,7 @@ import urllib
import
urlparse
import
plistlib
import
distutils.util
import
distutils.sysconfig
import
md5
__all__
=
[
"PimpPreferences"
,
"PimpDatabase"
,
"PimpPackage"
,
"main"
]
...
...
@@ -33,12 +34,7 @@ PIMP_VERSION="0.1"
DEFAULT_FLAVORORDER
=
[
'source'
,
'binary'
]
DEFAULT_DOWNLOADDIR
=
'/tmp'
DEFAULT_BUILDDIR
=
'/tmp'
for
_p
in
sys
.
path
:
if
_p
[
-
13
:]
==
'site-packages'
:
DEFAULT_INSTALLDIR
=
_p
break
else
:
DEFAULT_INSTALLDIR
=
sys
.
prefix
# Have to put things somewhere
DEFAULT_INSTALLDIR
=
distutils
.
sysconfig
.
get_python_lib
()
DEFAULT_PIMPDATABASE
=
"http://www.cwi.nl/~jack/pimp/pimp-%s.plist"
%
distutils
.
util
.
get_platform
()
ARCHIVE_FORMATS
=
[
...
...
@@ -419,7 +415,7 @@ class PimpPackage:
if
not
os
.
path
.
exists
(
self
.
archiveFilename
):
return
0
if
not
self
.
_dict
[
'MD5Sum'
]
:
if
not
self
.
_dict
.
get
(
'MD5Sum'
)
:
sys
.
stderr
.
write
(
"Warning: no MD5Sum for %s
\
n
"
%
self
.
fullname
())
return
1
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