Installing as editable form mercurial is not working

16 views
Skip to first unread message

Michele Mattioni

unread,
May 16, 2013, 6:09:19 AM5/16/13
to sumatr...@googlegroups.com
Hello list,

I've tried to install Sumatra this morning from the bitbucket repo as editable with


However this installation fails, due to the name of the main directory being src and not sumatra

The Sumatra-egg.link points to <virtualenv>/src/sumatra

although if you follow that link you have all the top directories of the sumatra package.

The code lives in the src directory, which is not python standard.
I'm proposing to rename the src to sumatra, so the package can also been used directly if installed from bitbucket or neuroensemble, and it also works if the user just download the package and just adds it to the repo.

Is there any stop holder to not do this?

Cheers,
Michele

--
Michele Mattioni, PhD
http://michelemattioni.me

Daniel Wheeler

unread,
May 16, 2013, 9:47:29 AM5/16/13
to sumatr...@googlegroups.com
On Thu, May 16, 2013 at 6:09 AM, Michele Mattioni <matt...@gmail.com> wrote:
Hello list,

I've tried to install Sumatra this morning from the bitbucket repo as editable with


However this installation fails, due to the name of the main directory being src and not sumatra

The Sumatra-egg.link points to <virtualenv>/src/sumatra

although if you follow that link you have all the top directories of the sumatra package.

The code lives in the src directory, which is not python standard.

I'm proposing to rename the src to sumatra, so the package can also been used directly if installed from bitbucket or neuroensemble, and it also works if the user just download the package and just adds it to the repo.

I didn't see a ticket for this so I filed one.


--
Daniel Wheeler

Andrew Davison

unread,
May 21, 2013, 5:25:45 AM5/21/13
to sumatr...@googlegroups.com
OK, I've done this. Please go ahead and try it out.

By the way, since the former Neurotools.parameters module is now on PyPI as a standalone package, I've removed the copy in "external". You will have to "pip install parameters" (although installing Sumatra should automatically install it for you).

Cheers,

Andrew
 

Daniel Wheeler

unread,
May 21, 2013, 9:43:29 AM5/21/13
to sumatr...@googlegroups.com
On Tue, May 21, 2013 at 5:25 AM, Andrew Davison <andrew....@unic.cnrs-gif.fr> wrote:


On Thursday, 16 May 2013 15:47:29 UTC+2, Daniel Wheeler wrote:
On Thu, May 16, 2013 at 6:09 AM, Michele Mattioni <matt...@gmail.com> wrote:
I'm proposing to rename the src to sumatra, so the package can also been used directly if installed from bitbucket or neuroensemble, and it also works if the user just download the package and just adds it to the repo.

I didn't see a ticket for this so I filed one.

OK, I've done this. Please go ahead and try it out.

"python setup.py develop" seems to work with the change below.

diff --git a/setup.py b/setup.py
index b0bfc65..dc87eb3 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import distribute_setup
 distribute_setup.use_setuptools()
 from setuptools import setup
 from distutils.command.sdist import sdist
-from src.__init__ import __version__
+from sumatra.__init__ import __version__
 import os



--
Daniel Wheeler

Andrew Davison

unread,
May 21, 2013, 9:57:04 AM5/21/13
to sumatr...@googlegroups.com
I fixed "from src.__init__" earlier today.

Can you do an "hg pull -u" and check again?

Daniel Wheeler

unread,
May 21, 2013, 10:06:35 AM5/21/13
to sumatr...@googlegroups.com
On Tue, May 21, 2013 at 9:57 AM, Andrew Davison <andrew....@unic.cnrs-gif.fr> wrote:


I fixed "from src.__init__" earlier today.

Can you do an "hg pull -u" and check again?

Seems to work with 970782393205. Thanks!
 





--
Daniel Wheeler
Reply all
Reply to author
Forward
0 new messages