For instance, installing in a virtualenv with only python3
in the bin
folder and python3.8
not in PATH
fails with the following output:
[...]
-- Installing: /storage_mnt/storage/user/lmoureau/nanoaod/venv/lib/python3.8/site-packages/pyxrootd/include/xrootd/private/XrdCl/XrdClZipOperations.hh
./install.sh: line 37: python3.8: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-hzwjyn3t/xrootd/setup.py", line 141, in <module>
setup(
File "/cvmfs/sft.cern.ch/lcg/views/LCG_99/x86_64-centos7-gcc10-opt/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/cvmfs/sft.cern.ch/lcg/releases/Python/3.8.6-3199b/x86_64-centos7-gcc10-opt/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/cvmfs/sft.cern.ch/lcg/releases/Python/3.8.6-3199b/x86_64-centos7-gcc10-opt/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/cvmfs/sft.cern.ch/lcg/releases/Python/3.8.6-3199b/x86_64-centos7-gcc10-opt/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-hzwjyn3t/xrootd/setup.py", line 118, in run
raise Exception( 'Install step failed!' )
Exception: Install step failed!
----------------------------------------
Creating a symlink venv/bin/python3.8
pointing to venv/bin/python3
worked around the problem.
This appears to be caused by heuristics used to determine the python
command around this line:
Passing the absolute path of the interpreter (sys.executable
) would probably be more robust.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1