[Numpy-tickets] [NumPy] #596: numpy.scons branch: setuptools' develop mode broken

NumPy numpy-tickets@scipy....
Sun Oct 21 11:56:53 CDT 2007

#596: numpy.scons branch: setuptools' develop mode broken
 Reporter:  AndrewStraw      |       Owner:  cookedm
     Type:  defect           |      Status:  new    
 Priority:  normal           |   Milestone:         
Component:  numpy.distutils  |     Version:  none   
 Severity:  normal           |    Keywords:         
 As of svn 4271, I could not get the numpy.scons branch to install using
 the develop mode of setuptools:

 Steps to reproduce:

 0. {{{svn co http://svn.scipy.org/svn/numpy/branches/numpy.scons}}}

 1. {{{python setup.py build}}} (may not be neccessary, but I did it)

 2. Attempt to install using setuptools' develop mode (set {{{sys.argv[0],
 __name__, __main__}}} to their expected values in case setup.py introspect
 {{{python -c "import numpy.distutils, setuptools,

 3. {{{python setupegg.py develop}}} also breaks, and there's a fairly load
 warning about numpy.distutils not being imported.

 The error I get:
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "setup.py", line 90, in <module>
   File "setup.py", line 83, in setup_package
     configuration=configuration )
   File "/home/astraw/other-peoples-
 src/numpy.svn.scons/numpy/distutils/core.py", line 182, in setup
     return old_setup(**new_attr)
   File "distutils/core.py", line 151, in setup
   File "distutils/dist.py", line 974, in run_commands
   File "distutils/dist.py", line 994, in run_command
   File "/usr/lib/python2.5/site-packages/setuptools/command/develop.py",
 line 26, in run
   File "/usr/lib/python2.5/site-packages/setuptools/command/develop.py",
 line 81, in install_for_development
     self.process_distribution(None, self.dist, not self.no_deps)
   File "/usr/lib/python2.5/site-
 packages/setuptools/command/easy_install.py", line 497, in
   File "/usr/lib/python2.5/site-packages/setuptools/command/develop.py",
 line 111, in install_egg_scripts
     script_path = os.path.abspath(convert_path(script_name))
   File "/usr/lib/python2.5/posixpath.py", line 402, in abspath
     if not isabs(path):
   File "/usr/lib/python2.5/posixpath.py", line 49, in isabs
     return s.startswith('/')
 AttributeError: 'function' object has no attribute 'startswith'

 Thanks so far for your work on the scons branch -- I hope I can get it to
 work soon!

Ticket URL: <http://scipy.org/scipy/numpy/ticket/596>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list