cornell-zhang / allo

Allo: A Programming Model for Composable Accelerator Design
https://cornell-zhang.github.io/allo
Apache License 2.0
134 stars 28 forks source link

[Build] Update build.sh script to install Python dependencies (Fix #131) #132

Closed zzzDavid closed 9 months ago

zzzDavid commented 9 months ago

Description

This PR updates the build.sh script to install Python dependencies before building LLVM18.x.

Problems

Building LLVM18.x with Python binding enabled requires numpy. The error message during cmake is:

  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy)

Proposed Solutions

When user run bash build.sh, install python requirements as well.

Checklist