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

Fixed issue that appeared when trying to remove temporary folder from different file systems #2473

Merged
merged 4 commits into from
Oct 4, 2019

Conversation

jcohenadad
Copy link
Member

This PR accommodates fixes an issue that appeared when installing SCT under Singulary container, where a folder located in another file system could not be moved.

The implemented solution is to copy the files (instead of moving them). This PR also includes a few minor improvements, notably by replacing shutil by distutils for copying files to existing directories (not possible with shutil.copytree).

Fixes #2472

@jcohenadad
Copy link
Member Author

@baxpr could you please test this branch and let me know how it goes?

@jcohenadad jcohenadad self-assigned this Oct 3, 2019
@jcohenadad jcohenadad added installation category: install_sct or pip/setup.py sct_download_data context: labels Oct 3, 2019
@jcohenadad jcohenadad added this to the 4.1.0 milestone Oct 3, 2019
@baxpr
Copy link
Contributor

baxpr commented Oct 4, 2019

@jcohenadad Thanks for this! I tested, and it does fix my singularity build problem.

@jcohenadad jcohenadad merged commit 0dbbcbf into master Oct 4, 2019
@jcohenadad jcohenadad deleted the jca/2472-shutils-move branch October 4, 2019 21:34
jcohenadad added a commit that referenced this pull request Dec 18, 2019
… different file systems (#2473)

* install_sct: replaced hard-coded bin by $BIN_DIR

* sct_download_data: Now copying folder instead of moving it

Also using distutils instead of shutil, to copy directories that might
not be empty.
Addressed issue #2472

* sct_download_data: No more removal of existing file in dest folder


Former-commit-id: ba29abbae261e65ee162db200a04e6b59ad782ad [formerly 6129e20 [formerly 0dbbcbf]]
Former-commit-id: cbe2ccac7f1151db34675a51d906307859485f3e
Former-commit-id: 3701e58
jcohenadad added a commit that referenced this pull request Dec 18, 2019
… different file systems (#2473)

* install_sct: replaced hard-coded bin by $BIN_DIR

* sct_download_data: Now copying folder instead of moving it

Also using distutils instead of shutil, to copy directories that might
not be empty.
Addressed issue #2472

* sct_download_data: No more removal of existing file in dest folder


Former-commit-id: 0dbbcbf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation category: install_sct or pip/setup.py sct_download_data context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes when trying to remove folder under Singularity container
2 participants