Skip to content

Commit

Permalink
run_pip_compile doesn't make sense here
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Dec 5, 2023
1 parent 25b4e7b commit e5d9c50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions hatch_pip_compile/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def install_dependencies(self) -> None:
Install the dependencies with `pip`
"""
with self.environment.safe_activation():
self.environment.run_pip_compile()
if not self.environment.piptools_lock_file.exists():
return
extra_args = self.environment.config.get("pip-compile-install-args", [])
Expand Down Expand Up @@ -118,7 +117,6 @@ def _full_install(self) -> None:
3) (re)install project
"""
with self.environment.safe_activation():
self.environment.run_pip_compile()
self.install_dependencies()
if not self.environment.skip_install:
if self.environment.dev_mode:
Expand Down
1 change: 1 addition & 0 deletions hatch_pip_compile/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def sync_dependencies(self) -> None:
"""
Sync dependencies
"""
self.run_pip_compile()
self.installer.sync_dependencies()

@property
Expand Down

0 comments on commit e5d9c50

Please sign in to comment.