-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use cmake python functions defined in everest-cmake Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * fix python venv setup Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * Fix add_subdirectory Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * bump version Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> --------- Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de>
- Loading branch information
Showing
3 changed files
with
20 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
add_subdirectory(src/everest) | ||
|
||
add_custom_target(everestpy_pip_install_dist | ||
# remove build dir from pip | ||
COMMAND | ||
cmake -E remove_directory build | ||
COMMAND | ||
${PYTHON_EXECUTABLE} -m pip install --force-reinstall . | ||
WORKING_DIRECTORY | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
DEPENDS | ||
ev_create_pip_install_targets( | ||
PACKAGE_NAME | ||
everestpy | ||
DIST_DEPENDS | ||
everestpy_ln_dist | ||
COMMENT | ||
"Installing everestpy from distribution" | ||
LOCAL_DEPENDS | ||
everestpy_ln_local | ||
) | ||
|
||
add_custom_target(everestpy_pip_install_local | ||
# remove build dir from pip | ||
COMMAND | ||
cmake -E remove_directory build | ||
COMMAND | ||
${PYTHON_EXECUTABLE} -m pip install --force-reinstall -e . | ||
WORKING_DIRECTORY | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
ev_create_python_wheel_targets( | ||
PACKAGE_NAME | ||
everestpy | ||
DEPENDS | ||
everestpy_ln_local | ||
COMMENT | ||
"Installing everestpy via user-mode from build" | ||
everestpy_ln_dist | ||
) | ||
|
||
add_subdirectory(src/everest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters