足場の setup.py を実行した後。
pcreate -l
適切なリストを表示しますが、実行しようとすると
pcreate -s my_project_template SomeProjectName
「no such file or directory /install/path/my_project_template/scaffolds/my_project_template」というエラーが表示される
以下は、足場用の setup.py ファイルです。
from setuptools import find_packages
from setuptools import setup
setup(name='my_project_template',
version='0.1',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
entry_points = """\
[pyramid.scaffold]
my_project_template=my_project_template.scaffolds:MyProjectTemplate
"""
)
__init__.py
my_project_template/scaffolds/ の下にある私のプロジェクト テンプレート クラス
class MyProjectTemplate(PyramidTemplate):
_template_dir = 'my_project_template'
summary = 'My own starter project template'
足場をインストールしたときに my_template_project フォルダーがコピーされない理由を知っている人はいますか?