Developer Meetings/20130305

From Slicer Wiki
Jump to: navigation, search
Home < Developer Meetings < 20130305

To discuss

# Download python source and CMake build system
## Windows/Unix: Open your unix terminal or windows git bash console, then run:

git clone git://github.com/jcfr/python-cmake-buildsystem -b next
curl -O http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xzvf Python-2.7.3.tgz
mkdir Python-2.7.3-build
cd Python-2.7.3-build


# Configure the project
## Windows:

Open cmake-gui
 Source dir : /path/to/python-cmake-buildsystem
 Build dir  : /path/to/Python-2.7.3-build
 Configure & Generate
Open /path/to/Python-2.7.3-build/Python27.sln
 Build all
Run /path/to/Python-2.7.3-build/bin/python.exe


## Unix (MacOSX, Linux)

cd Python-2.7.3-build
cmake ../python-cmake-buildsystem
make -j8
./bin/python



Available build options:

 BUILD_SHARED:   Build python static library
 BUILD_STATIC:     Build python shared library

 ENABLE_<EXTENSION>: If ON, the corresponding python extension will be built.
 BUILTIN_<EXTENSION>:  If ON, the corresponding python extension will be built-in the built python librarie(s). No need to use Setup.local


To report problem, create an issue: https://github.com/jcfr/python-cmake-buildsystem/issues

Conclusion