Skip to content

Commit

Permalink
Remove old controlfile conversion tools
Browse files Browse the repository at this point in the history
  • Loading branch information
olemke committed Nov 7, 2024
1 parent a9e2b7e commit 662eb04
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 717 deletions.
30 changes: 1 addition & 29 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ add_custom_target(
COMMENT "Copying python/test files"
)

file(GLOB_RECURSE PYTHON_PYARTS_BIN_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/bin/*")
add_custom_target(
pyarts_copy_bin_python_source_files
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different bin ${CMAKE_CURRENT_BINARY_DIR}/bin
DEPENDS ${PYTHON_PYARTS_BIN_FILES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Copying python/bin files"
)

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/controlfiles/)

#
# Install pyarts
#
Expand All @@ -73,7 +62,7 @@ configure_file(MANIFEST.in MANIFEST.in)

add_custom_target(pyarts
ALL
DEPENDS pyarts_cpp pyarts_cpp_stub pyarts_copy_python_source_files pyarts_copy_test_python_source_files pyarts_copy_bin_python_source_files
DEPENDS pyarts_cpp pyarts_cpp_stub pyarts_copy_python_source_files pyarts_copy_test_python_source_files
COMMENT "Updating ARTS python package.")
add_custom_target(pyarts-package
ALL
Expand All @@ -82,23 +71,6 @@ add_custom_target(pyarts-package
DEPENDS pyarts_cpp
COMMENT "Building ARTS python package.")

set(CONTROLFILE_DIR ${ARTS_SOURCE_DIR}/tests)
add_custom_target(python_conversion_tests
COMMAND ${ARTS_PYTHON_INTERPRETER} bin/arts_convert.py ${CONTROLFILE_DIR} -o controlfiles
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS pyarts
COMMENT "Converting ${CONTROLFILE_DIR}/.../*.arts controlfiles to Python")

set(CONTROLFILE_DIR ${ARTS_SOURCE_DIR}/examples)
add_custom_target(python_conversion_examples
COMMAND ${ARTS_PYTHON_INTERPRETER} bin/arts_convert.py ${CONTROLFILE_DIR} -o controlfiles
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS pyarts
COMMENT "Converting ${CONTROLFILE_DIR}/.../*.arts controlfiles to Python")
add_custom_target(python_conversion
DEPENDS python_conversion_tests python_conversion_examples
COMMENT "Converting *.arts controlfiles to Python")

add_custom_target(pyarts_tests
COMMAND ${Python_EXECUTABLE} -m pytest -v test
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
Expand Down
82 changes: 0 additions & 82 deletions python/bin/arts_convert.py

This file was deleted.

35 changes: 0 additions & 35 deletions python/bin/test_driver.py

This file was deleted.

Loading

0 comments on commit 662eb04

Please sign in to comment.