Local Demonstrator for CentOS 7:

For CentOS 7's old default pip and setuptools things are installed as an egg and work fine. 👍

$ docker run -it cern/cc7-base /bin/bash
yum -y install cmake3 make gcc-c++ zlib-devel openssl-devel python3-devel python3-pip libuuid-devel devtoolset-7 git
git clone https://github.com/xrootd/xrootd
cd xrootd
git fetch origin pull/1700/head:pr-1700
git checkout pr-1700
git config --global user.name "debug"
git config --global user.email "debug"
git tag -a v6.0.0 -m test
cd ..
. /opt/rh/devtoolset-7/enable
cmake3 \
    -DCMAKE_INSTALL_PREFIX=/usr/local/ \
    -DPYTHON_EXECUTABLE=$(command -v python3) \
    -DENABLE_TESTS=ON \
    -DPIP_OPTIONS="--verbose" \
    -S xrootd \
    -B build
cmake3 build -LH
cmake3 \
    --build build \
    --clean-first \
    --parallel $(($(nproc) - 1))
cmake3 --build build --target install
command -v xrootd
command -v xrdcp
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
python3 -c 'import pyxrootd; print(pyxrootd)'
python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'
[root@4fc69f40c83d /]# python3 -m pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.3)
setuptools (39.2.0)
xrootd (6.0.0)
[root@4fc69f40c83d /]# python3 -m pip show xrootd
Name: xrootd
Version: 6.0.0
Summary: XRootD Python bindings
Home-page: http://xrootd.org
Author: XRootD Developers
Author-email: [log in to unmask]
License: LGPLv3+
Location: /usr/local/lib64/python3.6/site-packages
Requires: 
[root@4fc69f40c83d /]# python3 -c 'import XRootD; print(XRootD)'
<module 'XRootD' from '/usr/local/lib64/python3.6/site-packages/XRootD/__init__.py'>
[root@4fc69f40c83d /]# python3 -c 'import pyxrootd; print(pyxrootd)'
<module 'pyxrootd' from '/usr/local/lib64/python3.6/site-packages/pyxrootd/__init__.py'>
[root@4fc69f40c83d /]# python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'
<XRootD.client.filesystem.FileSystem object at 0x7f6afeaaf2b0>
[root@4fc69f40c83d /]# ls -lhtra /usr/local/lib64/python3.6/site-packages
total 20K
drwxr-xr-x 3 root root 4.0K May  7 07:40 ..
drwxr-xr-x 4 root root 4.0K May  7 07:40 XRootD
drwxr-xr-x 3 root root 4.0K May  7 07:40 pyxrootd
drwxr-xr-x 5 root root 4.0K May  7 07:40 .
drwxr-xr-x 2 root root 4.0K May  7 07:40 xrootd-6.0.0-py3.6.egg-info

For updated pip and setuptools you get a wheel, also as expected 👍

$ docker run -it cern/cc7-base /bin/bash
yum -y install cmake3 make gcc-c++ zlib-devel openssl-devel python3-devel python3-pip libuuid-devel devtoolset-7 git
python3 -m pip install --upgrade pip setuptools wheel
git clone https://github.com/xrootd/xrootd
cd xrootd
git fetch origin pull/1700/head:pr-1700
git checkout pr-1700
git config --global user.name "debug"
git config --global user.email "debug"
git tag -a v6.0.0 -m test
cd ..
. /opt/rh/devtoolset-7/enable
cmake3 \
    -DCMAKE_INSTALL_PREFIX=/usr/local/ \
    -DPYTHON_EXECUTABLE=$(command -v python3) \
    -DENABLE_TESTS=ON \
    -DPIP_OPTIONS="--verbose" \
    -S xrootd \
    -B build
cmake3 build -LH
cmake3 \
    --build build \
    --clean-first \
    --parallel $(($(nproc) - 1))
cmake3 --build build --target install
command -v xrootd
command -v xrdcp
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
python3 -c 'import pyxrootd; print(pyxrootd)'
python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'
[root@4fc69f40c83d /]# python3 -m pip list
Package    Version
---------- -------
pip        21.3.1
setuptools 59.6.0
wheel      0.37.1
xrootd     6.0.0
[root@4fc69f40c83d /]# python3 -m pip show xrootd
Name: xrootd
Version: 6.0.0
Summary: XRootD Python bindings
Home-page: http://xrootd.org
Author: XRootD Developers
Author-email: [log in to unmask]
License: LGPLv3+
Location: /usr/local/lib64/python3.6/site-packages
Requires: 
Required-by: 
[root@4fc69f40c83d /]# python3 -c 'import XRootD; print(XRootD)'
<module 'XRootD' from '/usr/local/lib64/python3.6/site-packages/XRootD/__init__.py'>
[root@4fc69f40c83d /]# python3 -c 'import pyxrootd; print(pyxrootd)'
<module 'pyxrootd' from '/usr/local/lib64/python3.6/site-packages/pyxrootd/__init__.py'>
[root@4fc69f40c83d /]# python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'
<XRootD.client.filesystem.FileSystem object at 0x7fedb15c5278>
[root@4fc69f40c83d /]# ls -lhtra /usr/local/lib64/python3.6/site-packages
total 20K
drwxr-xr-x 3 root root 4.0K May  7 07:47 ..
drwxr-xr-x 4 root root 4.0K May  7 07:47 XRootD
drwxr-xr-x 5 root root 4.0K May  7 07:47 .
drwxr-xr-x 3 root root 4.0K May  7 07:47 pyxrootd
drwxr-xr-x 2 root root 4.0K May  7 07:47 xrootd-6.0.0.dist-info

The CI is hopefully a good enough demonstrator for the more modern OS builds.


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/1700/c1120140964@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1700#issuecomment-1120140964", "url": "https://github.com/xrootd/xrootd/pull/1700#issuecomment-1120140964", "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