Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
3b806d41
Commit
3b806d41
authored
Oct 11, 2015
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configuration files for Travis CI integration
parent
d2a902bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
.travis.yml
+29
-0
CMakeLists.txt
+4
-2
README.md
+2
-0
example/run_test.py
+1
-1
No files found.
.travis.yml
0 → 100644
View file @
3b806d41
language
:
cpp
sudo
:
false
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
deadsnakes
packages
:
-
g++-4.8
-
python3.5
-
python3.5-dev
-
python3.5-venv
matrix
:
include
:
-
os
:
linux
compiler
:
gcc-4.8
script
:
-
pyvenv-3.5 venv
-
cmake -DPYBIND_PYTHON_VERSION=3.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.5m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.5m.so -DPYTHON_EXECUTABLE:FILEPATH=`pwd`/venv/bin/python3.5 -DCMAKE_CXX_COMPILER=g++-4.8
-
make -j 2
-
source venv/bin/activate
-
pip install numpy
-
CTEST_OUTPUT_ON_FAILURE=TRUE make test
-
os
:
osx
compiler
:
clang
script
:
-
cmake -DPYBIND_PYTHON_VERSION=2.7
-
make -j 2
-
CTEST_OUTPUT_ON_FAILURE=TRUE make test
CMakeLists.txt
View file @
3b806d41
...
@@ -16,9 +16,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
...
@@ -16,9 +16,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
"MinSizeRel"
"RelWithDebInfo"
)
"MinSizeRel"
"RelWithDebInfo"
)
endif
()
endif
()
set
(
PYBIND_PYTHON_VERSION
""
CACHE STRING
"Python version to use for compiling the example application"
)
set
(
Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6
)
set
(
Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6
)
find_package
(
PythonLibs REQUIRED
)
find_package
(
PythonLibs
${
PYBIND_PYTHON_VERSION
}
REQUIRED
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonInterp
${
PYBIND_PYTHON_VERSION
}
REQUIRED
)
string
(
TOUPPER
"
${
CMAKE_BUILD_TYPE
}
"
U_CMAKE_BUILD_TYPE
)
string
(
TOUPPER
"
${
CMAKE_BUILD_TYPE
}
"
U_CMAKE_BUILD_TYPE
)
if
(
UNIX
)
if
(
UNIX
)
...
...
README.md
View file @
3b806d41
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
# pybind11 — Seamless operability between C++11 and Python
# pybind11 — Seamless operability between C++11 and Python
[

](https://travis-ci.org/wjakob/pybind11)
**pybind11**
is a lightweight header library that exposes C++ types in Python
**pybind11**
is a lightweight header library that exposes C++ types in Python
and vice versa, mainly to create Python bindings of existing C++ code. Its
and vice versa, mainly to create Python bindings of existing C++ code. Its
goals and syntax are similar to the excellent
goals and syntax are similar to the excellent
...
...
example/run_test.py
View file @
3b806d41
...
@@ -17,7 +17,7 @@ def sanitize(lines):
...
@@ -17,7 +17,7 @@ def sanitize(lines):
line
=
""
line
=
""
line
=
remove_unicode_marker
.
sub
(
r'\1'
,
line
)
line
=
remove_unicode_marker
.
sub
(
r'\1'
,
line
)
line
=
remove_long_marker
.
sub
(
r'\1'
,
line
)
line
=
remove_long_marker
.
sub
(
r'\1'
,
line
)
line
=
remove_hex
.
sub
(
r'0
xHEX
'
,
line
)
line
=
remove_hex
.
sub
(
r'0'
,
line
)
line
=
shorten_floats
.
sub
(
r'\1'
,
line
)
line
=
shorten_floats
.
sub
(
r'\1'
,
line
)
line
=
line
.
replace
(
'__builtin__'
,
'builtins'
)
line
=
line
.
replace
(
'__builtin__'
,
'builtins'
)
line
=
line
.
replace
(
'example.'
,
''
)
line
=
line
.
replace
(
'example.'
,
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment