All Projects â†’ thewtex â†’ Cython Cmake Example

thewtex / Cython Cmake Example

Licence: apache-2.0
Utilities and example for using CMake to build Cython modules - migrated to scikit-build

Labels

Projects that are alternatives of or similar to Cython Cmake Example

Multi Rtl
Multi-channel receiver with use of RTL-SDR dongles
Stars: ✭ 142 (-5.96%)
Mutual labels:  cmake
Moderncppstarter
🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
Stars: ✭ 2,381 (+1476.82%)
Mutual labels:  cmake
Logic
CMake, SystemVerilog and SystemC utilities for creating, building and testing RTL projects for FPGAs and ASICs.
Stars: ✭ 149 (-1.32%)
Mutual labels:  cmake
Huggle3 Qt Lx
Huggle is an anti-vandalism tool for use on MediaWiki based projects
Stars: ✭ 143 (-5.3%)
Mutual labels:  cmake
Fibos
[WIP] JavaScript Toolchain on EOS
Stars: ✭ 144 (-4.64%)
Mutual labels:  cmake
Metabench
A simple framework for compile-time benchmarks
Stars: ✭ 146 (-3.31%)
Mutual labels:  cmake
Rttr
C++ Reflection Library
Stars: ✭ 2,031 (+1245.03%)
Mutual labels:  cmake
Androidsecurity
Android安全实践
Stars: ✭ 150 (-0.66%)
Mutual labels:  cmake
Grpc Cmake Example
gRPC C++ example with CMake
Stars: ✭ 142 (-5.96%)
Mutual labels:  cmake
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (-1.32%)
Mutual labels:  cmake
Ocean
A C/C++ build system/project manager written in Rust
Stars: ✭ 144 (-4.64%)
Mutual labels:  cmake
Chronoshift
An open source re-implementation of Red Alert written in C++.
Stars: ✭ 144 (-4.64%)
Mutual labels:  cmake
Node
Credits Node is the main module that provide an opportunity to run a node and participate in CREDITS blockchain network.
Stars: ✭ 147 (-2.65%)
Mutual labels:  cmake
Minimal cmake example
this tries to be a minimal cmake example, that covers sources resources dependencies and packaging.
Stars: ✭ 142 (-5.96%)
Mutual labels:  cmake
Arm Cmake Toolchains
CMake toolchain configurations for ARM
Stars: ✭ 148 (-1.99%)
Mutual labels:  cmake
Reggae
Build system in D, Python, Ruby, Javascript or Lua
Stars: ✭ 141 (-6.62%)
Mutual labels:  cmake
Go Static Linking
Demo of how to static link a c library to some go code.
Stars: ✭ 145 (-3.97%)
Mutual labels:  cmake
Jinx
Embeddable scripting language for real-time applications
Stars: ✭ 150 (-0.66%)
Mutual labels:  cmake
Pmm
It's the C++ Package Manager Manager
Stars: ✭ 150 (-0.66%)
Mutual labels:  cmake
Polyfem
A polyvalent C++ FEM library
Stars: ✭ 147 (-2.65%)
Mutual labels:  cmake

MIGRATED to SCIKIT-BUILD

These modules are now maintained in scikit-build <https://scikit-build.org/>_

cython-cmake-example

Introduction

Cython_ is hybrid C-Python language to easily write Python C-extensions. Cython allows one to write fast Python-ish code and easily integrate C or C++ code.

CMake_ is a cross-platform build system with good support for C/C++. With simple projects description scripts, CMakeLists.txt, a powerful configuration system is available. The configuration can be handled with a command line interface, curses interface, or Qt GUI interface.

This repository has CMake utilities for building Cython projects with CMake. The rectangle example from the Cython documentation is built to demonstrate their use. An example is also provided that shows registering a C callback with a function defined in a Cython module.

The features of this build system include:

  • Easy configuration of build settings.
  • Easy integration of external libraries.
  • Implicit Makefile dependency generation for .pxd files.
  • Implicit Makefile dependency generation for C/C++ headers.
  • Out-of-source builds.

The project is tested across platforms on the nightly dashboard_.

.. note::

The latest versions of these CMake Cython scripts are maintained in scikit-build <https://github.com/scikit-build/scikit-build/tree/7bd56e5e79c62aa6cf0995851fa10532f23aa2aa/skbuild/resources/cmake>_.

Dependencies

Build Dependencies ^^^^^^^^^^^^^^^^^^

  • Python_ (also works with CMakeified-Python_)
  • Cython_
  • CMake_
  • C++ compiler (g++ for instance)

Test Dependencies ^^^^^^^^^^^^^^^^^

  • Nose_

Build Instructions

::

mkdir cython_example_build cd cython_example_build cmake /path/to/src/cython-cmake-example make

.. warning::

In your CMake configuration, make sure that PYTHON_LIBRARY, PYTHON_INCLUDE_DIR, and CYTHON_EXECUTABLE are all using the same CPython version.

To run the tests::

nosetests

.. _Cython: http://cython.org/ .. _CMake: http://cmake.org/ .. _Nose: http://pypi.python.org/pypi/nose/ .. _Python: http://python.org/ .. _nightly dashboard: http://my.cdash.org/index.php?project=cython-cmake-example .. _CMakeified-Python: https://github.com/davidsansome/python-cmake-buildsystem

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].