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
36919ea6
Commit
36919ea6
authored
Aug 27, 2016
by
Wenzel Jakob
Committed by
GitHub
Aug 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #364 from jagerman/cmake-remove-pip
Don't install pytest from cmake, just fail instead
parents
324c9c52
dd3d56a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
.travis.yml
+3
-3
tests/CMakeLists.txt
+2
-12
No files found.
.travis.yml
View file @
36919ea6
...
...
@@ -34,7 +34,7 @@ matrix:
apt
:
sources
:
[
ubuntu-toolchain-r-test
,
kubuntu-backports
]
packages
:
[
g++-4.8
,
cmake
]
install
:
false
install
:
pip install pytest
# Documentation build:
-
os
:
linux
language
:
docs
...
...
@@ -90,10 +90,10 @@ install:
# Install dependencies
if [ -n "$DOCKER" ]; then
docker exec --tty "$containerid" apt-get -y --no-install-recommends install \
python$PYTHON-dev python$PY-p
ip python$PY-setuptools
python$PY-scipy \
python$PYTHON-dev python$PY-p
ytest
python$PY-scipy \
libeigen3-dev cmake make g++
else
pip install numpy scipy
pip install numpy scipy
pytest
wget -q -O eigen.tar.gz https://bitbucket.org/eigen/eigen/get/3.2.9.tar.gz
tar xzf eigen.tar.gz
...
...
tests/CMakeLists.txt
View file @
36919ea6
...
...
@@ -58,7 +58,7 @@ if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
endforeach
()
endif
()
# Make sure pytest is found or
try to install it if it's not found
# Make sure pytest is found or
produce a fatal error
macro
(
pybind11_execute_python
)
execute_process
(
COMMAND
${
PYTHON_EXECUTABLE
}
-m
${
ARGN
}
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE pybind11_execute_python_error
)
...
...
@@ -67,17 +67,7 @@ endmacro()
if
(
NOT PYBIND11_PYTEST_FOUND
)
pybind11_execute_python
(
pytest --version --noconftest
)
if
(
pybind11_execute_python_error
)
message
(
STATUS
"Installing pytest using pip"
)
pybind11_execute_python
(
pip install pytest
)
if
(
pybind11_execute_python_error
)
message
(
STATUS
"Installing pytest using pip --user (fallback)"
)
pybind11_execute_python
(
pip install --user pytest
)
endif
()
pybind11_execute_python
(
pytest --version --noconftest
)
if
(
pybind11_execute_python_error
)
message
(
FATAL_ERROR
"Running the tests requires pytest. Please install it manually."
)
endif
()
message
(
FATAL_ERROR
"Running the tests requires pytest. Please install it manually (try:
${
PYTHON_EXECUTABLE
}
-m pip install pytest)"
)
endif
()
set
(
PYBIND11_PYTEST_FOUND TRUE CACHE INTERAL
""
)
...
...
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