mxnet: Fix python lib installation (#21298)
This commit is contained in:
parent
561557d2f5
commit
0efe54f722
1 changed files with 5 additions and 2 deletions
|
@ -127,5 +127,8 @@ def install(self, spec, prefix):
|
|||
|
||||
# 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=/')
|
||||
|
|
Loading…
Reference in a new issue