私が管理しているパッケージ内のsetup.py
ファイルは、別のパッケージのコードを使用して拡張機能を構築します。
from setuptools import setup, find_packages
from mydependence import build_ext
...
setup(
name='mypackage',
version='1.0.0',
...
setup_requires = [
'mydependence', # is this being checked properly?
],
...
install_requires = [
'mydependence',
],
...
)
現在のパッケージを でビルドしたいzc.buildout
ので、次のような単純なbuildout.cfg
ファイルを作成します。
[buildout]
parts = python
eggs = mypackage
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
残念ながら、それは期待どおりに機能しません-実行./bin/buildout
して読み取ったときに、見つからないsetup.py
と文句を言います。mydependence
buildout が mysetup.py
を実行するときsys.path
、ディレクトリの下にインストールされたパッケージについての知識はありませんeggs
(それ自体を除くsetuptools
!)。どうやら、「eggs」および「develop-eggs」./bin/buildout
のパッケージは、パッケージのsetup.py
.
質問:それを機能させる方法は?