Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
fab881ca
Commit
fab881ca
authored
Oct 18, 2015
by
Wenzel Jakob
Browse files
appveyor CI script
parent
b1b71402
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
6 deletions
+38
-6
.appveyor.yml
.appveyor.yml
+16
-0
README.md
README.md
+2
-1
example/example10.py
example/example10.py
+5
-1
example/example7.py
example/example7.py
+6
-1
example/run_test.py
example/run_test.py
+9
-3
No files found.
.appveyor.yml
0 → 100644
View file @
fab881ca
version
:
1.0.{build}
os
:
Visual Studio
2015
clone_folder
:
C:\projects\pybind11
branches
:
only
:
-
master
install
:
-
cinstall
:
python
build_script
:
-
echo Running cmake...
-
cd c:\projects\pybind11
-
cmake -G "Visual Studio 14 2015 Win64" -DPYTHON_INCLUDE_DIR:PATH=C:/Python34-x64/include -DPYTHON_LIBRARY:FILEPATH=C:/Python34-x64/libs/python34.lib -DPYTHON_EXECUTABLE:FILEPATH=C:/Python34-x64/python.exe
-
set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
set MSBuildOptions=/v:m /p:Configuration=Release /logger:%MSBuildLogger%
-
msbuild %MSBuildOptions% pybind11.sln
-
ctest -C "Release"
README.md
View file @
fab881ca
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
# pybind11 — Seamless operability between C++11 and Python
# pybind11 — Seamless operability between C++11 and Python
[

](https://travis-ci.org/wjakob/pybind11)
[

](http://pybind11.readthedocs.org/en/latest/?badge=latest)
[

](http://pybind11.readthedocs.org/en/latest/?badge=latest)
[

](https://travis-ci.org/wjakob/pybind11)
[

](https://ci.appveyor.com/project/wjakob/pybind11)
**pybind11**
is a lightweight header-only library that exposes C++ types in Python
**pybind11**
is a lightweight header-only 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
...
...
example/example10.py
View file @
fab881ca
...
@@ -4,7 +4,11 @@ import sys
...
@@ -4,7 +4,11 @@ import sys
sys
.
path
.
append
(
'.'
)
sys
.
path
.
append
(
'.'
)
import
example
import
example
import
numpy
as
np
try
:
import
numpy
as
np
except
ImportError
:
print
(
'NumPy missing'
)
exit
(
0
)
from
example
import
vectorized_func
from
example
import
vectorized_func
from
example
import
vectorized_func2
from
example
import
vectorized_func2
...
...
example/example7.py
View file @
fab881ca
...
@@ -4,7 +4,12 @@ import sys
...
@@ -4,7 +4,12 @@ import sys
sys
.
path
.
append
(
'.'
)
sys
.
path
.
append
(
'.'
)
from
example
import
Matrix
from
example
import
Matrix
import
numpy
as
np
try
:
import
numpy
as
np
except
ImportError
:
print
(
'NumPy missing'
)
exit
(
0
)
m
=
Matrix
(
5
,
5
)
m
=
Matrix
(
5
,
5
)
...
...
example/run_test.py
View file @
fab881ca
...
@@ -25,7 +25,8 @@ def sanitize(lines):
...
@@ -25,7 +25,8 @@ def sanitize(lines):
line
=
line
.
strip
()
line
=
line
.
strip
()
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
lower
=
line
.
lower
()
lower
=
line
.
lower
()
if
'constructor'
in
lower
or
'destructor'
in
lower
or
'ref'
in
lower
:
if
'constructor'
in
lower
or
'destructor'
in
lower
\
or
'ref'
in
lower
:
line
=
""
line
=
""
lines
[
i
]
=
line
lines
[
i
]
=
line
...
@@ -40,11 +41,16 @@ if path != '':
...
@@ -40,11 +41,16 @@ if path != '':
os
.
chdir
(
path
)
os
.
chdir
(
path
)
name
=
sys
.
argv
[
1
]
name
=
sys
.
argv
[
1
]
output_bytes
=
subprocess
.
check_output
([
sys
.
executable
,
name
+
".py"
])
output_bytes
=
subprocess
.
check_output
([
sys
.
executable
,
name
+
".py"
],
stderr
=
subprocess
.
STDOUT
)
output
=
sanitize
(
output_bytes
.
decode
(
'utf-8'
))
output
=
sanitize
(
output_bytes
.
decode
(
'utf-8'
))
reference
=
sanitize
(
open
(
name
+
'.ref'
,
'r'
).
read
())
reference
=
sanitize
(
open
(
name
+
'.ref'
,
'r'
).
read
())
if
output
==
reference
:
if
'NumPy missing'
in
output
:
print
(
'Test "%s" could not be run.'
%
name
)
exit
(
0
)
elif
output
==
reference
:
print
(
'Test "%s" succeeded.'
%
name
)
print
(
'Test "%s" succeeded.'
%
name
)
exit
(
0
)
exit
(
0
)
else
:
else
:
...
...
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