[Python-projects] [apycot] setup.py
sylvain.thenault at logilab.fr
Thu Apr 23 14:50:22 CEST 2009
On 23 avril 12:55, Didrik Pinte wrote:
> Hi guys,
> Still me, sorry for spamming the mailing list, but I guess, I am close
> to a running version.
> I have added a preprocessor to setup_install my package.
> SetupException while running preprocessor setup_install: No file
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/apycotbot/task.py", line 161,
> in call_preprocessor
> line 66, in test_setup
> self._install(test, test.project_path())
> line 87, in _install
> raise SetupException('No file %s' % join(path, 'setup.py'))
> SetupException: No file setup.py
> But there is a setup.py file in the checkout (executing the svn checkout
> --non-interactive -q -r HEAD
> http://myserver/svn/myproject/src/python/trunk/ creates a trunk
> directory with a setup.py in it).
> Is it because of the trunk directory ?
you could try to start the test using --keep-test-dir option. Once done, you
should see in the execution report (eg in the web app) the directory where it
has been executed, which will still exists on the file system. You can then
check what's in there.
IMO you're encoutering the svn layout pb I suspected, due to the fact that our
subversion is trying to be smart by putting itself trunk/tags/branches...
If everything seems ok in the test directory, could you try to apply the following
patch to apycotbot/repositories.py (in SVNRepository.env_path):
diff -r 66fcfdff8c82 repositories.py
--- a/repositories.py Thu Apr 23 14:48:45 2009 +0200
+++ b/repositories.py Thu Apr 23 14:48:49 2009 +0200
@@ -144,7 +144,7 @@
"""return the relative path where the project will be located
in the test environment
- return basename(self.path)
+ return basename(normpath(self.path or self.repository))
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
More information about the Python-Projects