summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jonglez <30461003+jonglezb@users.noreply.github.com>2021-01-27 14:53:09 +0100
committerGitHub <noreply@github.com>2021-01-27 07:53:09 -0600
commit0efe54f72285138e766b84cd889ebaf5a6d88c58 (patch)
tree4f2b14f0ae3aca287968e162a06d1419be34acdd
parent561557d2f5cc780678316174d65ff44aea4022d3 (diff)
downloadspack-0efe54f72285138e766b84cd889ebaf5a6d88c58.tar.gz
spack-0efe54f72285138e766b84cd889ebaf5a6d88c58.tar.bz2
spack-0efe54f72285138e766b84cd889ebaf5a6d88c58.tar.xz
spack-0efe54f72285138e766b84cd889ebaf5a6d88c58.zip
mxnet: Fix python lib installation (#21298)
-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=/')