Skip to content

Instantly share code, notes, and snippets.

@bradleyayers
Created April 24, 2011 08:59
Show Gist options
  • Save bradleyayers/939416 to your computer and use it in GitHub Desktop.
Save bradleyayers/939416 to your computer and use it in GitHub Desktop.
Patch for copy_to_build_dir
def copy_to_build_dir(self, req_to_install):
target_dir = req_to_install.editable and self.src_dir or self.build_dir
logger.info("Copying %s to %s" % (req_to_install.name, target_dir))
dest = os.path.join(target_dir, req_to_install.name)
copytree(req_to_install.source_dir, dest)
call_subprocess(["python", "%s/setup.py" % dest, "clean"],
cwd=dest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment