[Bug 1849706] Review Request: python-bluepyopt - The Blue Brain Python Optimisation Library

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=1849706



--- Comment #10 from Ankur Sinha (FranciscoD) <sanjay.ankur@xxxxxxxxx> ---
(In reply to Anil Tuncel from comment #9)
> Hi Ankur thanks for the info.
> 
> comment5
> 
> Ok I updated the link.
> 
> comment8
> 
> I applied the changes here. One of the macros is trying to install
> everything listed on setup.py therefore causing this error.
> 
> Error: 
>  Problem: conflicting requests
>   - nothing provides python3.8dist(scoop) >= 0.7 needed by
> python-bluepyopt-1.9.48-1.fc32.noarch
> (try to add '--skip-broken' to skip uninstallable packages)
> 
> Is there a way of ignoring the scoop requirement? 

Ah, this is being picked up from the setup.py file then by the automatic
dependency generator:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_automatically_generated_dependencies

https://github.com/BlueBrain/BluePyOpt/blob/master/setup.py#L35

A simple way to resolve this is to remove this requirement from the setup.py
file in the %prep section:

%prep
...

sed -i '/scoop/ d' setup.py

Also note that you do not list the Requires: manually now.


> 
> Also I am curious which flags py3_build and py3_install are using? - I
> couldn't find them in the documentation.

All builds in Fedora use the same flags, so these are also defined for python
packages (but don't make a difference for pure python packages)

The guidelines will have this info here:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_flags

and here:
https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/#_macros_providing_compiler_and_linker_flags

$ rpm -E "%optflags"
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection

The python macros are documented here here:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_macros


I'll look at the spec again now.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux