Re: qarte - compilation fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Martin Gansser" <martin.gansser@xxxxxxxxx>
> To: devel@xxxxxxxxxxxxxxxxxxxxxxx
> Sent: Thursday, March 1, 2018 11:35:25 AM
> Subject: qarte - compilation fails
> 
> Hi,
> 
> when compiling qarte-4.4.0 with this spec file
> https://martinkg.fedorapeople.org/Packages/test/qarte.spec
> 
>  '[' noarch = noarch ']'
> + case "${QA_CHECK_RPATHS:-}" in
> + /usr/lib/rpm/check-buildroot
> + /usr/lib/rpm/brp-compress
> + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
> + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
> Compiling
> /home/martin/rpmbuild/BUILDROOT/qarte-4.0.0-1.fc27.x86_64/usr/share/qarte/arteconcert.py
> ...
>   File "/usr/share/qarte/arteconcert.py", line 385
>     def update_pitch(self, *args, html=False):
>                                      ^
> SyntaxError: invalid syntax
> 
> error: Bad exit status from /var/tmp/rpm-tmp.rp9wQD (%install)
> 
> only when i comment the following line, the program compiles fine:
> #####cp -p *.py* %{buildroot}%{_datadir}/%{name}
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 

It seems that rpm bytecompiles arteconcert.py with python2, and having a default argument (html=False) after *args is not allowed in python2.

What happens if you try to build it in rawhide?

-- 
Regards,

Charalampos Stratakis
Software Engineer
Python Maintenance Team, Red Hat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux