diff options
author | Stephen Herbein <stephen272@gmail.com> | 2016-07-07 17:41:53 -0700 |
---|---|---|
committer | Stephen Herbein <stephen272@gmail.com> | 2016-07-07 17:41:53 -0700 |
commit | 1b53452618154b47caa5a4d8493ff025c9a3aa10 (patch) | |
tree | 938d245494fded2a2656ecb34a84aa91bf8e7956 | |
parent | b9148b1751b93c79930602ea23b0d8bd42b86637 (diff) | |
download | spack-1b53452618154b47caa5a4d8493ff025c9a3aa10.tar.gz spack-1b53452618154b47caa5a4d8493ff025c9a3aa10.tar.bz2 spack-1b53452618154b47caa5a4d8493ff025c9a3aa10.tar.xz spack-1b53452618154b47caa5a4d8493ff025c9a3aa10.zip |
docbook-xml: replace 'cp -t' with install_tree
'-t' is not supported by the default cp on Mac OS X
replace with install/install_tree
cannot just use install_tree since shutil.copytree insists that the dst
directory not exist
-rw-r--r-- | var/spack/repos/builtin/packages/docbook-xml/package.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/docbook-xml/package.py b/var/spack/repos/builtin/packages/docbook-xml/package.py index 9c22174610..87137168f3 100644 --- a/var/spack/repos/builtin/packages/docbook-xml/package.py +++ b/var/spack/repos/builtin/packages/docbook-xml/package.py @@ -23,7 +23,6 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## import os -import glob from spack import * @@ -35,9 +34,10 @@ class DocbookXml(Package): version('4.5', '03083e288e87a7e829e437358da7ef9e') def install(self, spec, prefix): - cp = which('cp') - - install_args = ['-a', '-t', prefix] - install_args.extend(glob.glob('*')) - - cp(*install_args) + for item in os.listdir('.'): + src = os.path.abspath(item) + dst = os.path.join(prefix, item) + if os.path.isdir(item): + install_tree(src, dst, symlinks=True) + else: + install(src, dst) |