Changes between Initial Version and Version 1 of Python


Ignore:
Timestamp:
Mar 23, 2009, 8:33:31 PM (15 years ago)
Author:
MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v1 v1  
     1[[PageOutline]]
     2= Python =
     3Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code.
     4== Python in MacPorts ==
     5MacPorts allows the installation of several different versions of python.[[BR]]
     6Versions 2.5 and later, however, are the primary focus of work.
     7
     8== Frameworks ==
     9Python is installed as [http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Frameworks.html Framework].[[BR]]
     10To maintain compatibility, however, python24 and python25 install as a hybrid Framework/Library installation (see #16334).
     11
     12== Avoiding Conflicts ==
     13Since MacPorts supports several different version of Python, conventions are adopted to ensure that there are no conflicts.[[BR]]
     14Ports which use the python PortGroups (
     15[http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/python24-1.0.tcl python24],
     16[http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/python25-1.0.tcl python25],
     17[http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/python26-1.0.tcl python26],
     18and
     19[http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/python30-1.0.tcl python30])
     20are automatically installed so as to avoid conflicts.[[BR]]
     21Other python packages must self-enforce conventions to avoid conflicts.
     22
     23=== Versions 2.4 and 2.5 ===
     24   * Header files are installed into ${prefix}/include/python${python.branch}.
     25   * Library files are installed into ${prefix}/lib/python${python.branch}.
     26   * Site-packages are installed into ${prefix}/lib/python${python.branch}/site-packages.
     27
     28=== Versions 2.6 and Later ===
     29   * Header files are installed into ${frameworks_dir}/Python.framework/Versions/${python.branch}/include/python${python.branch}.
     30   * Library files are installed into ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}.
     31   * Site-packages are installed into ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages.
     32
     33=== pkg-config Files ===
     34Some python packages (such as [http://cairographics.org/pycairo/ Pycairo]) install .pc files for [http://pkg-config.freedesktop.org/wiki/ pkg-config].[[BR]]
     35Since these files do not have the python version in their names, they can not be installed in the standard locations for pkg-config.[[BR]]
     36Instead they are installed into ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/lib/pkgconfig.
     37
     38In order for pkg-config to find the .pc files, the environment variable PKG_CONFIG_PATH must be set.[[BR]]
     39For MacPorts Portfiles, the variable configure.pkg_config_path can be used for this purpose.
     40
     41== no-user-cfg Option ==
     42The existence of ~/pydistutils.cfg can cause problems during installation of python packages (see #9831).[[BR]]
     43For Python version 2.5 and later, the option --no-user-cfg has been added to allow this file to be ignored.
     44
     45== 64-bit support ==
     46Python 2.6 and 3.0 support 64-bit universal builds (see #16349)
     47