[Distutils] Twisted and easy_install

2006-02-05 Thread Jay Parlar
I'm having trouble doing an install of the newest Twisted from the
Cheeseshop, using easy_install. I took a quick look through the
archives of distutils-sig, and couldn't find anything. I'm running on
OS X 10.3.9, latest version of setuptools (did an 'easy_install -U
setuptools' right before I tried installing Twisted). I've pasted the
result below. Any thoughts?

Searching for twisted
Reading http://www.python.org/pypi/twisted/
Couldn't find index page for 'twisted' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://www.python.org/pypi/
Reading http://www.python.org/pypi/Twisted/2.1.0
Reading http://www.twistedmatrix.com
Reading http://twistedmatrix.com/projects/core/
Best match: Twisted 2.1.0
Downloading http://tmrc.mit.edu/mirror/twisted/Twisted/2.1/Twisted-2.1.0.tar.bz2
Processing Twisted-2.1.0.tar.bz2
Running Twisted-2.1.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-ssfbd7/Twisted-2.1.0/egg-dist-tmp--DvGj-
Traceback (most recent call last):
  File /Library/Frameworks/Python.framework/Versions/2.4/bin/easy_install,
line 7, in ?
sys.exit(
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 1138, in main
setup(script_args = ['-q','easy_install', '-v']+argv, **kw)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py,
line 149, in setup
dist.run_commands()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py,
line 946, in run_commands
self.run_command(cmd)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py,
line 966, in run_command
cmd_obj.run()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 230, in run
self.easy_install(spec, not self.no_deps)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 317, in easy_install
return self.install_item(spec, download, tmpdir, deps)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 338, in install_item
dists = self.install_eggs(spec, download, tmpdir)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 532, in install_eggs
return self.build_and_install(setup_script, setup_base)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 807, in build_and_install
self.run_setup(setup_script, setup_base, args)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/easy_install.py,
line 796, in run_setup
run_setup(setup_script, args)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/sandbox.py,
line 26, in run_setup
DirectorySandbox(setup_dir).run(
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/sandbox.py,
line 63, in run
return func()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/sandbox.py,
line 29, in lambda
{'__file__':setup_script, '__name__':'__main__'}
  File setup.py, line 113, in ?
  File ./twisted/python/dist.py, line 69, in setup
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py,
line 149, in setup
dist.run_commands()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py,
line 946, in run_commands
self.run_command(cmd)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py,
line 966, in run_command
cmd_obj.run()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/bdist_egg.py,
line 167, in run
self.run_command(egg_info)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/cmd.py,
line 333, in run_command
self.distribution.run_command(command)
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py,
line 966, in run_command
cmd_obj.run()
  File 
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/egg_info.py,
line 129, in run
writer(self, ep.name, os.path.join(self.egg_info,ep.name))
  File 

Re: [Distutils] Twisted and easy_install

2006-02-05 Thread Bob Ippolito

On Feb 5, 2006, at 10:22 AM, Phillip J. Eby wrote:

 At 07:05 AM 2/5/2006 -0800, Jay Parlar wrote:
 I'm having trouble doing an install of the newest Twisted from the
 Cheeseshop, using easy_install. I took a quick look through the
 archives of distutils-sig, and couldn't find anything. I'm running on
 OS X 10.3.9, latest version of setuptools (did an 'easy_install -U
 setuptools' right before I tried installing Twisted). I've pasted the
 result below. Any thoughts?
 [...]
 AttributeError: 'bool' object has no attribute 'name'

 Twisted does some interesting mangling of the build_ext process in  
 order to
 support optional extensions, that are only determined at build  
 time.  I've
 been meaning to add a facility to do this in setuptools, but it's  
 not done
 yet, and in any case Twisted would have to *use* that facility in  
 order for
 it to work.  I'm afraid Twisted isn't supportable by easy_install  
 at the
 present time.

Not only that, but the top-level script for Twisted isn't distutils  
based.  It is a script that invokes several setup.py files for each  
of the subprojects if given build or install as options, and  
otherwise takes totally different arguments.

Even if it did install with easy_install it would be a little  
misleading since Twisted requires Zope.Interface and has a bunch of  
extras (like SSL or serial support).  Twisted really could use a good  
refactor to support setuptools, but the core team isn't interested in  
doing that.

I believe Zope.Interface is not compatible with setuptools also.  I'm  
not sure why... I think it's the distribution name or something.

-bob




___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Twisted and easy_install

2006-02-05 Thread Jay Parlar
On 2/5/06, Bob Ippolito [EMAIL PROTECTED] wrote:

 On Feb 5, 2006, at 10:22 AM, Phillip J. Eby wrote:

[snip]
  Twisted does some interesting mangling of the build_ext process in
  order to
  support optional extensions, that are only determined at build
  time.  I've
  been meaning to add a facility to do this in setuptools, but it's
  not done
  yet, and in any case Twisted would have to *use* that facility in
  order for
  it to work.  I'm afraid Twisted isn't supportable by easy_install
  at the
  present time.

 Not only that, but the top-level script for Twisted isn't distutils
 based.  It is a script that invokes several setup.py files for each
 of the subprojects if given build or install as options, and
 otherwise takes totally different arguments.

 Even if it did install with easy_install it would be a little
 misleading since Twisted requires Zope.Interface and has a bunch of
 extras (like SSL or serial support).  Twisted really could use a good
 refactor to support setuptools, but the core team isn't interested in
 doing that.

 I believe Zope.Interface is not compatible with setuptools also.  I'm
 not sure why... I think it's the distribution name or something.


That's more or less what I figured. I mostly wanted to post the error
message because it's non-obvious what went wrong, and wanted to make
sure someone in the know saw it.

I think I still remember how to install packages the old fashioned
way, something or other about 'setup.py install' :)

Jay P.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig