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

John J Lee jjl at pobox.com
Tue Nov 1 12:19:56 CET 2005


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 to remove temporary SVN working copy on XP SP2.  I get the
>> same issue with my own manual checkouts, and use rmdir /q /s working_copy
>> to get rid of them.
>
> Check and see if this happens when you're *not* getting the 'Unknown 
> hostname' bit.  If so, then I'd guess there's a problem with how SVN is 
> setting the permissions.  I'd need more info about this to debug.  (I use 
> cygwin subversion and don't have any problems with this on Win2K.)
[...]

The DNS problem is gone, but it still fails to remove the checkout. 
That's no surprise to me, even though I'm ignorant of exactly how Windows 
handles file permissions: Everybody here uses non-cygwin SVN on Windows, 
and wev'e all found we have to use rmdir /q /s to kill off SVN working 
copies (or use Windows explorer) -- eg. win32-compiled rm -rf from SF 
project Unxutils does NOT do the trick.

If I apply the following hack, the problem with removing the temp working 
copy goes away, but I still don't get dependencies downloaded or 
installed:

--- 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):
-                shutil.rmtree(tmpdir)
+                #shutil.rmtree(tmpdir)
+                os.system('rmdir /q /s %s' % tmpdir)


Before applying patch:

"""
C:\jjlee>easy_install -d . -m "mechanize==dev"
Searching for mechanize==dev
Reading http://www.python.org/pypi/mechanize/
Reading http://wwwsearch.sourceforge.net/mechanize/
Best match: mechanize dev
Downloading http://codespeak.net/svn/wwwsearch/mechanize/trunk#egg=mechanize-dev
Doing subversion checkout from http://codespeak.net/svn/wwwsearch/mechanize/trunk to c:\docume~1\johnle~1\locals~1\temp\easy_install---5g_f\trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir c:\docume~1\johnle~1\locals~1\temp\easy_install---5g_f\trunk\egg-dist-tmp-ruuebc

Installed c:\jjlee\mechanize-0.0.10a-py2.4.egg

Because this distribution was installed --multi-version or --install-dir,
before you can import modules from this package in an application, you
will need to 'import pkg_resources' and then use a 'require()' call
similar to one of these examples, in order to select the desired version:

     pkg_resources.require("mechanize")  # latest installed version
     pkg_resources.require("mechanize==0.0.10a")  # this exact version
     pkg_resources.require("mechanize>=0.0.10a")  # this version or higher

error: c:\docume~1\johnle~1\locals~1\temp\easy_install---5g_f\trunk\.svn\dir-prop-base: Permission denied

C:\jjlee>
"""


After applying patch:

"""
Searching for mechanize==dev
Reading http://www.python.org/pypi/mechanize/
Reading http://wwwsearch.sourceforge.net/mechanize/
Best match: mechanize dev
Downloading http://codespeak.net/svn/wwwsearch/mechanize/trunk#egg=mechanize-dev
Doing subversion checkout from http://codespeak.net/svn/wwwsearch/mechanize/trunk to c:\docume~1\johnle~1\locals~1\temp\easy_install-soaort\trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir c:\docume~1\johnle~1\locals~1\temp\easy_install-soaort\trunk\egg-dist-tmp-rqzfts
Adding mechanize 0.0.10a to easy-install.pth file

Installed c:\python24\lib\site-packages\mechanize-0.0.10a-py2.4.egg
"""


Note no dependencies downloaded, contrary to the setup.py's 
install_requires declaration (included in my earlier post here)!

Any ideas?


John


More information about the Distutils-SIG mailing list