mxnet: Fix python lib installation (#21298)

This commit is contained in:
Baptiste Jonglez 2021-01-27 14:53:09 +01:00 committed by GitHub
parent 561557d2f5
commit 0efe54f722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,5 +127,8 @@ def install(self, spec, prefix):
# install python bindings # install python bindings
if '+python' in spec: if '+python' in spec:
python = which('python') # The python libs are in a separate dir, and it is necessary to change
python('python/setup.py', 'install', '--prefix={0}'.format(prefix)) # directory so that setup.py picks them up.
with working_dir('python'):
setup_py('install', '--prefix={0}'.format(prefix),
'--single-version-externally-managed', '--root=/')