Changes between Version 1 and Version 2 of PythonFrameworkTransition
- Timestamp:
- Mar 7, 2008, 8:20:26 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonFrameworkTransition
v1 v2 10 10 {{{ 11 11 ${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 12 13 ${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 13 15 }}} 14 16 … … 19 21 the scheme from above. 20 22 21 Maybe py-* requires the same transition as described for py25-* ports below, we will have to try out.23 The py-* ports require the same transition as described for py25-* ports below. 22 24 23 25 === python25 === … … 27 29 MacPorts version. Efforts on this branch have to be coordinated with a 28 30 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 }}} 29 45 30 46 * All py25-* ports have to be removed *before* upgrading python25 itself, … … 39 55 This will be the main challenge. 40 56 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 {{{ 64 pre-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 } 79 post-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 {{{ 93 pre-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 41 102 === python30 === 42 103 Nobody should be using python30 productively yet. python30 port group was also