[Distutils] Problem with --uninstall option to setup.py develop

Warren Weckesser warren.weckesser at enthought.com
Tue Apr 27 19:18:22 CEST 2010


I am using version "0.6c9-s1" of setuptools and Python 2.6.4.

I am trying to use the --uninstall option of "setup.py develop", but 
even with a simple example, I get the following error:

-----
none:devtest warren$ python setup.py develop --uninstall
running develop
Traceback (most recent call last):
 File "setup.py", line 8, in <module>
   author="WW",
 File 
"/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/distutils/core.py", 
line 152, in setup
   dist.run_commands()
 File 
"/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/distutils/dist.py", 
line 975, in run_commands
   self.run_command(cmd)
 File 
"/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/distutils/dist.py", 
line 995, in run_command
   cmd_obj.run()
 File 
"/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/setuptools/command/develop.py", 
line 26, in run
   self._run_egg_info_script(self.distribution.location,
AttributeError: Distribution instance has no attribute 'location'
none:devtest warren$
-----

My files look like this:

devtest/
   setup.py
   qwerty/
       __init__.py
       qwerty.py

Running "setup.py develop" works fine.

Here's setup.py:

-----
from setuptools import setup, find_packages

setup(
   name="qwerty",
   packages=find_packages(),
   version="0.1.0",
   author="WW",
)
-----

Is this a known problem, maybe fixed in a later version?


Regards,

Warren





More information about the Distutils-SIG mailing list