Dear Asoka,
On Tue, Jul 11, 2023 at 10:31:12PM +0200, Asoka De Silva wrote:
> Hi Guilherme ,
>
> If we find that this becomes too annoying we
> can consider reverting the default back to a blank value
>
> Actually wouldn't it be cleaner to do this automatically if it is not
> supported for a certain python version (eg for all python versions 3.6
> or older ?). Or is there a way to make it work if I installed
> additional rpms for python2.7 and 3.6 ?
For Python 2.7, you probably will need to set PIP_OPTIONS, but for python3
you can run 'python3 -m pip install --upgrade pip setuptools wheel' and then
it should work. However, I think that to avoid further problems with this,
in the next patch release I will revert the change that set PIP_OPTIONS to
--use-pep517. All CI builds were passing, but in many we actually override
it with -DPIP_OPTIONS=--verbose, so it didn't catch this problem with older
versions of Python.
>
> Note that you can also
> set -DINSTALL_PYTHON_BINDINGS=FALSE, then cd build/bindings/python
> and then
> call "python3 -m pip install ." as a separate step
>
> thanks - this would involve quite a lot of work to rewrite my build
> scripts so I did this instead:
>
> cmake . -DPIP_OPTIONS=""
I just tried this on an Alma8 container to make sure and it works for me there.
After setting it with the command above, I get a successful installation.
...
> -- Generating done
>
> CMake Warning:
>
> Manually-specified variables were not used by the project:
>
> ENABLE_PERL
>
> PYTHON_EXECUTABLE
Note that since 5.6 we use CMake's new FindPython.cmake module, so you need to
use -DPython_EXECUTABLE=... instead of -DPYTHON_EXECUTABLE. Also, the option
ENABLE_PERL has been removed a long time ago.
> ....
>
> -- Processing:
> //tmp/desilva/xrootd/5.6.1-x86_64-centos8/build/share/man/man8/xrootd.8
>
> Invalid requirement: ''
>
> ...
> Any ideas ?
The error above looks like it's due to an empty value of PIP_OPTIONS. I can
reproduce it by calling pip with "pip install '' --target test-install ."
However, as I mentioned above, it works for me on Alma8. In any case, if this
is really the issue, you can set -DPIP_OPTIONS=--verbose, which should side step
this. I hope that this is enough for you to get a sucessful build.
In any case, is there a particular reason for you to not install XRootD from the
EPEL repository or our own repository using the RPMs?
Best regards,
-Guilherme
########################################################################
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
|