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
7ae61fac
Commit
7ae61fac
authored
Mar 25, 2002
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SF # 532618 517704, install problems when building modules fail.
Fix whitespace on a line also.
parent
e87b0c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
setup.py
setup.py
+8
-3
No files found.
setup.py
View file @
7ae61fac
...
@@ -188,8 +188,13 @@ class PyBuildExt(build_ext):
...
@@ -188,8 +188,13 @@ class PyBuildExt(build_ext):
# distutils.command.build_ext.build_extension(). The
# distutils.command.build_ext.build_extension(). The
# _built_objects attribute is stored there strictly for
# _built_objects attribute is stored there strictly for
# use here.
# use here.
for
filename
in
self
.
_built_objects
:
# If there is a failure, _built_objects may not be there,
os
.
remove
(
filename
)
# so catch the AttributeError and move on.
try
:
for
filename
in
self
.
_built_objects
:
os
.
remove
(
filename
)
except
AttributeError
:
self
.
announce
(
'unable to remove files (ignored)'
)
else
:
else
:
self
.
announce
(
'*** WARNING: importing extension "%s" '
self
.
announce
(
'*** WARNING: importing extension "%s" '
'failed: %s'
%
(
ext
.
name
,
why
))
'failed: %s'
%
(
ext
.
name
,
why
))
...
@@ -605,7 +610,7 @@ class PyBuildExt(build_ext):
...
@@ -605,7 +610,7 @@ class PyBuildExt(build_ext):
# procedure triggers on.
# procedure triggers on.
frameworkdir
=
sysconfig
.
get_config_var
(
'PYTHONFRAMEWORKDIR'
)
frameworkdir
=
sysconfig
.
get_config_var
(
'PYTHONFRAMEWORKDIR'
)
exts
.
append
(
Extension
(
'gestalt'
,
[
'gestaltmodule.c'
],
exts
.
append
(
Extension
(
'gestalt'
,
[
'gestaltmodule.c'
],
extra_link_args
=
[
'-framework'
,
'Carbon'
])
)
extra_link_args
=
[
'-framework'
,
'Carbon'
])
)
exts
.
append
(
Extension
(
'MacOS'
,
[
'macosmodule.c'
],
exts
.
append
(
Extension
(
'MacOS'
,
[
'macosmodule.c'
],
extra_link_args
=
[
'-framework'
,
'Carbon'
])
)
extra_link_args
=
[
'-framework'
,
'Carbon'
])
)
exts
.
append
(
Extension
(
'icglue'
,
[
'icgluemodule.c'
],
exts
.
append
(
Extension
(
'icglue'
,
[
'icgluemodule.c'
],
...
...
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