Print

Print


however if instead of python3 -m pip install I do pip3 install it does work like a charm.

Any idea why? (pardon my ignorance if this is a trivial question or expected behaviour)

No worries @simonmichal. 👍 The problem there is that

python3 -m pip install dist/xrootd-6.0.0.tar.gz 

also puts your cwd on sys.path and as as things currently stand there is a xrootd.egg-info there, so pip "sees" the xrootd.egg-info and says "I already have a distribution of xrootd v6.0.0 on PYTHONPATH so there is nothing to install. So there are two alternatives:

  1. Easiest: Just use --upgrade even though you don't have anything installed yet
python3 -m pip install --upgrade ./dist/xrootd-6.0.0.tar.gz
  1. Change directories so xrootd.egg-info is off PATH. This is how things are done in CI:

https://github.com/xrootd/xrootd/blob/9db73ec71becb468045d73862048bf91726264e8/.github/workflows/build.yml#L634-L635

though I should maybe update that in the future to approach 1 which is easier to understand I think.

Directly calling pip3 doesn't have this behavior as you're not invoking it as a Python module, but then you're not guaranteed to have the right Python do the installation. Here though of course there is only one Python so there is no issue.

You also don't show enabling devtoolset-7 as you're on CentOS 7

https://github.com/xrootd/xrootd/blob/9db73ec71becb468045d73862048bf91726264e8/.github/workflows/build.yml#L631

but seems you didn't need it?

This (avoiding PATH issues) is one of the reasons that src distribution layouts for Python packages exist, but that's a discussion for another Issue.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/pull/1672/c1108914342@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1672#issuecomment-1108914342", "url": "https://github.com/xrootd/xrootd/pull/1672#issuecomment-1108914342", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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