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

desiconda normpath and fix 'is not' SyntaxWarning #150

Merged
merged 1 commit into from Aug 4, 2020
Merged

Conversation

sbailey
Copy link
Contributor

@sbailey sbailey commented Aug 4, 2020

This PR makes desiInstall more robust to a non-standard $DESICONDA by filtering it through os.path.normpath before parsing it. In particular the previous version interpreted /global/common/software/desi/cori/desiconda/20200801-1.4.0-spec//conda as version '' (blank) instead of '20200801-1.4.0-spec' due to the double slash.

It also fixes a py3.8 SyntaxWarning about using is not instead != when comparing a variable to a literal (prior syntax happens to work with cpython, but isn't guaranteed by the language syntax). blat is not None is still ok, but blat is not "" raises a SyntaxWarning in py3.8.

@sbailey sbailey merged commit 4454c2c into master Aug 4, 2020
@sbailey sbailey deleted the install branch August 4, 2020 23:13
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.

None yet

1 participant