使用Vulcan为Heroku构建NumPy

2024-09-28 20:45:44 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有人使用vulcan构建工具成功地为Heroku构建了NumPy?在

尝试执行此操作时,我遇到以下错误:

Packaging local directory... done
Uploading source package... done
Building with: ./configure --prefix /app/vendor/numpy-1.6 && make install
sh: ./configure: not found
bin/vulcan-make:69:in `chdir': No such file or directory - /app/vendor/numpy-1.6 (Errno::ENOENT)
from bin/vulcan-make:69:in `block (2 levels) in <main>'
from bin/vulcan-make:18:in `chdir'
from bin/vulcan-make:18:in `block in <main>'
from /usr/local/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
from bin/vulcan-make:17:in `<main>'

Tags: infromnumpyappmakebinmainconfigure
3条回答

你能把你正在调用的命令发布在哪个目录下(相对于make脚本的位置)。在

注意NumPy已经是an installable dependency on Heroku。更多资源hereherehere。在

您可能还想看看Anvil,公告here。在

只需将“numpy”添加到要求.txt,就像其他依赖关系一样。在

我相信你需要指定你想要vulcan用来构建numpy的命令。这是用-c标志完成的。在

vulcan build -s ./numpy-1.6 -c "python setup.py install  prefix=/tmp/numpy-1.6" -p /tmp/numpy-1.6

至少这和我运行的命令类似。在

相关问题 更多 >