fix numpy

This commit is contained in:
saltedcoffii
2021-05-02 13:58:43 -04:00
parent 5ab7461394
commit adab181cb0
2 changed files with 24 additions and 0 deletions

22
packages/py3_cython.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'package'
class Py3_cython < Package
description 'The Cython language makes writing C extensions for the Python language as easy as Python itself.'
homepage 'https://cython.org/'
@_ver = '0.29.23'
version @_ver
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/cython/cython.git'
git_hashtag @_ver
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

View File

@@ -10,6 +10,8 @@ class Py3_numpy < Package
source_url 'https://github.com/numpy/numpy.git'
git_hashtag 'v' + @_ver
depends_on 'lapack'
depends_on 'py3_cython' => :build
depends_on 'py3_setuptools' => :build
def self.build