8000 setup: always copy subdirs ocean, landice,... by cwsmith · Pull Request #550 · MPAS-Dev/MPAS-Tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

setup: always copy subdirs ocean, landice,... #550

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

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

cwsmith
Copy link
Contributor
@cwsmith cwsmith commented Jan 29, 2024

If changes are made to the scripts in these directories running python -m pip install -e conda_package will not update them. This change removes the directory existence check so that they are always copied.

Thanks to @xylar for the pointer on the fix for this.

closes #549

If changes are made to the scripts in these directories running `python -m pip install -e conda_package` will not update them.  This change removes the directory existence check so that they are always copied.

copytree will not overwrite, so we need to delete the existing dir first.
@cwsmith cwsmith marked this pull request as ready for review January 29, 2024 01:52
@xylar xylar self-assigned this Jan 29, 2024
@xylar xylar self-requested a review January 29, 2024 11:52
Copy link
Collaborator
@xylar xylar left a comment

Choose a reason for hiding this comment

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

@cwsmith, this looks great

I tested it out with:

conda create -y -n test mpas_tools
conda activate test
python -m pip install -e conda_package/

Then, I modified landice/mesh_tools_li/tune_ismip6_melt_deltat.py, ran:

python -m pip install -e conda_package/

again and verified that conda_package/landice/mesh_tools_li/tune_ismip6_melt_deltat.py contained the changes.

@xylar xylar merged commit 5d77fca into MPAS-Dev:master Jan 29, 2024
@xylar
Copy link
Collaborator
xylar commented Jan 29, 2024

@cwsmith, this will appear in the next release but likely won't make it into Compass immediately because I think we pin a specific version. Hopefully, that won't affect you because presumably your development branches will always start from the MPAS-Tools master.

@cwsmith cwsmith deleted the cws/copyScripts branch January 29, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0