Skip to content

Commit 7adcc83

Browse files
committed
cmake() Add target for python source distribution
1 parent b202263 commit 7adcc83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ add_custom_target(python-wheel
5353
COMMAND ${PYTHON_EXECUTABLE} setup.py bdist_wheel --dist-dir=${CMAKE_CURRENT_BINARY_DIR}
5454
)
5555

56+
add_custom_target(python-sdist
57+
COMMENT "Creating sdist for AMICI base python package"
58+
COMMAND ${PYTHON_EXECUTABLE} setup.py sdist --dist-dir=${CMAKE_BINARY_DIR}
59+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/sdist
60+
)
5661

5762
add_custom_command(
5863
OUTPUT always_rebuild

0 commit comments

Comments
 (0)