注意

setuptoolsでエラー発生。setup.cfgの tag_svn_revision をfalseに書き換えました。

tag_svn_revision = false
http://trac-hacks.org/ticket/10778#comment:4

動作検証した内容

  • カスタムフィールドとしてtext、select、raido、textareaを追加
  • カスタムフィールドから削除

インストールログ(成功)

C:\Windows\system32>cd C:\plugin\customfieldadminplugin

C:\plugin\customfieldadminplugin>python setup.py bdist_egg
running bdist_egg
running egg_info
creating TracCustomFieldAdmin.egg-info
writing requirements to TracCustomFieldAdmin.egg-info\requires.txt
writing TracCustomFieldAdmin.egg-info\PKG-INFO
writing top-level names to TracCustomFieldAdmin.egg-info\top_level.txt
writing dependency_links to TracCustomFieldAdmin.egg-info\dependency_links.txt
writing entry points to TracCustomFieldAdmin.egg-info\entry_points.txt
writing manifest file 'TracCustomFieldAdmin.egg-info\SOURCES.txt'
reading manifest file 'TracCustomFieldAdmin.egg-info\SOURCES.txt'
writing manifest file 'TracCustomFieldAdmin.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running compile_catalog
compiling catalog 'customfieldadmin/locale\\de\\LC_MESSAGES\\customfieldadmin.po
' to 'customfieldadmin/locale\\de\\LC_MESSAGES\\customfieldadmin.mo'
compiling catalog 'customfieldadmin/locale\\ja\\LC_MESSAGES\\customfieldadmin.po
' to 'customfieldadmin/locale\\ja\\LC_MESSAGES\\customfieldadmin.mo'
compiling catalog 'customfieldadmin/locale\\nb\\LC_MESSAGES\\customfieldadmin.po
' to 'customfieldadmin/locale\\nb\\LC_MESSAGES\\customfieldadmin.mo'
compiling catalog 'customfieldadmin/locale\\ru\\LC_MESSAGES\\customfieldadmin.po
' to 'customfieldadmin/locale\\ru\\LC_MESSAGES\\customfieldadmin.mo'
running build_py
creating build
creating build\lib
creating build\lib\customfieldadmin
copying customfieldadmin\admin.py -> build\lib\customfieldadmin
copying customfieldadmin\api.py -> build\lib\customfieldadmin
copying customfieldadmin\__init__.py -> build\lib\customfieldadmin
creating build\lib\customfieldadmin\htdocs
creating build\lib\customfieldadmin\htdocs\js
copying customfieldadmin\htdocs\js\customfieldadmin.js -> build\lib\customfielda
dmin\htdocs\js
creating build\lib\customfieldadmin\templates
copying customfieldadmin\templates\customfieldadmin.html -> build\lib\customfiel
dadmin\templates
creating build\lib\customfieldadmin\locale
creating build\lib\customfieldadmin\locale\de
creating build\lib\customfieldadmin\locale\de\LC_MESSAGES
copying customfieldadmin\locale\de\LC_MESSAGES\customfieldadmin.mo -> build\lib\
customfieldadmin\locale\de\LC_MESSAGES
creating build\lib\customfieldadmin\locale\ja
creating build\lib\customfieldadmin\locale\ja\LC_MESSAGES
copying customfieldadmin\locale\ja\LC_MESSAGES\customfieldadmin.mo -> build\lib\
customfieldadmin\locale\ja\LC_MESSAGES
creating build\lib\customfieldadmin\locale\nb
creating build\lib\customfieldadmin\locale\nb\LC_MESSAGES
copying customfieldadmin\locale\nb\LC_MESSAGES\customfieldadmin.mo -> build\lib\
customfieldadmin\locale\nb\LC_MESSAGES
creating build\lib\customfieldadmin\locale\ru
creating build\lib\customfieldadmin\locale\ru\LC_MESSAGES
copying customfieldadmin\locale\ru\LC_MESSAGES\customfieldadmin.mo -> build\lib\
customfieldadmin\locale\ru\LC_MESSAGES
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\customfieldadmin
copying build\lib\customfieldadmin\admin.py -> build\bdist.win32\egg\customfield
admin
copying build\lib\customfieldadmin\api.py -> build\bdist.win32\egg\customfieldad
min
creating build\bdist.win32\egg\customfieldadmin\htdocs
creating build\bdist.win32\egg\customfieldadmin\htdocs\js
copying build\lib\customfieldadmin\htdocs\js\customfieldadmin.js -> build\bdist.
win32\egg\customfieldadmin\htdocs\js
creating build\bdist.win32\egg\customfieldadmin\locale
creating build\bdist.win32\egg\customfieldadmin\locale\de
creating build\bdist.win32\egg\customfieldadmin\locale\de\LC_MESSAGES
copying build\lib\customfieldadmin\locale\de\LC_MESSAGES\customfieldadmin.mo ->
build\bdist.win32\egg\customfieldadmin\locale\de\LC_MESSAGES
creating build\bdist.win32\egg\customfieldadmin\locale\ja
creating build\bdist.win32\egg\customfieldadmin\locale\ja\LC_MESSAGES
copying build\lib\customfieldadmin\locale\ja\LC_MESSAGES\customfieldadmin.mo ->
build\bdist.win32\egg\customfieldadmin\locale\ja\LC_MESSAGES
creating build\bdist.win32\egg\customfieldadmin\locale\nb
creating build\bdist.win32\egg\customfieldadmin\locale\nb\LC_MESSAGES
copying build\lib\customfieldadmin\locale\nb\LC_MESSAGES\customfieldadmin.mo ->
build\bdist.win32\egg\customfieldadmin\locale\nb\LC_MESSAGES
creating build\bdist.win32\egg\customfieldadmin\locale\ru
creating build\bdist.win32\egg\customfieldadmin\locale\ru\LC_MESSAGES
copying build\lib\customfieldadmin\locale\ru\LC_MESSAGES\customfieldadmin.mo ->
build\bdist.win32\egg\customfieldadmin\locale\ru\LC_MESSAGES
creating build\bdist.win32\egg\customfieldadmin\templates
copying build\lib\customfieldadmin\templates\customfieldadmin.html -> build\bdis
t.win32\egg\customfieldadmin\templates
copying build\lib\customfieldadmin\__init__.py -> build\bdist.win32\egg\customfi
eldadmin
byte-compiling build\bdist.win32\egg\customfieldadmin\admin.py to admin.pyc
byte-compiling build\bdist.win32\egg\customfieldadmin\api.py to api.pyc
byte-compiling build\bdist.win32\egg\customfieldadmin\__init__.py to __init__.py
c
creating build\bdist.win32\egg\EGG-INFO
copying TracCustomFieldAdmin.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO

