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
63596f6a
Commit
63596f6a
authored
Jan 23, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for MacOS X/Darwin: it doesn't need -lm, ever. (Noted by Steven Majewski)
parent
d20699fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
setup.py
setup.py
+12
-3
No files found.
setup.py
View file @
63596f6a
...
...
@@ -113,6 +113,11 @@ class PyBuildExt(build_ext):
inc_dirs
=
[
'/usr/include'
]
+
self
.
compiler
.
include_dirs
exts
=
[]
# Check for MacOS X, which doesn't need libm.a at all
math_libs
=
[
'm'
]
if
sys
.
platform
==
'Darwin1.2'
:
math_libs
=
[]
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
#
...
...
@@ -129,13 +134,17 @@ class PyBuildExt(build_ext):
# array objects
exts
.
append
(
Extension
(
'array'
,
[
'arraymodule.c'
])
)
# complex math library functions
exts
.
append
(
Extension
(
'cmath'
,
[
'cmathmodule.c'
],
libraries
=
[
'm'
])
)
exts
.
append
(
Extension
(
'cmath'
,
[
'cmathmodule.c'
],
libraries
=
math_libs
)
)
# math library functions, e.g. sin()
exts
.
append
(
Extension
(
'math'
,
[
'mathmodule.c'
],
libraries
=
[
'm'
])
)
exts
.
append
(
Extension
(
'math'
,
[
'mathmodule.c'
],
libraries
=
math_libs
)
)
# fast string operations implemented in C
exts
.
append
(
Extension
(
'strop'
,
[
'stropmodule.c'
])
)
# time operations and variables
exts
.
append
(
Extension
(
'time'
,
[
'timemodule.c'
],
libraries
=
[
'm'
])
)
exts
.
append
(
Extension
(
'time'
,
[
'timemodule.c'
],
libraries
=
math_libs
)
)
# operator.add() and similar goodies
exts
.
append
(
Extension
(
'operator'
,
[
'operator.c'
])
)
# access to the builtin codecs and codec registry
...
...
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