class_docstr: Represents one configuration of a build, i.e.
  a set of versions of dependent libraries.
  
  Members:
      conda_always_copy: avoids hard linking which can behave weirdly.
      conda_debug: get added information about package search
      conda_dirty: see intermediate files after build
      build_inside_tree: output in build/ not ../build
      is_release: whether this is an official versioned release
class_docstr_tok: ["Represents","one","configuration","of","a","build",",","i.e",".","a","set","of","versions","of","dependent","libraries",".","Members",":","conda_always_copy",":","avoids","hard","linking","which","can","behave","weirdly",".","conda_debug",":","get","added","information","about","package","search","conda_dirty",":","see","intermediate","files","after","build","build_inside_tree",":","output","in","build\/","not","..","\/build","is_release",":","whether","this","is","an","official","versioned","release"]
docstr: Run after a build to move the built package, and, if using nightly, the
  used PyTorch package, to a location where they will be recognized
  as build artifacts.
docstr_tok: ["Run","after","a","build","to","move","the","built","package",",","and",",","if","using","nightly",",","the","used","PyTorch","package",",","to","a","location","where","they","will","be","recognized","as","build","artifacts","."]
code: def move_artifacts_to_store(
      self, store_pytorch_package: bool
  ) -> None:
      """
      Run after a build to move the built package, and, if using nightly, the
      used PyTorch package, to a location where they will be recognized
      as build artifacts.
      """
      print("moving artifacts")
      assert not self.build_inside_tree
      artifacts = Path("packages")
      artifacts.mkdir(exist_ok=True)
      for filename in (
          Path("../build/linux-64").resolve().glob("*.tar.bz2")
      ):
          print("moving", filename, "to", artifacts)
          shutil.move(filename, artifacts)
      if store_pytorch_package:
          for filename in Path("/opt/conda/pkgs").glob(
              "pytorch-[12].*.tar.bz2"
          ):
              print("moving", filename, "to", artifacts)
              shutil.move(filename, artifacts)
  
file_path: xformers/packaging/build_conda.py
imports: import argparse
  import os
  import shutil
  import subprocess
  from dataclasses import dataclass
  from pathlib import Path
  from typing import List
label_desc: Use image node_id 4 for calling the Build obj's underlying member method code with example usage: obj.move_artifacts_to_store(store_pytorch_package) without return types