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
73aa1fff
Commit
73aa1fff
authored
Jun 27, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixes for building MacPython extension modules. It now actually succeeds
in building various modules.
parent
3d9addd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
setup.py
setup.py
+18
-16
No files found.
setup.py
View file @
73aa1fff
...
...
@@ -309,10 +309,11 @@ class PyBuildExt(build_ext):
# fcntl(2) and ioctl(2)
exts
.
append
(
Extension
(
'fcntl'
,
[
'fcntlmodule.c'
])
)
# pwd(3)
exts
.
append
(
Extension
(
'pwd'
,
[
'pwdmodule.c'
])
)
# grp(3)
exts
.
append
(
Extension
(
'grp'
,
[
'grpmodule.c'
])
)
if
platform
not
in
[
'mac'
]:
# pwd(3)
exts
.
append
(
Extension
(
'pwd'
,
[
'pwdmodule.c'
])
)
# grp(3)
exts
.
append
(
Extension
(
'grp'
,
[
'grpmodule.c'
])
)
# posix (UNIX) errno values
exts
.
append
(
Extension
(
'errno'
,
[
'errnomodule.c'
])
)
# select(2); not on ancient System V
...
...
@@ -338,14 +339,15 @@ class PyBuildExt(build_ext):
exts
.
append
(
Extension
(
'cPickle'
,
[
'cPickle.c'
])
)
# Memory-mapped files (also works on Win32).
if
platform
not
in
[
'atheos'
]:
if
platform
not
in
[
'atheos'
,
'mac'
]:
exts
.
append
(
Extension
(
'mmap'
,
[
'mmapmodule.c'
])
)
# Lance Ellinghaus's modules:
# enigma-inspired encryption
exts
.
append
(
Extension
(
'rotor'
,
[
'rotormodule.c'
])
)
# syslog daemon interface
exts
.
append
(
Extension
(
'syslog'
,
[
'syslogmodule.c'
])
)
if
platform
not
in
[
'mac'
]:
# syslog daemon interface
exts
.
append
(
Extension
(
'syslog'
,
[
'syslogmodule.c'
])
)
# George Neville-Neil's timing module:
exts
.
append
(
Extension
(
'timing'
,
[
'timingmodule.c'
])
)
...
...
@@ -381,14 +383,14 @@ class PyBuildExt(build_ext):
exts
.
append
(
Extension
(
'readline'
,
[
'readline.c'
],
library_dirs
=
[
'/usr/lib/termcap'
],
libraries
=
readline_libs
)
)
# crypt module.
if
self
.
compiler
.
find_library_file
(
lib_dirs
,
'crypt'
):
libs
=
[
'crypt'
]
else
:
libs
=
[]
exts
.
append
(
Extension
(
'crypt'
,
[
'cryptmodule.c'
],
libraries
=
libs
)
)
if
platform
not
in
[
'mac'
]:
# crypt module.
if
self
.
compiler
.
find_library_file
(
lib_dirs
,
'crypt'
):
libs
=
[
'crypt'
]
else
:
libs
=
[]
exts
.
append
(
Extension
(
'crypt'
,
[
'cryptmodule.c'
],
libraries
=
libs
)
)
# socket(2)
exts
.
append
(
Extension
(
'_socket'
,
[
'socketmodule.c'
],
...
...
@@ -535,7 +537,7 @@ class PyBuildExt(build_ext):
dblib_dir
=
None
# The standard Unix dbm module:
if
platform
not
in
[
'cygwin'
]:
if
platform
not
in
[
'cygwin'
,
'mac'
]:
if
(
self
.
compiler
.
find_library_file
(
lib_dirs
,
'ndbm'
)):
exts
.
append
(
Extension
(
'dbm'
,
[
'dbmmodule.c'
],
libraries
=
[
'ndbm'
]
)
)
...
...
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