mirror of
https://github.com/ceph/ceph
synced 2024-12-30 15:33:31 +00:00
bdcc94a1d1
To be able to catch problems with python2 *and* python3, run flake8 with both versions. From the flake8 homepage: It is very important to install Flake8 on the correct version of Python for your needs. If you want Flake8 to properly parse new language features in Python 3.5 (for example), you need it to be installed on 3.5 for Flake8 to understand those features. In many ways, Flake8 is tied to the version of Python on which it runs. Also fix the problems with python3 on the way. Note: This requires now the six module for teuthology. But this is already an install_require in teuthology itself. Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
10 lines
215 B
CMake
10 lines
215 B
CMake
set(CEPH_BUILD_VIRTUALENV $ENV{TMPDIR})
|
|
if(NOT CEPH_BUILD_VIRTUALENV)
|
|
set(CEPH_BUILD_VIRTUALENV ${CMAKE_BINARY_DIR})
|
|
endif()
|
|
|
|
if(WITH_TESTS)
|
|
include(AddCephTest)
|
|
add_tox_test(qa flake8-py2 flake8-py3)
|
|
endif()
|