Changes between Version 1 and Version 2 of PythonFrameworkTransition


Ignore:
Timestamp:
Mar 7, 2008, 8:20:26 PM (17 years ago)
Author:
reiffert@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonFrameworkTransition

    v1 v2  
    1010{{{
    1111${prefix}/lib/pythonXX -> ${prefix}/Library/Frameworks/Python.framework/Versions/XX/lib/pythonXX
     12${prefix}/lib/libpythonXX.dylib -> ${prefix}/Library/Frameworks/Python.framework/Versions/XX/lib/libpythonXX.dylib
    1213${prefix}/include/pythonXX -> ${prefix}/Library/Frameworks/Python.framework/Versions/XX/include/pythonXX
     14${prefix}/share/doc/pythonXX -> ${prefix}/Library/Frameworks/Python.framework/Versions/XX/share/doc/pythonXX
    1315}}}
    1416
     
    1921the scheme from above.
    2022
    21 Maybe py-* requires the same transition as described for py25-* ports below, we will have to try out.
     23The py-* ports require the same transition as described for py25-* ports below.
    2224
    2325=== python25 ===
     
    2729      MacPorts version. Efforts on this branch have to be coordinated with a
    2830      release (targeting 1.6.1 or 1.6.2).
     31
     32{{{
     33--- port1.0/group/python25-1.0.tcl.orig 2008-03-07 19:54:29.000000000 +0100
     34+++ port1.0/group/python25-1.0.tcl      2008-03-07 19:57:58.000000000 +0100
     35@@ -32,6 +32,8 @@
     36 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     37 #
     38 
     39+set prefix ${prefix}/Library/Frameworks/Python.framework/Versions/2.5
     40+
     41 set python.bin ${prefix}/bin/python2.5
     42 set python.lib ${prefix}/lib/libpython2.5.dylib
     43 set python.pkgd        ${prefix}/lib/python2.5/site-packages
     44}}}
    2945
    3046    * All py25-* ports have to be removed *before* upgrading python25 itself,
     
    3955      This will be the main challenge.
    4056
     57    * There are two mutually exclusive ways to do the transitions.
     58      They get described here by pseudo-code. Feel free to replace by
     59      real commandos.
     60
     61==== Way 1 ====
     62
     63{{{
     64pre-fetch {
     65 if ( $prefix does not end with
     66      /Library/Frameworks/Python.framework/Versions/2.5)
     67 {
     68  echo "Run port selfupdate and retry"
     69  exit
     70 }
     71
     72 if ( python25 is installed &&
     73      $prefix/Library/Frameworks/Python.framework/Versions/2.5 does not exist)
     74 {
     75  1. Save the names of all installed py25- ports
     76  2. Uninstall the list of all installed py25- ports
     77 }
     78}
     79post-activate {
     80 if ( python25 is installed &&
     81      prefix/Library/Frameworks/Python.framework/Versions/2.5 does not exist)
     82 {
     83  1. Install the ports from the previously saved list.
     84 }
     85}
     86
     87
     88}}}
     89
     90==== Way 2 ====
     91
     92{{{
     93pre-fetch {
     94 mv prefix/lib/python25/site-packages
     95  $prefix/Library/Frameworks/Python.framework/Versions/2.5/lib/python25
     96 adjust paths for installed py25-* ports in file
     97  prefix/var/macports/receipts/file_map.db
     98}
     99}}}
     100
     101
    41102=== python30 ===
    42103Nobody should be using python30 productively yet. python30 port group was also