On 02/03/2010 12:31 AM, P.J. Eby wrote:

Question 2: I thought you could only have one index. So installing
something extra from pypi seems out.

You can always add a mod_rewrite rule in your index root, that checks
for the nonexistence of a projectname, and then automatically redirects
to the PyPI index for that page. easy_install will not be confused by
this - it will treat the PyPI page as if it had been served by your
index. (But of course it will correctly interpret any relative links
found as relative to the PyPI page, rather than as relative to the URL
it tried to fetch from your index. If you don't understand any of this,
don't worry... it Just Works.)

Hey, great idea.

For another employer I did something similar which looked up the "missing" package in a local pypi cache/proxy thingy. Redirecting... Hm :-)

I *think* I'll use this redirect trick in combination with a local sdistmaker-made simple index [1]. Then I'll just use my customary buildout techniques to get repeatable builds.

For the arcgis-wants-it-in-sitepackages-on-windows problem I'll have to fix up something else. I suspect a custom index (with Tres' compoze to manage it) fits that bill just fine. Ok, I'm off setting stuff up.


Reinout

[1]: http://pypi.python.org/pypi/tha.sdistmaker

--
Reinout van Rees - [email protected] - http://reinout.vanrees.org
Programmer/advisor at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to