Bug 13352

Summary: python-numpy and python3-numpy can't be installed at the same time
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alejandro Hernandez <alejandr>
Component: devtools / tool chainAssignee: Alejandro Hernandez <alejandr>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 2.8   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alejandro Hernandez 2019-05-15 21:45:29 UTC
Both python-numpy and python3-numpy try to install the file:

${D}/${bindir}/f2py

which causes an error during do_rootfs since the package manager complains about that.

The numpy packages create basically copies of f2py script with the following names:
f2py (on both)
f2py2 (on python 2)
f2py2.7 (on python 2)
f2py3 (on python 3)
f2py3.7 (on python 3)

IIRC, we had a similar issue with pip and pip3, in which we favored in keeping the python3 version as is and simply deleted the file on the python2 version since it was basically harmless.