課題

  • Adminパネルに表示されない。動作確認が出来ていない。
    • MacroPostPlugin を先にインストールする必要あり。Trac Lightning には同梱してある。

動作検証した内容

インストールログ(失敗)

c:\plugin>easy_install http://trac-hacks.org/svn/addcommentmacro/0.11
Downloading http://trac-hacks.org/svn/addcommentmacro/0.11
Doing subversion checkout from http://trac-hacks.org/svn/addcommentmacro/0.11 to
 c:\users\vmware\appdata\local\temp\easy_install-e58uzr\0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir c:\users\vmware\appdata\local\temp\easy
_install-e58uzr\0.11\egg-dist-tmp-0_meef
zip_safe flag not set; analyzing archive contents...
Adding tracaddcommentmacro 0.3 to easy-install.pth file

Installed c:\trac\python\lib\site-packages\tracaddcommentmacro-0.3-py2.7.egg
Processing dependencies for tracaddcommentmacro==0.3
Searching for TracMacroPost>=0.2
Reading http://pypi.python.org/simple/TracMacroPost/
No local packages or download links found for TracMacroPost>=0.2
Best match: None
Traceback (most recent call last):
  File "C:\trac\python\Scripts\easy_install-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 1712, in main
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 1700, in with_ei_usage
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 1716, in <lambda>
  File "C:\trac\python\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\trac\python\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\trac\python\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 211, in run
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 422, in easy_install
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 478, in install_item
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 519, in process_distribution
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resourc
es.py", line 563, in resolve
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resourc
es.py", line 799, in best_match
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resourc
es.py", line 811, in obtain
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 434, in easy_install
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'

c:\plugin>

↓ビルドはできたが、管理画面からインストールしても「プラグインの管理」に表示されない

c:\plugin\addcommentmacro\0.11>c:\trac\python\python setup.py bdist_egg
running bdist_egg
running egg_info
creating TracAddCommentMacro.egg-info
writing requirements to TracAddCommentMacro.egg-info\requires.txt
writing TracAddCommentMacro.egg-info\PKG-INFO
writing top-level names to TracAddCommentMacro.egg-info\top_level.txt
writing dependency_links to TracAddCommentMacro.egg-info\dependency_links.txt
writing entry points to TracAddCommentMacro.egg-info\entry_points.txt
writing manifest file 'TracAddCommentMacro.egg-info\SOURCES.txt'
reading manifest file 'TracAddCommentMacro.egg-info\SOURCES.txt'
writing manifest file 'TracAddCommentMacro.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\addcomment
copying addcomment\macro.py -> build\lib\addcomment
copying addcomment\__init__.py -> build\lib\addcomment
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\addcomment
copying build\lib\addcomment\macro.py -> build\bdist.win32\egg\addcomment
copying build\lib\addcomment\__init__.py -> build\bdist.win32\egg\addcomment
byte-compiling build\bdist.win32\egg\addcomment\macro.py to macro.pyc
byte-compiling build\bdist.win32\egg\addcomment\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying TracAddCommentMacro.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying TracAddCommentMacro.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-IN
FO
copying TracAddCommentMacro.egg-info\dependency_links.txt -> build\bdist.win32\e
gg\EGG-INFO
copying TracAddCommentMacro.egg-info\entry_points.txt -> build\bdist.win32\egg\E
GG-INFO
copying TracAddCommentMacro.egg-info\requires.txt -> build\bdist.win32\egg\EGG-I
NFO
copying TracAddCommentMacro.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-
INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\TracAddCommentMacro-0.3-py2.7.egg' and adding 'build\bdist.win32\
egg' to it
removing 'build\bdist.win32\egg' (and everything under it)

c:\plugin\addcommentmacro\0.11>