-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
✨ install with pip [former] #35
Conversation
Co-authored-by: Justin Flannery <juftin@juftin.com>
Co-authored-by: Justin Flannery <juftin@juftin.com>
Co-authored-by: Justin Flannery <juftin@juftin.com>
if not self.lockfile_up_to_date: | ||
self.install_pip_tools() | ||
if self.piptools_lock_file.exists(): | ||
_ = self.piptools_lock.compare_python_versions( | ||
verbose=self.config.get("pip-compile-verbose", None) | ||
) | ||
self.pip_compile_cli() |
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.
There is a safe_activation
context needed here
if not self.lockfile_up_to_date: | |
self.install_pip_tools() | |
if self.piptools_lock_file.exists(): | |
_ = self.piptools_lock.compare_python_versions( | |
verbose=self.config.get("pip-compile-verbose", None) | |
) | |
self.pip_compile_cli() | |
if not self.lockfile_up_to_date: | |
with self.safe_activation(): | |
self.install_pip_tools() | |
if self.piptools_lock_file.exists(): | |
_ = self.piptools_lock.compare_python_versions( | |
verbose=self.config.get("pip-compile-verbose", None) | |
) | |
self.pip_compile_cli() |
with self.environment.safe_activation(): | ||
self.install_dependencies() |
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.
See #34 (comment)
There is a scenario where the lockfile doesn't exist and install_dev_mode
invokes _full_install
without run_pip_compile
ever being called
with self.environment.safe_activation(): | |
self.install_dependencies() | |
with self.environment.safe_activation(): | |
self.environment.run_pip_compile() | |
self.install_dependencies() |
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.
Ah just commit these! Oh I see, you can't 😅
Maybe needs yet another new PR as per the other comment. Or let me know, I can just commit this
It might be messing up because the commit is in my repo 🤔 Regarding the co-authored-by - you can always add that string manually You should perhaps just push the same branch to your repo (+ a new PR)
|
#36 now 🤷 |
Changes
installer
classYet another alternative to #30
Closes #29