Skip to content

Commit

Permalink
Document DOWNLOAD_SOURCES CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Feb 15, 2015
1 parent 00477f7 commit 08924a0
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions README.rst
Expand Up @@ -22,27 +22,14 @@ Usage

How to use this buildsystem:

1. Download and extract the Python 2.7.3 source

.. code:: bash
VERSION=2.7.3
mkdir -p ~/scratch
cd ~/scratch
curl -L -O http://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz
md5sum Python-$VERSION.tgz
tar -xzvf Python-$VERSION.tgz
Expected MD5: `2cf641732ac23b18d139be077bd906cd`

2. Checkout the buildsystem
1. Checkout the buildsystem

.. code:: bash
cd ~/scratch
git clone git://github.com/davidsansome/python-cmake-buildsystem
3. Build
2. Build

.. code:: bash
Expand All @@ -53,6 +40,12 @@ Expected MD5: `2cf641732ac23b18d139be077bd906cd`
make -j10
make install
.. note::

By default, the build system will download the python 2.7.3 source from
http://www.python.org/ftp/python/


CMake Options
-------------

Expand All @@ -68,6 +61,10 @@ options on the commandline with `-DOPTION=VALUE`, or use the "ccmake" gui.
CMAKE_INSTALL_PREFIX=<path> (defaults to /usr/local)
Path in which to install Python.

DOWNLOAD_SOURCES=ON|OFF (defaults to ON)
Download, check MD5 sum and extract python sources in the parent directory.
Source archive is downloaded from http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

BUILD_SHARED=ON|OFF (defaults to OFF)
BUILD_STATIC=ON|OFF (defaults to ON)
Build libpython as a shared library (.so or .dll) or a static library
Expand Down

0 comments on commit 08924a0

Please sign in to comment.