Skip to content

Commit 3ab2222

Browse files
committed
Merge pull request #1303 from UV-CDAT/add_pep8_master
Add pep8 master
2 parents 3f99c8e + 187674f commit 3ab2222

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

CMake/cdat_modules/pep8_deps.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(pep8_deps ${python_pkg} ${setuptools_pkg})
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# The pep8 project
2+
3+
set(pep8_binary "${CMAKE_CURRENT_BINARY_DIR}/build/pep8")
4+
5+
ExternalProject_Add(pep8
6+
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}
7+
SOURCE_DIR ${pep8_binary}
8+
URL ${PEP8_SOURCE}
9+
URL_MD5 ${PEP8_MD5}
10+
BUILD_IN_SOURCE 1
11+
CONFIGURE_COMMAND ""
12+
BUILD_COMMAND ${PYTHON_EXECUTABLE} setup.py build
13+
INSTALL_COMMAND ${PYTHON_EXECUTABLE} setup.py install ${PYTHON_EXTRA_PREFIX}
14+
DEPENDS ${pep8_deps}
15+
${ep_log_options}
16+
)

CMake/cdat_modules/pep8_pkg.cmake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set( PEP8_MAJOR 1 )
2+
set( PEP8_MINOR 6 )
3+
set( PEP8_PATCH 2)
4+
set( PEP8_VERSION ${PEP8_MAJOR}.${PEP8_MINOR}.${PEP8_PATCH} )
5+
set( PEP8_URL ${LLNL_URL} )
6+
set( PEP8_GZ pep8-${PEP8_VERSION}.tar.gz )
7+
set( PEP8_MD5 c7a3f57d832484a6295164661fbb1335 )
8+
9+
set (nm PEP8)
10+
string(TOUPPER ${nm} uc_nm)
11+
set(${uc_nm}_VERSION ${${nm}_MAJOR}.${${nm}_MINOR}.${${nm}_PATCH})
12+
set(PEP8_SOURCE ${PEP8_URL}/${PEP8_GZ})
13+
14+
if (BUILD_TESTING)
15+
add_cdat_package(pep8 "" "" ON)
16+
endif()

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ include(dateutils_pkg)
488488
include(pyparsing_pkg)
489489
include(md5_pkg)
490490
include(mpi4py_pkg)
491+
include(pep8_pkg)
491492
include(pyopenssl_pkg)
492493
include(setuptools_pkg)
493494
include(myproxyclient_pkg)

0 commit comments

Comments
 (0)