GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cross-platform/ecs-python: Light-weight C++ library for embedding Python into C++

BranchesTags
Open more actions menu

Latest commit

 

History

50 Commits
50 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
include
include
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGES
CHANGES
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Build Status Build status

ECS:Python

Light-weight C++ library for embedding Python into C++

ECS:Python (Embedded C++ Scripting with Python) is a simple Python wrapper library designed specifically for C++ developers who wish to add Python scripting to their new / existing C++ projects. ECS:Python allows you to expose objects from a C++ application to an embedded Python interpreter for interactive scripting. ECS:Python is light-weight and easy to use.

To get started all you need to do from your project is #include "EcsPython.h", and link to the EcsPython library. Included with ECS:Python is a demo project (/example) written to assist developers in understanding how to use the API.

ECS:Python requires a Python distribution to be installed on your system. Python can be downloaded from: www.python.org/download

Build

git clone https://github.com/cross-platform/ecs-python.git
cd ecs-python
mkdir build
cd build
cmake ..
make
  • cmake .. will auto-detect your IDE / compiler. To manually select one, use cmake -G.
  • When building for an IDE, instead of make, simply open the cmake generated project file.

Debugging on Windows

The Windows Python distros do not come packaged with a debug library: "pythonXX_d.lib". So, in order to get ECS:Python to compile in Debug mode:

  1. Open: "<python_install_dir>\include\pyconfig.h"
  2. Comment out the line "# define Py_DEBUG"
  3. Search and replace "_d.lib" with ".lib"

About

Light-weight C++ library for embedding Python into C++

Topics

bindingcppinteroppythonscripting

Resources

Readme
BSD-2-Clause license
Activity
Custom properties

Stars

19 stars

Watchers

3 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.