mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: install wheel in venv
closes https://github.com/frappe/frappe/issues/18718
This commit is contained in:
parent
ca2545052d
commit
4996afb012
@ -361,6 +361,7 @@ class BenchSetup(Base):
|
||||
self.run(f"{venv} env", cwd=self.bench.name)
|
||||
|
||||
self.pip()
|
||||
self.wheel()
|
||||
|
||||
if os.path.exists(frappe):
|
||||
self.run(
|
||||
@ -398,6 +399,19 @@ class BenchSetup(Base):
|
||||
f"{self.bench.python} -m pip install {quiet_flag} --upgrade pip", cwd=self.bench.name
|
||||
)
|
||||
|
||||
@step(title="Installing wheel", success="Installed wheel")
|
||||
def wheel(self, verbose=False):
|
||||
"""Wheel is required for building old setup.py packages.
|
||||
ref: https://github.com/pypa/pip/issues/8559"""
|
||||
import bench.cli
|
||||
|
||||
verbose = bench.cli.verbose or verbose
|
||||
quiet_flag = "" if verbose else "--quiet"
|
||||
|
||||
return self.run(
|
||||
f"{self.bench.python} -m pip install {quiet_flag} wheel", cwd=self.bench.name
|
||||
)
|
||||
|
||||
def logging(self):
|
||||
from bench.utils import setup_logging
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user