Re: [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-14 Thread John J Lee
On Mon, 14 Apr 2008, Greg Ewing wrote: > John J Lee wrote: >> If you have a network connection, about the only reason for not wanting an >> app to be "installed" is that it has changed the behaviour of your system >> somehow, just by being in the "installed&

Re: [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-13 Thread John J Lee
On Sun, 13 Apr 2008, Greg Ewing wrote: > John J Lee wrote: > >> It allows you to think about "uninstallation" as "delete the app == delete >> the file" > > But 0install doesn't do that, as far as I can tell -- it > still keeps the data in some

Re: [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-12 Thread John J Lee
On Sat, 12 Apr 2008, Greg Ewing wrote: > John J Lee wrote: >>> I keep hoping that someday Linux will support something >>> like MacOSX application bundles and frameworks, >> >> Not the same, but "something like": >> >> http://0install.net/

Re: [Distutils] how to easily consume just the parts of eggs that are good for you

2008-04-10 Thread John J Lee
On Thu, 10 Apr 2008, Greg Ewing wrote: > Paul Moore wrote: [...] > I keep hoping that someday Linux will support something > like MacOSX application bundles and frameworks, but I > haven't seen any sign of it yet. Not the same, but "something like": http://0install.net/ John _

Re: [Distutils] Wow, I think I actually *get* it now!

2008-03-21 Thread John J Lee
On Thu, 20 Mar 2008, Phillip J. Eby wrote: [...] > Hm. So it seems to me that maybe one thing that would help is a > "Setuptools Haters' Guide To Setuptools" -- that is, *short* > documentation specifically written for people who don't want to use > setuptools and want to minimize its impact on th

Re: [Distutils] RFC: Standard Declaration of tests in eggs

2007-01-08 Thread John J Lee
On Mon, 8 Jan 2007, David Fraser wrote: [...] > So I need to go and code a test enumerator for py.test to discover tests > within eggs (which is possible) [...] Or (for new code) use nose, which AIUI is intended to be pretty much py.test implemented within the unittest framework (plus whatever bi

Re: [Distutils] [kid-discuss] installing without setuptools

2006-10-14 Thread John J Lee
Apologies for being unable to resist going over old ground by responding to this (moved here from the kid mailing list). On Sat, 14 Oct 2006, Python wrote: > On Fri, 2006-10-13 at 22:25 +0100, John J Lee wrote: >> On Fri, 13 Oct 2006, Python wrote: >> [...] >>>

Re: [Distutils] Make ez_setup.py/easy_install $PATH aware

2006-09-17 Thread John J Lee
On Sun, 17 Sep 2006, Michael Foord wrote: [...] >> (except for the part about having a little Tkinter GUI to allow you to >> install projects via a PyPI query and point and click -- that would still >> be nice, especially wrt being friendly to new Python / easy_install users) >> > This would seem t

Re: [Distutils] Make ez_setup.py/easy_install $PATH aware

2006-09-17 Thread John J Lee
On Sun, 17 Sep 2006, Phillip J. Eby wrote: [...] > Unfortunately, the details it gives are wrong. Neither cmd.exe, command.com, > nor bash will find a program registered this way, at least on my Win2K PC. [...] > A little further investigation reveals that typing "start whatever" in a > command

Re: [Distutils] Make ez_setup.py/easy_install $PATH aware

2006-09-17 Thread John J Lee
On Sat, 16 Sep 2006, Phillip J. Eby wrote: [...] > By the way, it's easy_install that we actually need to worry about, not > ez_setup. ez_setup's only job is to download and run easy_install, which > then handles everything from there. So both issues can be handled that way. > > Windows is probab

[Distutils] [setuptools] 0.6c1 package_index.py swallows KeyboardInterrupt

2006-08-03 Thread John J Lee
If an error occurs on the first download attempt, the subsequent attempts by easy_install to download a file can't be properly interrupted with Control-C (instead of terminating the process, it just jumps to the next of ten or fifteen mirrors). Here's the fix: --- /usr/lib/python2.4/site-pack

[Distutils] [setuptools] old project release bootstrap broken by removal of 0.6a11

2006-08-02 Thread John J Lee
Somebody reported to me that one of my project releases [1] has suddenly stopped being installable for people who don't already have setuptools installed. The breakage occurred because the recommended method for providing a bootstrap (bundling ez_setup.py -- or FWIW, ez_setup/__init__.py, in my

Re: [Distutils] setuptools 0.6b2 released

2006-06-01 Thread John J Lee
[...] > Heh -- that may have been part of the rationale, but it wasn't the cause. > Several core Pythonistas objected in strong terms on python-dev to various [...] Oh sugar, didn't mean to post that, and risk stiring this up again, yawn (I only meant to email it to KD). Please ignore John __

Re: [Distutils] setuptools 0.6b2 released

2006-06-01 Thread John J Lee
On Thu, 1 Jun 2006, Kevin Dangoor wrote: > On 6/1/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: >> (By the way: setuptools 0.6 is probably not going in the 2.5 stdlib; after >> lots of discussion on Python-Dev, it's fairly clear that some 0.7 release >> should be the earliest version to go in, onc

Re: [Distutils] Getting eggs from with user, password

2006-05-13 Thread John J Lee
On Fri, 12 May 2006, Ian Bicking wrote: > Mike Bernson wrote: >> I want to use eggs for a non-open source project. >> >> What I would like to do is create a page that has all the eggs for the >> project but >> is password. I would then like easy_install to be able to access this >> page. I see an

[Distutils] -U --always-unzip won't replace zipped install

2006-05-02 Thread John J Lee
Subject line nearly sums it up, I guess: if I easy_install something and get a zipped egg installed, then decide I wanted in unzipped: easy_install -U -f --always-unzip "http://prdownloads.sourceforge.net/pyexcelerator/pyexcelerator-0.6.3a.zip?download"; pyExcelerator ... Best match: pyexceler

[Distutils] NameError from setuptools 0.6a11

2006-05-02 Thread John J Lee
The fix to this is obvious: s/url/fn/ ... "c:\python24\lib\site-packages\setuptools-0.6a11-py2.4.egg\setuptools\package_index.py", line 182, in process_filename self.warn("Not found: %s", url) NameError: global name 'url' is not defined John ___

[Distutils] easy_install -f ""

2006-05-02 Thread John J Lee
Attempting to install pyExcelerator, whose PyPI entry is out of date, I tried pointing easy_install at this SF page: http://sourceforge.net/project/showfiles.php?group_id=134081&package_id=148078 That times out (maybe due to the SF advertising pause?). Maybe it can be worked around? It worke

[Distutils] setuptools and Python 2.5?

2006-04-08 Thread John J Lee
I seem to remember mention on python-dev of parts of setuptools going into Python 2.5. Did that / will that happen? If yes, any tips on updating packages & testing against 2.5 setuptools? John ___ Distutils-SIG maillist - Distutils-SIG@python.org

Re: [Distutils] Upgrading dependencies

2006-04-03 Thread John J Lee
On Mon, 3 Apr 2006, Charlie Moad wrote: > Is it currently possible to upgrade dependencies as well when > upgrading a packages? If not, this would be a really nice feature to > add to easy_install. Maybe a call like: [...] I believe this is something Phillip hopes to do in 0.7, by adding suppor

[Distutils] easy_install2.3, easy_install2.4 etc.?

2006-03-20 Thread John J Lee
Seems it would be nice to have the easy_install bootstrap installer create easy_installX.Y links for each version X.Y of Python. As it is, you have to fiddle with shell backticks, or type the full path to easy_install if on Windows. John ___ Distuti

Re: [Distutils] Missing packages

2006-03-17 Thread John J Lee
On Fri, 17 Mar 2006, Juha Tuomala wrote: [...] > In Linux world dependencies are handled with package management > with RPM and yum/apt like tools. For me it looks that setuptools > handles same area which is overlapping. I can see it's importance > in systems like Solaris where its own package too

[Distutils] Eggs != single-file importable distribution format?

2006-02-18 Thread John J Lee
>From http://peak.telecommunity.com/DevCenter/setuptools : * Create Python Eggs - a single-file importable distribution format I know there's a tradeoff between accuracy and ease of understanding, but this seems likely to cause confusion. Isn't it true that 1. the main reason-for-being of E

Re: [Distutils] --tag-svn-revision=0?

2006-02-18 Thread John J Lee
On Sun, 19 Feb 2006, John J Lee wrote: [...] > I suppose there's really no way around the commit to the tag. ...of course, I notice this blog comment from Philip Jenvey pointing out how to avoid said commit *after* I post that: http://blog.ianbicking.org/branching-practices.html#comme

Re: [Distutils] --tag-svn-revision=0?

2006-02-18 Thread John J Lee
On Sun, 19 Feb 2006, John J Lee wrote: > To avoid committing to a tag just to alter setup.cfg, I found myself > wanting to do something like this: > > python setup.py egg_info --tag-svn-revision=0 --tag-build='' sdist Hmm, that doesn't actually work anyway, of course

[Distutils] --tag-svn-revision=0?

2006-02-18 Thread John J Lee
To avoid committing to a tag just to alter setup.cfg, I found myself wanting to do something like this: python setup.py egg_info --tag-svn-revision=0 --tag-build='' sdist but: error: option --tag-svn-revision must not have an argument Could this, or something similar, be made legal? John _

Re: [Distutils] Changes to --find-links and --upgrade in SVN

2006-02-09 Thread John J Lee
On Wed, 8 Feb 2006, Phillip J. Eby wrote: [...] > happen. EasyInstall will now *only* go online if a dependency can't be > resolved locally, if -U or --upgrade is used, or if you provided suitable > direct URLs via an argument or --find-links, or via a link in a local .html > file. Great, that an

Re: [Distutils] Problems with svn in windows

2005-12-28 Thread John J Lee
On Wed, 28 Dec 2005, Sharky On PTNet wrote: I´m trying to do "easy_install setuptools==dev" in a windows box but have an error with svn command. """... 'svn' is not recognized as an internal or external command, ...""" [...] Can you tell me what client I may use in windows? http://subvers

[Distutils] [setuptools] Interactive help (was Re: documentation for mechanize)

2005-12-19 Thread John J Lee
On Mon, 19 Dec 2005, Michael P. Soulier wrote: import mechanize help(mechanize) > Traceback (most recent call last): [...] > OSError: [Errno 20] Not a directory: > '/usr/lib/python2.3/site-packages/mechanize-0.0.11a-py2.3.egg/mechanize' > > Does this not work with egg files? Has anyone t

[Distutils] [setuptools] Keeping up with SVN (was: Re: setup.py develop inaccurate...)

2005-12-18 Thread John J Lee
On Sat, 17 Dec 2005, Phillip J. Eby wrote: [...] > 0.2.2.dev-r21160 was installed, but your requirement was for 0.2.2-r21160. > > The installed version is r21160 of an in-development pre-release of 0.2.2, > while your requirement is for an r21160 *post*-release patch of 0.2.2. > > In other words

[Distutils] [setuptools] How to maintain version strings?

2005-12-18 Thread John J Lee
Annoying little issue: I have version strings here and there in my projects, and would prefer to keep the version in a single place. In particular, I have __version__ strings in module code, and also in setup.py. I also want to avoid importing code from setup.py, because people sometimes want to

[Distutils] [setuptools] setup.py develop inaccurate error message?

2005-12-17 Thread John J Lee
I got an error message while running setup.py develop that I don't understand: seems the error message claims an automatic install of a dependency failed, even though the dependency's egg actually did get installed and appears correct. (A bit tangential, but explanatory) background: Noting PJE's

Re: [Distutils] Naming conventions for module unit tests?

2005-12-14 Thread John J Lee
On Wed, 14 Dec 2005, Todd Greenwood-Geer wrote: [...] > Anyone have any good naming conventions for module tests? > > [module name]_unittest.py > test_[module_name].py > unittest_[module_name].py Hmm, I actually misread your question in your original email... Python itself uses test_[module_name

Re: [Distutils] local development scenarios

2005-12-09 Thread John J Lee
On Thu, 8 Dec 2005, Todd Greenwood-Geer wrote: [...] > the setup.py for the given egg. So the question is, given that my > friend/client is receiving eggs, how can they perform the equivalent of > '$python setup.py test'? Currently, I have suggested that they unzip the > egg and run the unittests d

Re: [Distutils] Choice of dependencies?

2005-12-06 Thread John J Lee
On Mon, 5 Dec 2005, Phillip J. Eby wrote: > At 08:45 PM 12/4/2005 +0000, John J Lee wrote: [...] > After giving this some thought, it seems to me that there might be a better > way to conceptualize this. Instead of "choose 1 of N" dependencies, why not > allow fallbacks f

Re: [Distutils] Choice of dependencies?

2005-12-04 Thread John J Lee
On Sat, 3 Dec 2005, Phillip J. Eby wrote: [...] > Well, there isn't really a way to do 1-of-N dependencies, OK. > since you would need a way for the user to pick one to be satisfied by > easy_install. That's not a "since", that's an "and" :-) I know where you're coming from though, of course:

[Distutils] Choice of dependencies?

2005-12-03 Thread John J Lee
Is it possible for a package to depend on one of several packages, with the user having the option to pick? For example, my package P might depend on package A, plus either package B or package C. I know I could (ab)use extras_require, but in my case this is a real dependency rather than an optio

Re: [Distutils] easy_install problem.

2005-12-03 Thread John J Lee
On Sat, 3 Dec 2005, Titus Brown wrote: [...] > -> 1). ez_setup.py is just the bootstrap script. Run it once, throw it away. > > Humm, I remember reading somewhere that it needed to be included. Can't > find that any more, so it was probably a misunderstanding -- good to > know! It should be inc

Re: [Distutils] easy_install problem.

2005-12-03 Thread John J Lee
Hi Titus On Fri, 2 Dec 2005, Titus Brown wrote: > it appears easy_install has trouble understanding package names with > periods in them, e.g. "zope.testbrowser". > > Also, 'python ez_setup.py --help-commands' doesn't work; "unrecognized > command". 1). ez_setup.py is just the bootstrap script.

Re: [Distutils] setuptools doc patch

2005-11-25 Thread John J Lee
On Fri, 25 Nov 2005, Phillip J. Eby wrote: > At 11:02 PM 11/24/2005 +0000, John J Lee wrote: [...] >> -You should also inform your users of the need to run this command, if they >> -are working from a Subversion checkout, rather than using EasyInstall to >> -periodically fet

[Distutils] setuptools doc patch

2005-11-24 Thread John J Lee
The comma removed by the patch below implies that users working from a Subversion checkout should not use EasyInstall to periodically fetch the latest version. That's not what you intended to say, I assume? http://peak.telecommunity.com/DevCenter/setuptools You should also inform your users of

Re: [Distutils] formencode as .egg in Debian ??

2005-11-22 Thread John J Lee
On Wed, 23 Nov 2005, "Martin v. Löwis" wrote: [...] > I don't see how the maintainer could use the dependency information > in the egg files. The maintainers could use the dependency information in the egg files by writing a tool to automatically map from the egg dep info to whatever format their

Re: [Distutils] formencode as .egg in Debian ??

2005-11-22 Thread John J Lee
On Tue, 22 Nov 2005, John J Lee wrote: [...] > Actually, I believe this is the eventual primary intended mode of > operation of eggs. In that case, the necessary sys.path manipulation is > handled either by setuptools' wrapper scripts / wrapper .exe files calling > require(versio

Re: [Distutils] formencode as .egg in Debian ??

2005-11-22 Thread John J Lee
On Tue, 22 Nov 2005, Phillip J. Eby wrote: > At 11:56 PM 11/22/2005 +0100, Martin v. Löwis wrote: > >Phillip J. Eby wrote: > >>>Debian should provide the packages, but not as eggs. > >> > >>For packages that only operate as eggs, and/or require their dependencies > >>as eggs, you are stating a co

Re: [Distutils] formencode as .egg in Debian ??

2005-11-22 Thread John J Lee
On Tue, 22 Nov 2005, "Martin v. Löwis" wrote: > > As > > I've already stated, applying this same policy to Java libraries would > > be to demanding that all the .class files be extracted to the filesystem > > and any manifest files be deleted, before Debian would consent to > > package them. I

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-11-01 Thread John J Lee
On Tue, 1 Nov 2005, Phillip J. Eby wrote: > At 07:02 PM 11/1/2005 +0000, John J Lee wrote: >> Yes, that works -- see attached patch, verified to work on my XP SP2 >> machine with native win32 SVN 1.2.3. > > Interestingly, I *am* able to reproduce your problem, but only

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-11-01 Thread John J Lee
On Tue, 1 Nov 2005, John J Lee wrote: On Tue, 1 Nov 2005, Phillip J. Eby wrote: [...] I wonder what the permission problem is, and if perhaps it could be fixed by easy_install doing an os.walk() and chmod'ing the files and/or directories before the rmtree? I'll give it a try, jus

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-11-01 Thread John J Lee
On Tue, 1 Nov 2005, Phillip J. Eby wrote: [...] > I wonder what the permission problem is, and if perhaps it could be fixed by > easy_install doing an os.walk() and chmod'ing the files and/or directories > before the rmtree? I'll give it a try, just a minute... John ___

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-11-01 Thread John J Lee
On Tue, 1 Nov 2005, John J Lee wrote: [...] > --- setuptools\command\easy_install.py~ Mon Oct 31 18:09:31 2005 > +++ setuptools\command\easy_install.py Tue Nov 01 11:12:53 2005 > @@ -318,7 +318,8 @@ > > finally: > if os.path.exists(tmpdir): > -

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-11-01 Thread John J Lee
On Mon, 31 Oct 2005, Phillip J. Eby wrote: > At 08:37 PM 10/31/2005 +0000, John J Lee wrote: >> svn: Unknown hostname 'svn.eby-sarna.com' > > This is a DNS problem that I just fixed (I think), please try again. > > >> Problems: >> >> 1. Failure t

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-10-31 Thread John J Lee
On Mon, 31 Oct 2005, Phillip J. Eby wrote: > At 11:25 PM 10/31/2005 +0000, John J Lee wrote: > > >I eagerly anticipate the day when .require() installs at the start of > >sys.path. > > It's not going to do that, but as of 0.6a6 eggs are placed before the > d

Re: [Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-10-31 Thread John J Lee
On Mon, 31 Oct 2005, Phillip J. Eby wrote: > At 08:37 PM 10/31/2005 +0000, John J Lee wrote: > >svn: Unknown hostname 'svn.eby-sarna.com' > > This is a DNS problem that I just fixed (I think), please try again. (Can't try from here, will try in the

[Distutils] setuptools: Missing unmanaged module warning; Failed SVN cleanup; Wrong version in .egg name

2005-10-31 Thread John J Lee
Hi all, I'm trying to get some Egg/setuptools/easy_install-ified packages working. I've run into three problems. I'm running on Windows XP SP2 with Python 2.4.2. I believe I have the latest easy_install. I have setuptools 0.6a6. First, here's what I'm doing (readers should be able to duplica