On Mon, May 20, 2019 at 07:58:09AM -0500, Richard Shaw wrote: > I'm trying to get FreeCAD back in shape on Fedora[1] and what I hope is the > last problem is that it's still building against the Python2 library > (because it's default). I can override the behavior by specifying > "-DPYTHON_SUFFIX=<python3 SOABI> but it's different for every arch... > > $ python3 > Python 3.7.3 (default, Mar 27 2019, 13:41:07) > [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sysconfig > >>> sysconfig.get_config_var('SOABI') > 'cpython-37m-x86_64-linux-gnu' > > I cobbled this together for the spec file but it may need work: > > %define py_suffix %(%{__python3} -c 'import sysconfig; > sysconfig.get_config_var("SOABI")') Erm, I think you'd get better results with a "print" thrown in there; the interactive REPL interpreter shows you the value, but if you run this through python3 -c, it will not actually output it to the standard output unless you tell it to. Maybe try: ... -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))' > The weird part is that it's evaluating as blank on Fedora 29 and 30[2]... This much I'd expect, try with the print() in there. > ...and working in Rawhide EXCEPT for armv7hl in which it's evaluating to[3]: > > -DPYTHON_SUFFIX=.cpython-37m-armv7hl-linux-gnu I... honestly don't understand how this can happen. I don't understand why python3 -c 'sysconfig.get_config_var()' would output anything... G'luck, Peter -- Peter Pentchev roam@{ringlet.net,debian.org,FreeBSD.org} pp@xxxxxxxxxxxx PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx