[Distutils] [issue29] SVN detection for package indices breaks on Sourceforge.net

2008-07-28 Thread Nathan R. Yergler
New submission from Nathan R. Yergler <[EMAIL PROTECTED]>: PackageIndex._download_html (setuptools/package_index.py) attempts to detect if an HTML page is a Subversion repository using the regular expression r'Revision \d+:'. This breaks for Sourceforge subversion repositorie

Re: [Distutils] setuptools: Problem with auto-scripts and standalone scripts

2007-07-05 Thread Nathan R. Yergler
Scripts need to address a callable, not a module. See http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation and inline below for corrections. On 7/5/07, Frank McIngvale <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to use setuptools auto-script feature with standalone scripts

Re: [Distutils] setuptools bug: broken simlinks break setup()

2007-06-26 Thread Nathan R. Yergler
I just tried it and saw the error as Andrew described. On 6/25/07, Andrew Straw <[EMAIL PROTECTED]> wrote: > Phillip J. Eby wrote: > > > What platform are you on? > > Ubuntu GNU/Linux: both 6.10 x86_64 Python 2.4 as well as 7.04 i686 > Python 2.5. > ___

Re: [Distutils] I need to create a customized Fedora live cd with Python applications on it

2007-04-24 Thread Nathan R. Yergler
On 4/24/07, Stanley A. Klein <[EMAIL PROTECTED]> wrote: > I need to create a customized Fedora live CD with Python applications on > it. The live CD requires rpm's of the applications. (The issues are > similar to a customized Ubuntu live CD but Ubuntu requires deb's.) > > It seems that the distu

[Distutils] Detecting if a package was installed with an "extra"

2007-03-20 Thread Nathan R. Yergler
I'm working on an improvement to my RDFa parser and because it will rely on an external tool, I'm using an extra to require it to be explicitly required. Is there a way to tell at runtime if an egg (for the code running) was installed with an extra. For example, detecting the difference between:

Re: [Distutils] Getting an egg's version: better way?

2007-03-16 Thread Nathan R. Yergler
Thanks guys, that helps a lot. On 3/15/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 10:48 AM 3/15/2007 -0400, Nathan R. Yergler wrote: > >I have a situation where I want to get the version of an egg that's > >installed. I figured out the following, but wanted

[Distutils] Getting an egg's version: better way?

2007-03-15 Thread Nathan R. Yergler
I have a situation where I want to get the version of an egg that's installed. I figured out the following, but wanted to know if I'm missing something obvious that's easier:: >>> import pkg_resources >>> p = pkg_resources.get_provider("cctagutils") >>> for line in p.get_metadata_lines("PKG

Re: [Distutils] Setting environment variables before building eggs w/ extensions using zc.buildout

2007-03-14 Thread Nathan R. Yergler
Late reply... On 3/8/07, Jim Fulton <[EMAIL PROTECTED]> wrote: > > On Mar 7, 2007, at 2:07 PM, Nathan R. Yergler wrote: > > I meant to reply earlier. Sorry. > > > I had a problem come up today that I've run into before, and I'd like > > to figure out a

[Distutils] buildout, zc.recipe.testrunner and tests_require

2007-03-11 Thread Nathan R. Yergler
I'm using zc,buildout to manage the development of a very simple web application. I'd like to have a simple test runner that runs my doctests, but have run into a slight problem. I'm using wsgi_intercept to aid in testing, but unfortunately wsgi_intercept isn't a proper Python package ("yet", acc

[Distutils] Setting environment variables before building eggs w/ extensions using zc.buildout

2007-03-07 Thread Nathan R. Yergler
I had a problem come up today that I've run into before, and I'd like to figure out a way to prevent it from sucking my time down in the future. Several apps we run at Creative Commons use lxml (http://codespeak.net/lxml) for XML, XSLT and XPath processing. lxml builds on libxml2, and provides an

[Distutils] easy_install prefers source?

2007-02-27 Thread Nathan R. Yergler
Forwarding to the list because I wasn't smart enough to "reply-all"... -- Forwarded message ------ From: Nathan R. Yergler <[EMAIL PROTECTED]> Date: Feb 27, 2007 5:36 PM Subject: Re: [Distutils] easy_install prefers source? To: "Phillip J. Eby&q

[Distutils] easy_install prefers source?

2007-02-26 Thread Nathan R. Yergler
At the PyCon sprints Jim and I were working with easy_install and working_env under Windows and noticed some odd behavior. When within an activated working environment, attempting to do something like: c:\...>easy_install lxml==1.1 attempts to retrieve the source distribution rather than the ava

[Distutils] develop egg recipe?

2006-12-01 Thread Nathan R. Yergler
I'm using zc.buildout for a project that also utilizes a custom egg-info writer. I specify the egg-info writer package as a setup_requires package in setup.py. Of course, that doesn't trigger zc.buildout (er, setuptools) to install that egg when I run buildout. I could work around this by specif

[Distutils] Building an egg from Subversion using zc.buildout

2006-11-19 Thread Nathan R. Yergler
I'm using zc.buildout for deploying a handful of applications, and one of our dependencies doesn't have eggs or "correctly" formatted pages (that would allow easy_install to track down the repository for direct building from source). Does zc.buildout provide any way to build an egg from a Subversi

Re: [Distutils] should I use distutils for a gnome-applet?

2006-11-13 Thread Nathan R. Yergler
On Mon, 2006-11-13 at 10:08 +, Jorge Vargas wrote: [snip] > > > I though zc goal was to build zope apps, on the other hand how much of > a footprint do you actually need for ac.buildout package? do you need > to distribute the whole package bungle with the install? Well I think that Zope Cor

[Distutils] error: None

2006-05-22 Thread Nathan R. Yergler
Thanks to Phillip for the insight into the interaction between command-line arguments and options. So another question regarding error reporting. When I so something like: $ PYTHONPATH=lib/ python ez_setup.py --install-dir lib/ --script-dir bin/ --site-dirs lib/ zope.testing setuptools is boots

Re: [Distutils] Installing via ez_setup.py reports error

2006-05-22 Thread Nathan R. Yergler
>> error: No urls, filenames, or requirements specified (see --help) > > When ez_setup.py sees any command-line arguments, it runs easy_install > with them once setuptools is bootstrapped. EasyInstall then sees that > there are only options and no arguments, so it complains. I'm not sure > if th

[Distutils] Installing via ez_setup.py reports error

2006-05-22 Thread Nathan R. Yergler
I'm working on increasing my setuptools-foo-zen-karma-whatever, and have a question. According to the docs at http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions, you just need to download ez_setup.py and run it to install setuptools. I'm trying to install to a custom lo