# PortGroup python & python2x

PortGroup python allows for efficient porting of python-based open source software.

## python PortGroup Specific Variables

When the python PortGroup is declared within a Portfile, the following variables are provided during port install.

python.bin

  The MacPorts Python binary location.

python.lib

  The Python dynamic library and path (ie, `${prefix}/lib/libpython2.x.dylib`).

python.include

  Path to the Python include directory.

python.pkgd

  Path to the Python site-packages directory. (ie, `${prefix}/lib/python2.4/site-packages`).

## python PortGroup Sugar

Portfiles using PortGroup python do not need to define the following variables:

categories

  Default: python

dist_subdir

  Default: python

depends_lib

  Default: port:pythonXY (XY as appropriate for the group)

use_configure

  Default: no

build.cmd

  Default: ${python.bin} setup.py --no-user-cfg

build.target

  Default: build

destroot.cmd

  Default: ${python.bin} setup.py --no-user-cfg

destroot.destdir

  Default: --prefix=${prefix} --root=${destroot}

pre-destroot

  Default: creates ${destroot}${prefix}/share/doc/${name}/examples