-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Withers wrote:
> ch...@server2:~$ python virtualenv.py --no-site-packages test_pil > New python executable in test_pil/bin/python > Installing setuptools.............................done. > ch...@server2:~$ cd test_pil/ > ch...@server2:~/test_pil$ source bin/activate You do know that the 'activate' bit pollutes your shell environment, right? I use virtualenv daily, with dozens of them on my system at any one time, and *never* use activate. > (test_pil)ch...@server2:~/test_pil$ easy_install PIL > <snip> > Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-e9Tqhd/PIL-1.1.7/egg-dist-tmp-wuELlI > WARNING: '' not a valid package name; please use only.-separated package > names in setup.py > Finished processing dependencies for PIL > (test_pil)ch...@server2:~/test_pil$ python > <snip> > >>> import Image > >>> Image.__file__ > '/home/chris/test_pil/lib/python2.4/site-packages/PIL-1.1.7-py2.4-linux-i686.egg/Image.pyc' > > Yeah, the warning is a wart, but what's the problem? > Has anyone tried asking Fred politely before? > I did this a while back about the name of the distribution file and he > was happy to change it to make things work for setuptools. > What's he's not happy about is people ranting at him about a tool he > doesn't use or care about ;-) He doesn't namespace his pacakge, which means that his module names clash. E.g.:: $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages /tmp/PIL-bare New python executable in /tmp/PIL-bare/bin/python Installing setuptools............done. $ /tmp/PIL-bare/bin/python >>> import PIL Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named PIL >>> import Image >>> Image.__file__ '/tmp/PIL-bare/lib/python2.6/site-packages/PIL-1.1.7-py2.6...' The repackagd versions put his modules in a PIL namespace: $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages /tmp/PIL-ns New python executable in /tmp/PIL-ns/bin/python Installing setuptools............done. $ /tmp/PIL-ns/bin/easy_install \ -i http://dist.repoze.org/legacy/simple PIL ... Finished processing dependencies for PIL $ /tmp/PIL-ns/bin/python ,,, >>> import Image Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Image >>> import PIL >>> PIL.__file__ '/tmp/PIL-ns/lib/python2.6/site-packages/PIL-1.1.6-py2.6...' >>> import PIL.Image >>> > I dunno if changing the package name is going to be an easy thing for > him to do.. Easy or not doesn't matter: he flat refuses. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvIgzAACgkQ+gerLs4ltQ7VywCgjglSOMrd/dHf1QKAXN2PHGn5 7MgAoMJhSWdreBTcgMAaRnPN5/RGfGX4 =swOe -----END PGP SIGNATURE----- _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev