The environment is absolutely fresh, here's what I am doing:
docker run -it --rm cern/cc7-base /bin/bash [root@e76590fa385f xrootd]# yum install --nogpg -y git python3-pip which [root@e76590fa385f xrootd]# git clone https://github.com/xrootd/xrootd [root@e76590fa385f xrootd]# cd xrootd [root@e76590fa385f xrootd]# git tag -a v6.0.0 -m test [root@e76590fa385f xrootd]# cp packaging/wheel/* . [root@e76590fa385f xrootd]# ./publish.sh [root@e76590fa385f xrootd]# python3 -m pip install dist/xrootd-6.0.0.tar.gz WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead. Processing ./dist/xrootd-6.0.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): xrootd==6.0.0 from file:///xrootd/dist/xrootd-6.0.0.tar.gz in /xrootd Building wheels for collected packages: xrootd Running setup.py bdist_wheel for xrootd ... done Running setup.py clean for xrootd Failed to build xrootd
Your example is unfortunately not reproducible and
Just to clarify without the dummy tag (
git tag -a v6.0.0 -m test
) it works just fine.
is not reproducible either. cern/cc7-base:latest
does not contain any of the necessary build dependencies, so the instructions you have above aren't able to be reproduced as the install command will fail as it lacks the tools to build from the sdist.
Here's a minimal failing example that demonstrates the lack of build dependencies in your base image:
FROM cern/cc7-base:latest
RUN yum update -y && \
yum install --nogpg -y \
git \
python3-pip \
which
ENV OFFENDING_COMMINT=65950acd7ab15dc91e31fdc4de089e14d474ecf9
RUN git clone https://github.com/xrootd/xrootd && \
cd xrootd && \
git reset --hard ${OFFENDING_COMMINT} && \
git show HEAD && \
cp packaging/wheel/* . && \
./publish.sh
# This will fail as lacking all build dependencies
RUN cd xrootd && \
python3 -m pip --verbose install dist/xrootd-*.tar.gz && \
python3 -m pip list
$ docker pull cern/cc7-base:latest
latest: Pulling from cern/cc7-base
Digest: sha256:e2dd774d6abce5e67eaa561e599f999085524f99e0ed10acffa40b050db89d17
Status: Image is up to date for cern/cc7-base:latest
docker.io/cern/cc7-base:latest
$ docker images cern/cc7-base:latest
REPOSITORY TAG IMAGE ID CREATED SIZE
cern/cc7-base latest e1b07fd8b81c 8 weeks ago 311MB
$ docker build . -f Dockerfile --tag xrootd/xrootd:debug-uninstall
...
Step 5/5 : RUN cd xrootd && python3 -m pip --verbose install dist/xrootd-*.tar.gz && python3 -m pip list
---> Running in 4fe29c3a0d75
WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.
Processing ./dist/xrootd-20220126-65950ac-.tar.gz
Running setup.py (path:/tmp/pip-k30jrsoa-build/setup.py) egg_info for package from file:///xrootd/dist/xrootd-20220126-65950ac-.tar.gz
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/xrootd.egg-info
writing pip-egg-info/xrootd.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/xrootd.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/xrootd.egg-info/top_level.txt
writing manifest file 'pip-egg-info/xrootd.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/xrootd.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/xrootd.egg-info/SOURCES.txt'
Source in /tmp/pip-k30jrsoa-build has version 20220126, which satisfies requirement xrootd==20220126 from file:///xrootd/dist/xrootd-20220126-65950ac-.tar.gz
Building wheels for collected packages: xrootd
Running setup.py bdist_wheel for xrootd: started
Destination directory: /tmp/tmpngo5wj1bpip-wheel-
Running command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-k30jrsoa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpngo5wj1bpip-wheel- --python-tag cp36
running bdist_wheel
Running setup.py bdist_wheel for xrootd: finished with status 'done'
Running setup.py clean for xrootd
Running command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-k30jrsoa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all
running clean
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.6' does not exist -- can't clean it
Failed to build xrootd
Installing collected packages: xrootd
Running setup.py install for xrootd: started
Running command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-k30jrsoa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-aktgv7n8-record/install-record.txt --single-version-externally-managed --compile
running install
./has_c++14.sh: line 8: cmake3: command not found
Some dependencies are missing:
cmake (version 3) is missing!
make is missing!
C++ compiler is missing (g++, c++, clang, etc.)!
zlib development package is missing!
openssl development package is missing!
python3 development package is missing!
uuid development package is missing
devtoolset-7-gcc-c++ package is missing
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-k30jrsoa-build/setup.py", line 195, in <module>
'bdist_wheel': CustomWheelGen
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-k30jrsoa-build/setup.py", line 142, in run
raise Exception( 'Dependencies missing!' )
Exception: Dependencies missing!
Running setup.py install for xrootd: finished with status 'error'
Cleaning up...
Removing source in /tmp/pip-k30jrsoa-build
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-k30jrsoa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-aktgv7n8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-k30jrsoa-build/
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 365, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 789, in install
**kwargs
File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 882, in install
spinner=spinner,
File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 717, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-k30jrsoa-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-aktgv7n8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-k30jrsoa-build/
The command '/bin/sh -c cd xrootd && python3 -m pip --verbose install dist/xrootd-*.tar.gz && python3 -m pip list' returned a non-zero code: 1
Can you please pull cern/cc7-base:latest
and verify that your image is the same?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
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