Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyp2rpm fail on CentOS7: python3_sitearch resolves to non existent directory #236

Open
minfrin opened this issue May 14, 2020 · 3 comments

Comments

@minfrin
Copy link

minfrin commented May 14, 2020

Using pyp2rpm to build an rpm from rainbowstream, the resulting SRPM has a broken build as below.

The build breaks because the install process puts files in /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib but the packaging process picks up the files in /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib64.

[minfrin@localhost SPECS]$ rpmbuild -bb rainbowstream.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.aWVI4A
+ umask 022
+ cd /home/minfrin/rpmbuild/BUILD
+ cd /home/minfrin/rpmbuild/BUILD
+ rm -rf rainbowstream-1.5.2
+ /usr/bin/gzip -dc /home/minfrin/rpmbuild/SOURCES/rainbowstream-1.5.2.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rainbowstream-1.5.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ rm -rf rainbowstream.egg-info
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZegzcP
+ umask 022
+ cd /home/minfrin/rpmbuild/BUILD
+ cd rainbowstream-1.5.2
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic'
+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s'
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
running build
running build_py
creating build
creating build/lib
creating build/lib/rainbowstream
copying rainbowstream/__init__.py -> build/lib/rainbowstream
copying rainbowstream/c_image.py -> build/lib/rainbowstream
copying rainbowstream/colors.py -> build/lib/rainbowstream
copying rainbowstream/config.py -> build/lib/rainbowstream
copying rainbowstream/consumer.py -> build/lib/rainbowstream
copying rainbowstream/draw.py -> build/lib/rainbowstream
copying rainbowstream/emoji.py -> build/lib/rainbowstream
copying rainbowstream/interactive.py -> build/lib/rainbowstream
copying rainbowstream/pure_image.py -> build/lib/rainbowstream
copying rainbowstream/py3patch.py -> build/lib/rainbowstream
copying rainbowstream/rainbow.py -> build/lib/rainbowstream
copying rainbowstream/util.py -> build/lib/rainbowstream
running egg_info
creating rainbowstream.egg-info
writing requirements to rainbowstream.egg-info/requires.txt
writing rainbowstream.egg-info/PKG-INFO
writing top-level names to rainbowstream.egg-info/top_level.txt
writing dependency_links to rainbowstream.egg-info/dependency_links.txt
writing entry points to rainbowstream.egg-info/entry_points.txt
writing manifest file 'rainbowstream.egg-info/SOURCES.txt'
reading manifest file 'rainbowstream.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'rainbowstream.egg-info/SOURCES.txt'
copying rainbowstream/image.c -> build/lib/rainbowstream
creating build/lib/rainbowstream/colorset
copying rainbowstream/colorset/base16.json -> build/lib/rainbowstream/colorset
copying rainbowstream/colorset/config -> build/lib/rainbowstream/colorset
copying rainbowstream/colorset/larapaste.json -> build/lib/rainbowstream/colorset
copying rainbowstream/colorset/monokai.json -> build/lib/rainbowstream/colorset
copying rainbowstream/colorset/solarized.json -> build/lib/rainbowstream/colorset
copying rainbowstream/colorset/tomorrow_night.json -> build/lib/rainbowstream/colorset
+ sleep 1
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic'
+ LDFLAGS='-Wl,-z,relro '
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
running build_py
running egg_info
writing rainbowstream.egg-info/PKG-INFO
writing dependency_links to rainbowstream.egg-info/dependency_links.txt
writing entry points to rainbowstream.egg-info/entry_points.txt
writing requirements to rainbowstream.egg-info/requires.txt
writing top-level names to rainbowstream.egg-info/top_level.txt
reading manifest file 'rainbowstream.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'rainbowstream.egg-info/SOURCES.txt'
+ sleep 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ivsp5a
+ umask 022
+ cd /home/minfrin/rpmbuild/BUILD
+ '[' /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64 '!=' / ']'
+ rm -rf /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64
++ dirname /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64
+ mkdir -p /home/minfrin/rpmbuild/BUILDROOT
+ mkdir /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64
+ cd rainbowstream-1.5.2
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic'
+ LDFLAGS='-Wl,-z,relro '
+ /usr/bin/python3 setup.py install -O1 --skip-build --root /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64
running install
running install_lib
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/__init__.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/c_image.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/colors.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/config.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/consumer.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/draw.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/emoji.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/interactive.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/pure_image.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/py3patch.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/rainbow.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/util.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
copying build/lib/rainbowstream/image.c -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/base16.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/config -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/larapaste.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/monokai.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/solarized.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/tomorrow_night.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colorset
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/c_image.py to c_image.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/colors.py to colors.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/config.py to config.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/consumer.py to consumer.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/draw.py to draw.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/emoji.py to emoji.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/interactive.py to interactive.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/pure_image.py to pure_image.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/py3patch.py to py3patch.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/rainbow.py to rainbow.cpython-36.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream/util.py to util.cpython-36.pyc
writing byte-compilation script '/tmp/tmpjlm7lkzh.py'
/usr/bin/python3 /tmp/tmpjlm7lkzh.py
removing /tmp/tmpjlm7lkzh.py
running install_egg_info
running egg_info
writing rainbowstream.egg-info/PKG-INFO
writing dependency_links to rainbowstream.egg-info/dependency_links.txt
writing entry points to rainbowstream.egg-info/entry_points.txt
writing requirements to rainbowstream.egg-info/requires.txt
writing top-level names to rainbowstream.egg-info/top_level.txt
reading manifest file 'rainbowstream.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'rainbowstream.egg-info/SOURCES.txt'
Copying rainbowstream.egg-info to /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6/site-packages/rainbowstream-1.5.2-py3.6.egg-info
running install_scripts
Installing rainbowstream script to /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/bin
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic'
+ /usr/bin/python2 setup.py install -O1 --skip-build --root /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
running install
running install_lib
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/__init__.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/c_image.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/colors.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/config.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/consumer.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/draw.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/emoji.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/interactive.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/pure_image.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/py3patch.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/rainbow.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/util.py -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
copying build/lib/rainbowstream/image.c -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream
creating /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/base16.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/config -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/larapaste.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/monokai.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/solarized.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
copying build/lib/rainbowstream/colorset/tomorrow_night.json -> /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colorset
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/__init__.py to __init__.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/c_image.py to c_image.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/colors.py to colors.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/config.py to config.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/consumer.py to consumer.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/draw.py to draw.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/emoji.py to emoji.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/interactive.py to interactive.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/pure_image.py to pure_image.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/py3patch.py to py3patch.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/rainbow.py to rainbow.pyc
byte-compiling /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream/util.py to util.pyc
writing byte-compilation script '/tmp/tmp3y1zP_.py'
/usr/bin/python2 -O /tmp/tmp3y1zP_.py
removing /tmp/tmp3y1zP_.py
running install_egg_info
running egg_info
writing requirements to rainbowstream.egg-info/requires.txt
writing rainbowstream.egg-info/PKG-INFO
writing top-level names to rainbowstream.egg-info/top_level.txt
writing dependency_links to rainbowstream.egg-info/dependency_links.txt
writing entry points to rainbowstream.egg-info/entry_points.txt
reading manifest file 'rainbowstream.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'rainbowstream.egg-info/SOURCES.txt'
Copying rainbowstream.egg-info to /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7/site-packages/rainbowstream-1.5.2-py2.7.egg-info
running install_scripts
Installing rainbowstream script to /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/bin
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/minfrin/rpmbuild/BUILD/rainbowstream-1.5.2
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
find: ‘debug’: No such file or directory
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python3.6 using /usr/bin/python3.6
Bytecompiling .py files below /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: python2-rainbowstream-1.5.2-1.el7.x86_64
error: File not found: /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib64/python2.7/site-packages/rainbowstream
error: File not found by glob: /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib64/python2.7/site-packages/rainbowstream-1.5.2-py?.?.egg-info
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.bC8fpC
+ umask 022
+ cd /home/minfrin/rpmbuild/BUILD
+ cd rainbowstream-1.5.2
+ DOCDIR=/home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/doc/python2-rainbowstream-1.5.2
+ export DOCDIR
+ /usr/bin/mkdir -p /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/doc/python2-rainbowstream-1.5.2
+ cp -pr README.rst /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/doc/python2-rainbowstream-1.5.2
+ exit 0
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.hgOKK3
+ umask 022
+ cd /home/minfrin/rpmbuild/BUILD
+ cd rainbowstream-1.5.2
+ LICENSEDIR=/home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/licenses/python2-rainbowstream-1.5.2
+ export LICENSEDIR
+ /usr/bin/mkdir -p /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/licenses/python2-rainbowstream-1.5.2
+ cp -pr LICENSE.txt /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/share/licenses/python2-rainbowstream-1.5.2
+ exit 0


RPM build errors:
    File not found: /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib64/python2.7/site-packages/rainbowstream
    File not found by glob: /home/minfrin/rpmbuild/BUILDROOT/python-rainbowstream-1.5.2-1.el7.x86_64/usr/lib64/python2.7/site-packages/rainbowstream-1.5.2-py?.?.egg-info
@fferraro87
Copy link

i've same problem

@gordonmessmer
Copy link
Member

gordonmessmer commented Sep 27, 2020

This is occurring because the rainbowstream python module includes "image.c", which causes pyp2rpm to expect an arch-specific extension package, rather than a non-arch package.

I'll look in to better logic for that.

@nkadel
Copy link

nkadel commented Jun 12, 2022

rainbowstream no longer works at all, probably due to a switch to a "wheel" rather than a tarball at pypi.org.

[nkadel@nkadel-c8 rainbo]$ pyp2rpm rainbowstream
Unable to extract package metadata from .whl archive. This might be caused by an old .whl format version. You may ask the upstream to upload fresh wheels created with wheel >= 0.17.0 or to upload an sdist as well to workaround this problem.

Turning wheels into RPMs is becoming more desireable. but is a deeper problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants