[Distutils] setup.py test doesn't honor --find-links

Tres Seaver tseaver at palladion.com
Tue Mar 14 16:23:31 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can we extend the test command (deriving from easy_install, I guess,
instead of Command), to take the same options it does?

I tried hacking at it a bit, but without much success so far:  I've
gotten it to accept the '--find-links' option, but not actually to *use* it:

$ cd ~/projects/eggz/src/zope.tales
$ ../../bin/python setup.py test \
  --find-links="http://download.zope.org/distribution"
running test
running egg_info
writing requirements to src/zope.tales.egg-info/requires.txt
writing src/zope.tales.egg-info/PKG-INFO
writing top-level names to src/zope.tales.egg-info/top_level.txt
writing namespace_packages to src/zope.tales.egg-info/namespace_packages.txt
warning: manifest_maker: standard file not found: should have one of
README, README.txt
writing manifest file 'src/zope.tales.egg-info/SOURCES.txt'
running build_ext
Checking .pth file support in .
/home/tseaver/projects/PyCon2006/eggification/sandbox/src/zope.tales/../../bin/python
- -E -c pass
Searching for zope.testing
Reading http://www.python.org/pypi/zope.testing/
Couldn't find index page for 'zope.testing' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://www.python.org/pypi/
No local packages or download links found for zope.testing
error: Could not find suitable distribution for
Requirement.parse('zope.testing')



I'm attaching the patch against the current SVN head,


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEFt/z+gerLs4ltQ4RAvdFAKCRSHP44tnDHIKdnHP7dEtZxvyqBgCdFWBE
dULlC535P+qeO8m5MZLogig=
=lM5x
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setuptools_test_find_links.patch
Type: text/x-patch
Size: 1988 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20060314/534e45c1/attachment.bin 


More information about the Distutils-SIG mailing list