Skip to content

Commit

Permalink
build the archive outside of the project first
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Jan 26, 2024
1 parent 9f47331 commit b00122c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1843,9 +1843,11 @@ def _archive_project(project, extension):

# Faster version than calling anaconda-project archive
aproject = Project(project, must_exist=True)
project_ops.archive(aproject, os.path.join(archive_path, f'{project}{extension}'))
tmp_target = f'{project}{extension}'
project_ops.archive(aproject, f'{project}{extension}')
shutil.move(tmp_target, os.path.join(archive_path, f'{project}{extension}'))
# subprocess.run(
# ["anaconda-project", "archive", "--directory", f"{project}", f"{project}/_archive/{project}{extension}"],
# ["anaconda-project", "archive", "--directory", f"{project}", f"{project}{extension}"],
# check=True
# )

Expand Down

0 comments on commit b00122c

Please sign in to comment.