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
rpmbuild failed with syntax error #1731
Comments
Because it tries to compile a Python 3-only file with Python 2. I don't know anything about rpmbuild, but I think there should be a way to extract some files from the build or a way to tell rpmbuild to build Gunicorn with |
According to a gevent commentor you can put |
Hello, Thanks for your help, But I solved it by using 'exit 0' at the end of %install section in my rpm spec file, just to ignore any error during build.. Regards. |
My solution %global __python %{__python3} https://fedoraproject.org/wiki/Archive:PackagingDrafts/Python3?rd=PackagingDrafts/Python3 |
Hello,
I am trying to create an rpm from source code. I have pip 9.0.2 installed and Python version is 2.7.5.
I have written a .spec file for creating RPM out of this source code.
But it fails with syntax error.
``
Bytecompiling .py files below /home/vagrant/project/gunicorn/work/buildroot/usr/lib/python2.7 using /usr/bin/python2.7
Compiling /home/vagrant/project/gunicorn/work/buildroot/usr/lib/python2.7/site-packages/gunicorn/workers/gaiohttp.py ...
File "/usr/lib/python2.7/site-packages/gunicorn/workers/gaiohttp.py", line 67
yield from self.wsgi.close()
^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.esw9T7 (%install)
``
Any Idea..?
I agree with the point that it is harmless, and pip install gunicorn=19.0 works fine, but why it failed to create package....
Thanks,
Rahul.
The text was updated successfully, but these errors were encountered: