[Buildbot-commits] [SPAM] [Buildbot] #907: zip_safe is true for buildslave, and windows fails to find it
Buildbot
buildbot-devel at lists.sourceforge.net
Sun Jun 27 04:00:00 UTC 2010
#907: zip_safe is true for buildslave, and windows fails to find it
---------------------+------------------------------------------------------
Reporter: dustin | Owner: dustin
Type: defect | Status: new
Priority: critical | Milestone: 0.8.1
Version: 0.8.0 | Keywords: windows
---------------------+------------------------------------------------------
From an email thread:
http://thread.gmane.org/gmane.comp.python.buildbot.devel/6199/focus=6209
----
I tested this out and found that while buildslave is installed in the
Scripts directory, it still doesn't work for me. I tried running the
buildslave script directly:
{{{
D:\buildbot-slave-0.8.1-rc2>python c:\Python26\Scripts\buildslave
Traceback (most recent call last):
File "c:\Python26\Scripts\buildslave", line 4, in <module>
import pkg_resources
File "c:\Python26\lib\site-
packages\setuptools-0.6c9-py2.6.egg\pkg_resources.p
y", line 2562, in <module>
File "c:\Python26\lib\site-
packages\setuptools-0.6c9-py2.6.egg\pkg_resources.p
y", line 626, in require
File "c:\Python26\lib\site-
packages\setuptools-0.6c9-py2.6.egg\pkg_resources.p
y", line 524, in resolve
pkg_resources.DistributionNotFound: buildbot-slave==0.8.1-rc2
}}}
I compared this to running buildbot 0.8.0's script directly, which worked
fine.
The corresponding bat file is also still missing. This is easy enough to
fix and I can submit a patch for that, but I don't understand why
easy_install thinks buildbot-slave is not installed. I did notice that it
now installs an egg file instead of the extracted egg in a
directory under site-packages.
Dan
----
I saw the patch:
http://github.com/djs/buildbot/commits/bugfix_win32
and I'll leave it to Ben to merge it, since it's a patch to the branch.
As for not finding the distribution - the buildslave package does not use
__file__, so it can be installed as an egg (a zip file), rather than as a
directory containing .py files. I wonder if this results in the
setuptools being unable to find it?
Can you try rebuilding the egg from setup.py, but adding { 'zip_safe' :
False } to setup_args?
Dustin
----
'zip_safe' : False seems to do it. I'm able to run buildslave.bat now.
Dan
--
Ticket URL: <http://buildbot.net/trac/ticket/907>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list