TABLE OF CONTENTS


pypy.cygclass

[ Top ] [ Cygclasses ] [ Cygclasses ]

SYNOPSIS

  inherit pypy

DESCRIPTION

PyPy is an alternative implementation of the Python general-purpose interpreted programming language which includes a Just-In-Time compiler. It is mostly compatible with Python 2.7 and most pure Python programs and libraries; support for C extensions is experimental.

This cygclass provides definitions and some install helpers which can be used by any PyPy-based package. PyPy modules and programs are built in a number of ways, so this cygclass does not provide any build functions. The two most common build systems for PyPy packages are Distutils and autotools.

INHERITED BY

pypy-distutils.cygclass

REQUIRES

pypy


PYPY

[ Top ] [ pypy.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the PyPy interpreter.


PYPY_VERSION

[ Top ] [ pypy.cygclass ] [ Definitions ]

DESCRIPTION

The major.minor version of the current PyPy interpreter.


PYPY_INCLUDEDIR

[ Top ] [ pypy.cygclass ] [ Definitions ]

DESCRIPTION

Path containing the PyPy C library headers.


PYPY_SITELIB

[ Top ] [ pypy.cygclass ] [ Definitions ]

DESCRIPTION

Installation path for all PyPy extension modules.


LIBPYPY

[ Top ] [ python.cygclass ] [ Definitions ]

DESCRIPTION

Link flags for the PyPy import library. This definition must be properly quoted.


pypyinto

[ Top ] [ pypy.cygclass ] [ Install Functions ]

SYNOPSIS

  pypyinto SUBDIRECTORY

DESCRIPTION

Subdirectory of PYPY_SITELIB into which dopypy should install. This is usually unnecessary.


dopypy

[ Top ] [ pypy.cygclass ] [ Install Functions ]

SYNOPSIS

  [pypyinto SUBDIRECTORY]
  dopypy MODULE1 [MODULE2] ...

DESCRIPTION

Installs the given PyPy module(s) (.py or .dll) into PYPY_SITELIB under $D, or a subdirectory thereof if pypyinto was previously called.


pypy_optimize

[ Top ] [ pypy.cygclass ] [ Install Functions ]

SYNOPSIS

  pypy_optimize [DIRECTORY1] [DIRECTORY2] ...

DESCRIPTION

Bytecode-compile all PyPy modules found in the given directories under $D. If no directories are specified, PYPY_SITELIB under $D is assumed.

NOTE

PyPy modules installed with distutils_install are automatically compiled, as are those installed by automake-based packages *if* they have been declared as _PYTHON files (in which case a py-compile script will be present in $S). Some automake-based packages mistakenly declare these as _DATA instead, in which case either the Makefile.am must be patched or this function called after cyginstall.


pypy_fix_shebang

[ Top ] [ pypy.cygclass ] [ Install Functions ]

SYNOPSIS

  pypy_fix_shebang SCRIPT [SCRIPT ...]

DESCRIPTION

Fixes the designated interpreter of SCRIPT to PYPY. This would be necessary if the original uses an incorrect path (e.g. /usr/local/bin) or defaults to the CPython interpreter. SCRIPT need not be prefixed by $D.