Changes between Initial Version and Version 13 of Ticket #3924


Ignore:
Timestamp:
07/09/09 20:25:10 (12 years ago)
Author:
was
Comment:

This was the original mess of a ticket description:

I'm trying to build sage on mac with a shareable python library. The current version, being built without the --enable-framework option, cannot be linked to other libraries because of the environ variable. I think getting this working would be useful, and I would like eventually to see it the default build on OS X.

The following recipe works, though it is clearly a defective approach:

  1. build vanilla sage from source
  1. edit the spkg/standard/python-2.5....spkg/spkg-install file to include the --enable-framework=SAGE_ROOT/local/Frameworks
  1. rebuild sage. This creates SAGE_ROOT/Frameworks/Python.framework
  1. all doctests pass, and I can link to libpython from boost python

Ideally, the following steps would work:

  1. edit the spkg/standard/python-2.5....spkg/spkg-install file to include the --enable-framework= SAGE_ROOT/local/Frameworks
  1. build sage.

It doesn't work so simply. I've managed to help it along a few steps, but am stuck with cvxopt

  1. The build of mercurial crashes. When it crashes, create two symlinks:

1a. local/lib/python2.5 ---> local/Frameworks/Python.framework/Versions/Current/lib/python2.5/

1b. local/include/python2.5 ---> local/Frameworks/Python.framework/Versions/Current/include/python2.5/

1c. Restart make

  1. The build of the sage package crashes, with a similar error.

2a. Delete the busted symlink at local/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/sage

2b. Create a symlink: local/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/sage --->devel/sage/build/sage

2c. Delete half-built files, restart make.

  1. The build of cvxopt crashes, with a duplicate symbol error. I'm not in a position to debug this one.

Any attention appreciated! For my part, I can muddle along with the duplicate builds but I would like to get this working.

D

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3924

    • Property Cc prabhu added
    • Property Summary changed from making sage on os x build, when python is built as a framework to On OS X, build Sage as a framework build
    • Property Authors changed from to prabhu
  • Ticket #3924 – Description

    initial v13  
    1 I'm trying to build sage on mac with a shareable python library.  The current version, being built without the --enable-framework option, cannot be linked to other libraries because of the environ variable.  I think getting this working would be useful, and I would like eventually to see it the default build on OS X.
     1Build Python as a framework build on OS X.
    22
    3 The following recipe works, though it is clearly a defective approach:
     3spkg up at
    44
    5 1. build vanilla sage from source
     5http://sage.math.washington.edu/home/wstein/patches/prabhu/
    66
    7 2. edit the spkg/standard/python-2.5....spkg/spkg-install file to include the --enable-framework=SAGE_ROOT/local/Frameworks
     7This needs thorough testing.  In particular, try building sage from scratch with this spkg.  Also, worry about upgrading from one sage version to another.
    88
    9 3. rebuild sage.  This creates SAGE_ROOT/Frameworks/Python.framework
    10 
    11 4. all doctests pass, and I can link to libpython from boost python
    12 
    13 Ideally, the following steps would work:
    14 
    15 1. edit the spkg/standard/python-2.5....spkg/spkg-install file to include the --enable-framework= SAGE_ROOT/local/Frameworks
    16 
    17 2. build sage.
    18 
    19 It doesn't work so simply.  I've managed to help it along a few steps, but am stuck with cvxopt
    20 
    21 1. The build of mercurial crashes.  When it crashes, create two symlinks:
    22 
    23 1a. local/lib/python2.5
    24 ---> local/Frameworks/Python.framework/Versions/Current/lib/python2.5/
    25 
    26 1b. local/include/python2.5
    27 ---> local/Frameworks/Python.framework/Versions/Current/include/python2.5/
    28 
    29 1c. Restart make
    30 
    31 2. The build of the sage package crashes, with a similar error. 
    32 
    33 2a. Delete the busted symlink at
    34 local/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/sage
    35 
    36 2b. Create a symlink:
    37 local/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/sage
    38 --->devel/sage/build/sage
    39 
    40 2c. Delete half-built files, restart make.
    41 
    42 3. The build of cvxopt crashes, with a duplicate symbol error.  I'm not in a position to debug this one.
    43 
    44 Any attention appreciated!  For my part, I can muddle along with the duplicate builds but I would like to get this working.
    45 
    46 D
    47 
    48 
    49 
     9Anyway, ASAP I think this should be made the standard version of python for OS X, so that we can get matplotlib + full native gui support by default.  Plus, we should provide an optional spkg that makes it trivial to make nice native GUI apps on OS X (??).