2008年2月16日土曜日

Buildbot

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク
twistedを落としてきてインストールを試みる。zope interfaceがないと動かないが、必要とされるバージョンがyumに登録されているものより新しいので自前でrpmを作る。zope interfaceはうまくいくのだが、twisted本体分のsdistを生成できない。はて。

[nori@Asama]~/Desktop/work/packaging/twisted/Twisted-2.5.0% python setup.py sdist
running sdist
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
Traceback (most recent call last):
File "setup.py", line 108, in ?
dist.setup(**setup_args)
File "./twisted/python/dist.py", line 74, in setup
return core.setup(**kw)
File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib64/python2.4/distutils/command/sdist.py", line 143, in run
self.get_file_list()
File "/usr/lib64/python2.4/distutils/command/sdist.py", line 240, in get_file_list
self.add_defaults()
File "/usr/lib64/python2.4/distutils/command/sdist.py", line 301, in add_defaults
self.filelist.extend(build_ext.get_source_files())
File "/usr/lib64/python2.4/distutils/command/build_ext.py", line 371, in get_source_files
self.check_extensions_list(self.extensions)
File "/usr/lib64/python2.4/distutils/command/build_ext.py", line 304, in check_extensions_list
(ext_name, build_info) = ext
TypeError: unpack non-sequence
Error: Subprocess exited with result 1 for project core

検索すると・・・
svnから直取りしなさい・・・そういうことじゃないだろ。
バグレポートにもでている。

これっぽい。

[#1811] setup.py bdist_rpm fails on FC5 for x86_64 (opened by troy@???) (CLOSED, duplicate)
defect core http://twistedmatrix.com/trac/ticket/1811


重複だといわれていて、統合された先はこいつ



On Red Hat EL4, Twisted 2.2.0 fails to build into RPMs with "python setup.py all bdist_rpm". Here are workarounds for two problems:

1. The detectExtensions hack in Twisted-2.2.0/twisted/python/dist.py setup() causes the build to fail. The build proceeds if this is commented out.

2. Except for the core and Conch, the components all have names in setup.py of the form "Twisted Something". This causes the RPM spec file to be invalid, as RPM package names cannot have spaces. A fix is to change the names to "TwistedSomething?".

1 件のコメント:

nori さんのコメント...

setup.pyで、Conchはname="Conch"なのだが、Loreはname="Twisted Lore"になっている。なんだかねぇ。