copying TracCustomFieldAdmin.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-I
NFO
copying TracCustomFieldAdmin.egg-info\dependency_links.txt -> build\bdist.win32\
egg\EGG-INFO
copying TracCustomFieldAdmin.egg-info\entry_points.txt -> build\bdist.win32\egg\
EGG-INFO
copying TracCustomFieldAdmin.egg-info\requires.txt -> build\bdist.win32\egg\EGG-
INFO
copying TracCustomFieldAdmin.egg-info\top_level.txt -> build\bdist.win32\egg\EGG
-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\TracCustomFieldAdmin-0.2.10-py2.7.egg' and adding 'build\bdist.wi
n32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)

C:\plugin\customfieldadminplugin>

インストールログ(エラー)

C:\Windows\system32>easy_install -U -Z http://trac-hacks.org/svn/customfieldadmi
nplugin/0.11/
Downloading http://trac-hacks.org/svn/customfieldadminplugin/0.11/
Doing subversion checkout from http://trac-hacks.org/svn/customfieldadminplugin/
0.11/ to c:\users\vmware\appdata\local\temp\easy_install-anwlaq\0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir c:\users\vmware\appdata\local\temp\easy
_install-anwlaq\0.11\egg-dist-tmp-3ccm44
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 476, in install_item
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 655, in install_eggs
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 930, in build_and_install
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\easy_install.py", line 919, in run_setup
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
sandbox.py", line 62, in run_setup
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
sandbox.py", line 105, in run
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
sandbox.py", line 64, in <lambda>
  File "setup.py", line 39, in <module>
  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 971, in run_command
    cmd_obj.ensure_finalized()
  File "C:\trac\python\lib\distutils\cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\bdist_egg.py", line 94, in finalize_options
  File "C:\trac\python\lib\distutils\cmd.py", line 312, in get_finalized_command

    cmd_obj.ensure_finalized()
  File "C:\trac\python\lib\distutils\cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\egg_info.py", line 85, in finalize_options
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\egg_info.py", line 185, in tags
  File "C:\trac\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\
command\egg_info.py", line 233, in get_svn_revision
IndexError: list index out of range

C:\Windows\system32>