Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename executables #131

Merged
merged 7 commits into from
Aug 18, 2022
Merged

Rename executables #131

merged 7 commits into from
Aug 18, 2022

Conversation

kursatyurt
Copy link
Collaborator

@kursatyurt kursatyurt commented Aug 15, 2022

Change the name of executables according to #83

@kursatyurt kursatyurt requested a review from davidscn August 15, 2022 22:57
@kursatyurt kursatyurt self-assigned this Aug 15, 2022
CMakeLists.txt Outdated
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/vtk_calculator.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/precice-aste-partition.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/precice-aste-join.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/precice-aste-evaluate.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to keep the .py extension or can we omit it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit them. Probably the best way is to keep them in the source folder but install them without extension.

Those scripts are executed by /usr/bin/env python3 as long as python3 is installed, I should be safe.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the best way is to keep them in the source folder but install them without extension.

Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The developers can easily recognize the files from the extension. Removing the extension from the source file just makes it harder to understand I don't see any benefit. On the other hand, it does not matter whether it is a script file or binary executable for the user. Removing extension makes it closer to the "usual" executable experience.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not want have differences between the source code version and the build tree version. Let's go without the extension.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is ready to merge.

kursatyurt and others added 5 commits August 17, 2022 16:44
* Exit on error in run all script

* Remove redirection

* Run all cases and exit

* Fix syntax; Move sh to bash

* Add missing parantesis

* Update tests/example/run-all.sh

Co-authored-by: David Schneider <[email protected]>

* Update tests/example/run-all.sh

Co-authored-by: David Schneider <[email protected]>

Co-authored-by: David Schneider <[email protected]>
@davidscn davidscn linked an issue Aug 18, 2022 that may be closed by this pull request
@davidscn davidscn merged commit ffa64ab into develop Aug 18, 2022
@davidscn davidscn deleted the rename_executables branch August 18, 2022 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discussion: rename executable and python scripts
2 participants