Commit 282ed27a authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Remove NumPy from conda build env (#3315)

Summary:
NumPy is an optional runtime dependency of TorchAudio, and it is not required at build time.

Pull Request resolved: https://github.com/pytorch/audio/pull/3315

Reviewed By: nateanl

Differential Revision: D45702243

Pulled By: mthrok

fbshipit-source-id: 6ca6598931764c46be6323868e8cce7c8adc5024
parent 8d7268f1
...@@ -17,8 +17,6 @@ requirements: ...@@ -17,8 +17,6 @@ requirements:
- pkg-config # [not win] - pkg-config # [not win]
- cmake - cmake
- ninja - ninja
- numpy>=1.11 # [py <= 39]
- numpy>=1.21.2 # [py >= 310]
- pytorch-mutex 1.0 {{ build_variant }} # [not osx ] - pytorch-mutex 1.0 {{ build_variant }} # [not osx ]
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }} {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }}
{{ environ.get('CONDA_EXTRA_BUILD_CONSTRAINT', '') }} {{ environ.get('CONDA_EXTRA_BUILD_CONSTRAINT', '') }}
...@@ -26,8 +24,7 @@ requirements: ...@@ -26,8 +24,7 @@ requirements:
run: run:
- python - python
- numpy>=1.11 # [py <= 39] - numpy
- numpy>=1.21.2 # [py >= 310]
- pytorch-mutex 1.0 {{ build_variant }} # [not osx ] - pytorch-mutex 1.0 {{ build_variant }} # [not osx ]
{{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch') }} {{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch') }}
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }} {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }}
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#include <pybind11/stl.h> #include <pybind11/stl.h>
#include <tuple> #include <tuple>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment