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
7667606c
Commit
7667606c
authored
Sep 03, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Mac build, patch #1091 by Humberto Diogenes.
parent
1c0318ba
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
16 deletions
+18
-16
Lib/plat-mac/Carbon/ControlAccessor.py
Lib/plat-mac/Carbon/ControlAccessor.py
+1
-1
Lib/plat-mac/buildtools.py
Lib/plat-mac/buildtools.py
+2
-1
Lib/plat-mac/bundlebuilder.py
Lib/plat-mac/bundlebuilder.py
+1
-1
Lib/plat-mac/macresource.py
Lib/plat-mac/macresource.py
+8
-8
Mac/IDLE/Makefile.in
Mac/IDLE/Makefile.in
+1
-1
Mac/PythonLauncher/Makefile.in
Mac/PythonLauncher/Makefile.in
+1
-1
Mac/Tools/fixapplepython23.py
Mac/Tools/fixapplepython23.py
+2
-2
Mac/scripts/cachersrc.py
Mac/scripts/cachersrc.py
+2
-1
No files found.
Lib/plat-mac/Carbon/ControlAccessor.py
View file @
7667606c
# Accessor functions for control properties
from
Controls
import
*
from
C
arbon.C
ontrols
import
*
import
struct
# These needn't go through this module, but are here for completeness
...
...
Lib/plat-mac/buildtools.py
View file @
7667606c
...
...
@@ -17,7 +17,8 @@ import warnings
warnings
.
warn
(
"the buildtools module is deprecated"
,
DeprecationWarning
,
2
)
BuildError
=
"BuildError"
class
BuildError
(
Exception
):
pass
# .pyc file (and 'PYC ' resource magic number)
MAGIC
=
imp
.
get_magic
()
...
...
Lib/plat-mac/bundlebuilder.py
View file @
7667606c
...
...
@@ -180,7 +180,7 @@ class BundleBuilder(Defaults):
assert
len
(
self
.
type
)
==
len
(
self
.
creator
)
==
4
,
\
"type and creator must be 4-byte strings."
pkginfo
=
pathjoin
(
contents
,
"PkgInfo"
)
f
=
open
(
pkginfo
,
"w
b
"
)
f
=
open
(
pkginfo
,
"w"
)
f
.
write
(
self
.
type
+
self
.
creator
)
f
.
close
()
#
...
...
Lib/plat-mac/macresource.py
View file @
7667606c
...
...
@@ -76,15 +76,15 @@ def open_pathname(pathname, verbose=0):
AppleSingle file"""
try
:
refno
=
Res
.
FSpOpenResFile
(
pathname
,
1
)
except
Res
.
Error
as
arg
:
if
arg
[
0
]
in
(
-
37
,
-
39
):
except
Res
.
Error
as
error
:
if
error
.
args
[
0
]
in
(
-
37
,
-
39
):
# No resource fork. We may be on OSX, and this may be either
# a data-fork based resource file or a AppleSingle file
# from the CVS repository.
try
:
refno
=
Res
.
FSOpenResourceFile
(
pathname
,
''
,
1
)
except
Res
.
Error
as
arg
:
if
arg
[
0
]
!=
-
199
:
except
Res
.
Error
as
error
:
if
error
.
args
[
0
]
!=
-
199
:
# -199 is "bad resource map"
raise
else
:
...
...
@@ -103,15 +103,15 @@ def resource_pathname(pathname, verbose=0):
try
:
refno
=
Res
.
FSpOpenResFile
(
pathname
,
1
)
Res
.
CloseResFile
(
refno
)
except
Res
.
Error
as
arg
:
if
arg
[
0
]
in
(
-
37
,
-
39
):
except
Res
.
Error
as
error
:
if
error
.
args
[
0
]
in
(
-
37
,
-
39
):
# No resource fork. We may be on OSX, and this may be either
# a data-fork based resource file or a AppleSingle file
# from the CVS repository.
try
:
refno
=
Res
.
FSOpenResourceFile
(
pathname
,
''
,
1
)
except
Res
.
Error
as
arg
:
if
arg
[
0
]
!=
-
199
:
except
Res
.
Error
as
error
:
if
error
.
args
[
0
]
!=
-
199
:
# -199 is "bad resource map"
raise
else
:
...
...
Mac/IDLE/Makefile.in
View file @
7667606c
...
...
@@ -55,5 +55,5 @@ IDLE.app: \
Info.plist
:
$(srcdir)/Info.plist.in
sed
's/%VERSION%/'
"
`
$(RUNSHARED)
$(BUILDPYTHON)
-c
'import platform; print
platform.python_version(
)'
`
"
'/g'
<
$(srcdir)
/Info.plist.in
>
Info.plist
sed
's/%VERSION%/'
"
`
$(RUNSHARED)
$(BUILDPYTHON)
-c
'import platform; print
(platform.python_version()
)'
`
"
'/g'
<
$(srcdir)
/Info.plist.in
>
Info.plist
Mac/PythonLauncher/Makefile.in
View file @
7667606c
...
...
@@ -78,4 +78,4 @@ Python\ Launcher: $(OBJECTS)
$(CC)
$(LDFLAGS)
-o
"Python Launcher"
$(OBJECTS)
-framework
AppKit
-framework
Carbon
Info.plist
:
$(srcdir)/Info.plist.in
sed
's/%VERSION%/'
"
`
$(RUNSHARED)
$(BUILDPYTHON)
-c
'import platform; print
platform.python_version(
)'
`
"
'/g'
<
$(srcdir)
/Info.plist.in
>
Info.plist
sed
's/%VERSION%/'
"
`
$(RUNSHARED)
$(BUILDPYTHON)
-c
'import platform; print
(platform.python_version()
)'
`
"
'/g'
<
$(srcdir)
/Info.plist.in
>
Info.plist
Mac/Tools/fixapplepython23.py
View file @
7667606c
...
...
@@ -80,11 +80,11 @@ def makescript(filename, compiler):
"""Create a wrapper script for a compiler"""
dirname
=
os
.
path
.
split
(
filename
)[
0
]
if
not
os
.
access
(
dirname
,
os
.
X_OK
):
os
.
mkdir
(
dirname
,
0755
)
os
.
mkdir
(
dirname
,
0
o
755
)
fp
=
open
(
filename
,
'w'
)
fp
.
write
(
SCRIPT
%
compiler
)
fp
.
close
()
os
.
chmod
(
filename
,
0755
)
os
.
chmod
(
filename
,
0
o
755
)
print
(
'fixapplepython23: Created'
,
filename
)
def
main
():
...
...
Mac/scripts/cachersrc.py
View file @
7667606c
...
...
@@ -12,7 +12,8 @@ import getopt
class
NoArgsError
(
Exception
):
pass
def
handler
((
verbose
,
force
),
dirname
,
fnames
):
def
handler
(
arg1
,
dirname
,
fnames
):
verbose
,
force
=
arg1
for
fn
in
fnames
:
if
fn
[
-
5
:]
==
'.rsrc'
and
fn
[
-
13
:]
!=
'.rsrc.df.rsrc'
:
if
force
:
...
...
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