1

我正在尝试django-auth-ldap==1.2.7使用pip installin requirements.txt安装这个库。

我正在使用Heroku服务进行部署。

但是,每次我尝试推送/部署代码时,我都无法完成依赖项检查/安装,因为会弹出此错误

remote:        Modules/LDAPObject.c:18:18: fatal error: sasl.h: No such file or
directory

我放弃了这个问题和答案:python-ldap failed to install in Heroku

没有运气

基本上,我尝试使用第三方BUILDPACK

heroku config:set BUILDPACK_URL=https://github.com/damgad/heroku-buildpack-python-ldap.git

heroku buildpacks:set https://github.com/damgad/heroku-buildpack-python-ldap.git

但仍然无法正常工作。

有人可以请,

  1. 帮助我向我展示一种构建自己的BUILDPACK的方法或
  2. 指点我一个替代解决方案?

谢谢!

- -编辑 - -

刚刚发现有几个好人正在努力让它发挥作用。

有一个拉取请求试图直接在 heroku default buildpack中解决我的这个问题。

https://github.com/heroku/heroku-buildpack-python/pull/271

如果有人想知道同样的问题,我将保持这个问题的开放和更新。

谢谢!

4

1 回答 1

2

这不是您使用自定义构建包的方式。您所做的只是设置一个名为 BUILDPACK_URL 的环境变量。

相反,请遵循文档:您需要heroku buildpacks:set https://......

于 2016-02-24T15:46:39.903 回答