Message from discussion
spyder directory layout question
Received: by 10.224.192.1 with SMTP id do1mr2151505qab.0.1327118624678;
Fri, 20 Jan 2012 20:03:44 -0800 (PST)
X-BeenThere: spyderlib@googlegroups.com
Received: by 10.229.166.138 with SMTP id m10ls4304555qcy.3.gmail; Fri, 20 Jan
2012 20:03:42 -0800 (PST)
Received: by 10.224.192.1 with SMTP id do1mr2151307qab.0.1327118622951;
Fri, 20 Jan 2012 20:03:42 -0800 (PST)
Received: by 10.224.192.1 with SMTP id do1mr2151305qab.0.1327118622932;
Fri, 20 Jan 2012 20:03:42 -0800 (PST)
Return-Path: <ccordob...@gmail.com>
Received: from mail-qw0-f42.google.com (mail-qw0-f42.google.com [209.85.216.42])
by gmr-mx.google.com with ESMTPS id jp9si3251998qcb.2.2012.01.20.20.03.42
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 20 Jan 2012 20:03:42 -0800 (PST)
Received-SPF: pass (google.com: domain of ccordob...@gmail.com designates 209.85.216.42 as permitted sender) client-ip=209.85.216.42;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ccordob...@gmail.com designates 209.85.216.42 as permitted sender) smtp.mail=ccordob...@gmail.com; dkim=pass header...@gmail.com
Received: by qabj34 with SMTP id j34so746313qab.15
for <spyderlib@googlegroups.com>; Fri, 20 Jan 2012 20:03:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding;
bh=h0VJEdIG/goA2FSClHGh+lZfsnnTIhgirSZgQOpfvvM=;
b=aXyRQG2TBXfUiIrKLr1asuwFId+YuL+/y7+J2F1NKW4tL233gRzdk55A+9l5whB8Bk
Q/p1e+OvDlReSUSQB+4MORnkXWi9XDnCi/FlUaOuconpouSIR2SDLMRHmwW4hD66uHMf
lLfeHorJjrKPyC4iHeFD7hRbuv18cdXdwEPnA=
Received: by 10.224.45.6 with SMTP id c6mr764908qaf.62.1327118622773;
Fri, 20 Jan 2012 20:03:42 -0800 (PST)
Return-Path: <ccordob...@gmail.com>
Received: from [192.168.0.7] ([201.244.202.124])
by mx.google.com with ESMTPS id de9sm10593250qab.9.2012.01.20.20.03.40
(version=SSLv3 cipher=OTHER);
Fri, 20 Jan 2012 20:03:41 -0800 (PST)
Message-ID: <4F1A391B.6000...@gmail.com>
Date: Fri, 20 Jan 2012 23:03:39 -0500
From: =?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?= <ccordob...@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0
MIME-Version: 1.0
To: spyderlib@googlegroups.com
Subject: Re: [spyder] Re: spyder directory layout question
References: <344d6fa4-6544-4c9e-b360-c9560deff...@1g2000yqv.googlegroups.com> <11308558.1311.1327012447235.JavaMail.geo-discussion-forums@yqhh6> <1a2aa5ac-910b-4497-b616-d7bd8a2fb...@t13g2000yqg.googlegroups.com> <-8284016134080621919@unknownmsgid> <0f5962a8-1b6b-4431-bb6d-72d55b2f9...@v14g2000yqh.googlegroups.com>
In-Reply-To: <0f5962a8-1b6b-4431-bb6d-72d55b2f9...@v14g2000yqh.googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
It's not supposed to, it's just the current behavior which, as Pierre
suggested, can be changed, and I would like to give my +1 for it. I
think it's a good idea.
El 20/01/12 18:11, Steve escribió:
> So a bootstrapped devel version of spyder is supposed to use the
> default ini (same as installed version)?
>
> On Jan 20, 4:04 pm, Pierre Raybaut<pierre.rayb...@gmail.com> wrote:
>> Le 20 janv. 2012 à 00:18, Steve<steve.f.thomp...@gmail.com> a écrit :
>>
>>> After install you will see it creates three separate folders:
>>> C:\Python27\Lib\site-packages\spyder
>>> C:\Python27\Lib\site-packages\spyderlib
>>> C:\Python27\Lib\site-packages\spyderplugins
>> Only the two last ones are really installed by Spyder itself. The
>> first one is created by the Spyder's Python(x,y) Windows installer and
>> has absolutely no direct effect on the Python installation (files
>> related to the Python(x,y) installer are stored there: uninstaller
>> program, installation log, ...).
>>
>>> This structure pretty much forces development to be done away from the
>>> normal spyder paths.
>>> It just seems like it would be cleaner if it were all located under
>>> C:\Python27\Lib\site-packages\spyder
>> The current situation is clean -- it is very common (and totally
>> admitted and handled by official deployment tools like distutils) for
>> Python libraries to have more than one package inside them (meaning
>> more than one folder installed in site-packages). Two seems quite
>> reasonable.
>>
>>> Putting all the files in the one directory could have the side effect
>>> of letting development be done in the folder under site-packages
>>> instead of somewhere else.
>> Well, developing directly in the site-packages directory is clearly
>> not a good practice. This directory is only intended as a target
>> folder for installing libraries, not for developing code. For this,
>> you would have to create a development folder elsewhere (on Windows,
>> preferably outside C:\Python27) and add it to your PYTHONPATH user
>> environment variable. Or, as suggested Anatoly, you may directly run
>> Spyder's development version through the bootstrap script without
>> having to change your environment variables.
>>
>>> I do know that you can bootstrap spyder from the development
>>> directory. I don't, however, know how to specify an ini. It doesn't
>>> seem to use the default %USERPROFILE%/.spyder2/.spyder.ini file. Is
>>> that by design or coincidence? I dropped a spyder.ini into my devel
>>> directory but spyder seemed to ignore it.
>> AFAIK, Spyder is using the ini located in user's home directory.
>>
>> If this is an issue with the ini file being the same with the stable
>> release and the development release, then this is another problem.
>> Note that it would be a good idea to create a preference directory
>> specific to the development version.
>>
>> In the meantime, you may copy the whole directory and restore it later
>> if you want to backup your whole configuration. Note that there is
>> also the "session" open/save feature which should do exactly the same
>> thing.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> On Jan 19, 4:34 pm, anatoly techtonik<techto...@gmail.com> wrote:
>>>> FYI, it is easier for development to just run Spyder from source - without
>>>> placing it into site-packages.
>>> --
>>> You received this message because you are subscribed to the Google Groups "spyder" group.
>>> To post to this group, send email to spyderlib@googlegroups.com.
>>> To unsubscribe from this group, send email to spyderlib+unsubscribe@googlegroups.com.
>>> For more options, visit this group athttp://groups.google.com/group/spyderlib?hl=en.