Skip to content

Use --upgrade flag for user environment pip install #3077

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

Closed
wants to merge 2 commits into from

Conversation

wmayner
Copy link
Contributor

@wmayner wmayner commented Aug 31, 2017

Addresses #3027.

I'm not sure if this will cause undesirable side-effects, so more discussion is needed—but I figured I'd make the PR in any case.

Installs the user-provided requirements with the `--upgrade` flag.
@wmayner wmayner changed the title Use --upgrade flag for user environment pip install Use --upgrade flag for user environment pip install Aug 31, 2017
@wmayner
Copy link
Contributor Author

wmayner commented Sep 3, 2017

@ericholscher, by the way, I'd be happy to help out triaging tickets—would you grant me the necessary permissions?

@ericholscher
Copy link
Member

Sure thing. I added you. I know there is a reason we removed the call to -U on pip, but I can't remember what it was. I'll do a bit of research and see if I can remember what issue it was causing.

@wmayner
Copy link
Contributor Author

wmayner commented Sep 5, 2017

Sounds good. Thanks for the permissions!

@wmayner wmayner added PR: ready for review Support Support question Improvement Minor improvement to code labels Sep 12, 2017
@agjohnson
Copy link
Contributor

I vaguely recall a problem with pip package caching while forcing upgrades. I'm going to bump up plans to test out feature flagging on projects this week. This is yet another case where we could push out a change on a sample and see if it blows up.

@wmayner
Copy link
Contributor Author

wmayner commented Oct 4, 2017

@agjohnson, sounds good! Let me know if I can help.

agjohnson added a commit that referenced this pull request Oct 27, 2017
…stall

We're not yet sure if this will blow up user defined requirements, feature here
will be used to test on a sample.

Refs #3077
Closes #3077
@agjohnson agjohnson self-assigned this Oct 27, 2017
agjohnson added a commit that referenced this pull request Oct 31, 2017
…stall (#3201)

* Add feature flipping models to Projects, plus example feature flip

Also, use a new pattern for API instance objects

* Refactoring the make_api_* calls into the API models

* Add migrations for proxy models

* Add some admin features

* Bump setuptools version.

* Add feature flip for setuptools latest version

Also, add a convenience method on the Project model for feature flag dependent
values.

* Use `--upgrade` instead of `-U` in `pip` args

* Add upgrade flag to user environment pip install

Installs the user-provided requirements with the `--upgrade` flag.

* Add feature flip for always upgrading user defined packages on pip install

We're not yet sure if this will blow up user defined requirements, feature here
will be used to test on a sample.

Refs #3077
Closes #3077

* Rework feature relationship, add default true value based on date

This allows for features on deprecated code, where we can say the feature is
true historically.

* Fix some issues, more tests

* Rename Feature.feature -> Feature.feature_id, other cleanup

* Drop setuptools pinning

* Use semver for setuptools version

* Missed merge conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants