-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Bump psycopg2 to 2.7.4; #5698
Merged
Merged
Bump psycopg2 to 2.7.4; #5698
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1774c77
Bump psycopg2 to 2.7.4; this fixes compatibility with the default ubu…
dannon 3b84714
Per http://initd.org/psycopg/articles/2018/02/08/psycopg-274-released/,
dannon 3df781a
Update psycopg2 conditional dependency check to use the new psycopg2-…
dannon e84dd5d
Rudimentary check for old psycopg2==2.4.3, which we clean up before i…
dannon 30c2ea0
Make psycopg2 grep a little more robust
dannon d44b477
Specify format to squelch deprecation warning about columns/legacy
dannon 8742614
Quieter grepping.
dannon 60ca4d4
Instead of using -q, send to /dev/null, since the early pipe exit blo…
dannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change the name of this - it won't
upgrade(edit: uninstall might be a better word) older versions of this when upgrading Galaxy right? This could still be the right thing to do but maybe we need to think about how to handle that - should we uninstall psycopg2 in common startup?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmchilton Good point, I can check what happens but I don't know how this would behave off the top of my head if you have both installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To update this comment, which was subsequently discussed on IRC - the suspicion was correct. Installing psycopg2-binary does not automatically uninstall psycopg2 even though they share the same namespace in site-packages. This leaves you in a weird situation where pip thinks both are installed, but really only the most recently installed library is intact.
Uninstalling the previous lib will mangle the new one, and so taking care to manually remove
psycopg2==2.4.3
and removing it prior to installing a newpsycopg2-binary
version, when in galaxy's .venv, is what I've implemented in subsequent commits. This seems the safest path.This behavior should mirror what pip would do if we had a new version of
psycopg2==2.4.3
listed here -- that is, uninstalling the old prior to installing new.