Opened 15 years ago

Closed 13 years ago

#1085 closed Bugs (invalid)

Python rules for compiling in Mac OS X

Reported by: chazapis@… Owned by: René Rivera
Milestone: To Be Determined Component: Building Boost
Version: Severity: Problem
Keywords: Cc:

Description

It seems that the tools/build/v2/tools/python.jam file is broken when used in Mac OS X (darwin). I had many problems when trying to compile libtorrent's python bindings using bjam and they all were finally solved by changing this file.

I would suggest applying the following patch to the code. This fixes the missing "python_for_extensions" rule problem, and allows for properly setting the include paths (without relying on env vars). For linking I just used "-framework Python". I don't get what all the $(PYTHON_FRAMEWORK) stuff is about. With the "official" python install, gcc automatically finds the framework.

Attachments (2)

python.jam.patch (1.5 KB ) - added by chazapis 15 years ago.
python.jam.2.patch (1.5 KB ) - added by chazapis@… 15 years ago.
Patch to tools/build/v2/tools/python.jam

Download all attachments as: .zip

Change History (5)

by chazapis, 15 years ago

Attachment: python.jam.patch added

by chazapis@…, 15 years ago

Attachment: python.jam.2.patch added

Patch to tools/build/v2/tools/python.jam

comment:1 by Eric Niebler, 15 years ago

Owner: set to Dave Abrahams

comment:2 by Dave Abrahams, 14 years ago

Owner: changed from Dave Abrahams to René Rivera

I am transitioning away from participating in Boost.Build development, and I think Rene is in a better position to evaluate the patch, so reassigning to him

comment:3 by Vladimir Prus, 13 years ago

Resolution: invalid
Status: newclosed

python.jam appears to be substantially rewritten, making the patch no longer applicable. Should there be some problems with SVN HEAD, please open new ticket.

Note: See TracTickets for help on using tickets.