Bug 7050 - python-numpy requires python-dev on host
Summary: python-numpy requires python-dev on host
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8 M3
Assignee: Magnus Olsson
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-12-09 12:40 UTC by Magnus Olsson
Modified: 2015-02-18 07:43 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Compilation logs for python-numpy (shows detailed error) (26.74 KB, application/octet-stream)
2014-12-09 12:40 UTC, Magnus Olsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Olsson 2014-12-09 12:40:53 UTC
Created attachment 2293 [details]
Compilation logs for python-numpy (shows detailed error)

python-numpy build fails with the error "SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel."

If I install python-dev on my host (Ubuntu 14.04 LTS), this issue goes away.

Not sure if this is the desired behaviour but I did not find it obvious that something needs to be installed on the host to get this working.
Comment 1 Ross Burton 2015-02-11 16:04:01 UTC
I can't replicate this on my host with no python headers installed.  Re-assigning to the submitter and setting to NEEDINFO - Magnus, can you replicate this still?
Comment 2 Magnus Olsson 2015-02-18 07:43:44 UTC
I can no longer reproduce this on Dizzy, I previously had this issue on Daisy. So it's likely that it has been fixed, but I'm unable to locate any specific commit since a lot has changed regarding python when moving to Dizzy. So I'm closing the bug. I tried to reproduce it on a freshly installed Ubuntu 14.04 VM, which didn't have python-dev installed, and it works fine.