Hi Pythonistas.

I have just realized, that the %py_byte_compile macro, when invoked like this:

  %py_byte_compile %{python3} %{buildroot}%{_datadir}/nemo*

Will happily compile files like

  /usr/share/nemo-compare/__pycache__/nemo-compare-preferences.cpython-313.pyc
  
/usr/share/nemo-pastebin/__pycache__/nemo-pastebin-configurator.cpython-313.pyc
  /usr/share/nemo-terminal/__pycache__/nemo-terminal-prefs.cpython-313.pyc

But such files are not (easily) importable modules.

Should it only compile .py files with importable names?

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
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/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to