summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mxnet/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mxnet/package.py b/var/spack/repos/builtin/packages/mxnet/package.py
index 5cc9977ef3..2a5e652120 100644
--- a/var/spack/repos/builtin/packages/mxnet/package.py
+++ b/var/spack/repos/builtin/packages/mxnet/package.py
@@ -127,5 +127,8 @@ class Mxnet(MakefilePackage, CudaPackage):
# install python bindings
if '+python' in spec:
- python = which('python')
- python('python/setup.py', 'install', '--prefix={0}'.format(prefix))
+ # The python libs are in a separate dir, and it is necessary to change
+ # directory so that setup.py picks them up.
+ with working_dir('python'):
+ setup_py('install', '--prefix={0}'.format(prefix),
+ '--single-version-externally-managed', '--root=/')