Skip to content

Commit

Permalink
Update appenv to include changes that fixed #107
Browse files Browse the repository at this point in the history
  • Loading branch information
ctheune committed Oct 29, 2021
1 parent 32ac99f commit 657e8a4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions appenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,9 @@ def _prepare(self):
# for ones that are clean or rebuild if necessary
os.chdir(self.base)
if not os.path.exists('requirements.lock'):
print('Running unclean installation from requirements.txt')
env_dir = os.path.join(self.appenv_dir, 'unclean')
ensure_venv(env_dir)
print('Ensuring unclean install ...')
cmd('{env_dir}/bin/python -m pip install -r requirements.txt'
' --upgrade'.format(env_dir=env_dir))
print('No requirements.lock found. Generate it using'
' ./appenv update-lockfile.')
sys.exit(67)
else:
hash_content = []
requirements = open("requirements.lock", "rb").read()
Expand Down

0 comments on commit 657e8a4

Please sign in to comment.